foo.cc: In function ‘int main()’:
foo.cc:7:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
7 | for(int i=t;i<=n;i++)
| ^~~
foo.cc:9:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
9 | int sum=0;
| ^~~
foo.cc:10:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
10 | for(int i=0;i<a.size();i++)
| ~^~~~~~~~~
foo.cc:10:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
10 | for(int i=0;i<a.size();i++)
| ^~~
foo.cc:12:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
12 | cout<<sum;
| ^~~~