numbers.cpp: In function 'long long int solve(std::string)':
numbers.cpp:12:53: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | #define FOR(i, a, b) for (int i=a; i<b; i++)
......
44 | FOR(i,0,a.size()) v.pb(a[i]-'0');
| ~~~~~~~~~~~~
numbers.cpp:44:5: note: in expansion of macro 'FOR'
44 | FOR(i,0,a.size()) v.pb(a[i]-'0');
| ^~~
numbers.cpp: At global scope:
numbers.cpp:48:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
48 | main(){
| ^~~~
numbers.cpp: In function 'int main()':
numbers.cpp:12:53: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | #define FOR(i, a, b) for (int i=a; i<b; i++)
......
53 | FOR(i,2,a.size()) if(a[i]==a[i-2]||a[i]==a[i-1]) {g=1; break;}
| ~~~~~~~~~~~~
numbers.cpp:53:5: note: in expansion of macro 'FOR'
53 | FOR(i,2,a.size()) if(a[i]==a[i-2]||a[i]==a[i-1]) {g=1; break;}
| ^~~