Main.cpp: In function 'void solve()':
Main.cpp:11:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for (int i=0; i<arr.length(); i++) {
| ~^~~~~~~~~~~~~
Main.cpp:12:13: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
12 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {
Main.cpp:12:41: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
12 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {
Main.cpp:12:55: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
12 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {
Main.cpp:12:69: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
12 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {
Main.cpp:12:83: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
12 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {
Main.cpp:12:97: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
12 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {
Main.cpp:12:111: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
12 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {
Main.cpp:12:125: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
12 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {
Main.cpp:23:14: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
23 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {
Main.cpp:23:42: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
23 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {
Main.cpp:23:56: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
23 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {
Main.cpp:23:70: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
23 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {
Main.cpp:23:84: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
23 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {
Main.cpp:23:98: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
23 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {
Main.cpp:23:112: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
23 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {
Main.cpp:23:126: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
23 | if (arr[i]=='1' | arr[i]=='2' | arr[i]=='3' | arr[i]=='4' | arr[i]=='5' | arr[i]=='6' | arr[i]=='7' | arr[i]=='8' | arr[i]=='9') {