foo.cc: In function 'int main()':
foo.cc:10:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if (i==k)
   ^~
foo.cc:12:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    j=i*i;
    ^
foo.cc:14:8: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
    sum += i;
    ~~~~^~~~
foo.cc:15:8: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
    cnt += 1;
    ~~~~^~~~
   
  
    [Hydro](https://hydro.ac)提供评测服务