Main.cpp: In function 'void solve()':
Main.cpp:12:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for (int i=0; i<arr.length(); i++) {
| ~^~~~~~~~~~~~~
Main.cpp:13:13: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
13 | 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:13:41: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
13 | 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:13:55: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
13 | 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:13:69: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
13 | 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:13:83: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
13 | 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:13:97: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
13 | 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:13:111: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
13 | 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:13:125: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
13 | 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') {