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