foo.cc: In function 'int main()':
foo.cc:7:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
7 | if(n<=6)
| ^~
foo.cc:10:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
10 | if(d=0)
| ^~
foo.cc:10:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
10 | if(d=0)
| ~^~
foo.cc:11:20: warning: statement has no effect [-Wunused-value]
11 | p+1;
| ~^~
foo.cc:16:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
16 | if(d=0)
| ~^~
foo.cc:17:20: warning: statement has no effect [-Wunused-value]
17 | p+1;
| ~^~
foo.cc:22:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
22 | if(d=0)
| ~^~
foo.cc:23:20: warning: statement has no effect [-Wunused-value]
23 | p+1;
| ~^~
foo.cc:5:17: warning: unused variable 't' [-Wunused-variable]
5 | int n,p,t=120,d;
| ^
foo.cc:12:15: warning: 'p' is used uninitialized [-Wuninitialized]
12 | cout<<p;
| ^
foo.cc:5:15: note: 'p' was declared here
5 | int n,p,t=120,d;
| ^
[Hydro](https://hydro.ac)提供评测服务