foo.cc: In function ‘void get(std::string, int*)’:
foo.cc:7:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
7 | for(int i=1;i<=n.size();i++)
| ~^~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:22:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
22 | if(c[i]>9)c[i+1]=1;c[i]%=10;
| ^~
foo.cc:22:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
22 | if(c[i]>9)c[i+1]=1;c[i]%=10;
| ^