shoes.cpp:2:9: error: expected unqualified-id before 'for'
2 | for(int i = 0; i < s.size(); i++){
| ^~~
shoes.cpp:2:28: error: 's' was not declared in this scope
2 | for(int i = 0; i < s.size(); i++){
| ^
shoes.cpp:2:28: error: 's' was not declared in this scope
shoes.cpp:2:28: error: 's' was not declared in this scope
shoes.cpp:2:28: error: 's' was not declared in this scope
shoes.cpp:2:28: error: 's' was not declared in this scope
shoes.cpp:2:28: error: 's' was not declared in this scope
shoes.cpp:2:28: error: 's' was not declared in this scope
shoes.cpp:2:28: error: 's' was not declared in this scope
shoes.cpp:2:28: error: 's' was not declared in this scope
shoes.cpp:2:24: error: 'i' does not name a type
2 | for(int i = 0; i < s.size(); i++){
| ^
shoes.cpp:2:38: error: 'i' does not name a type
2 | for(int i = 0; i < s.size(); i++){
| ^
shoes.cpp:36:9: error: expected unqualified-id before 'return'
36 | return ans;
| ^~~~~~