Accepted
/in/foo.cc: In function 'int main()':
/in/foo.cc:18:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(r==0)sum=0;
^~
/in/foo.cc:19:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
printf("%ld",sum);
^~~~~~
/in/foo.cc:19:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
printf("%ld",sum);
^