foo.cc: In function 'int main()':
foo.cc:11:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(x1%i==0)
^~
foo.cc:13:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
cnt++;
^~~
foo.cc:20:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(x2%1==0)
^~
foo.cc:22:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
cnt++;
^~~
foo.cc:5:8: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
int x,cnt;
^~~