/in/foo.cc: In function 'void Read()':
/in/foo.cc:13:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d",&m);
^
/in/foo.cc:15:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < str.length();i++)
~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:23:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int j = 0;j < i;j++)
^~~
/in/foo.cc:28:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
tot += sum;
^~~
/in/foo.cc:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < str.length();i++)
~~^~~~~~~~~~~~~~
/in/foo.cc:36:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(tot >= m || sum == 0 && tot < m-1){
~~~~~~~~~^~~~~~~~~~~~