foo.cc: In function ‘int main()’:
foo.cc:23:7: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized]
23 | if(j==d-1)
| ^~
foo.cc:10:12: note: ‘j’ was declared here
10 | int c,d,j;
| ^
#
状态
耗时
内存占用
#1
Wrong Answer
Standard answer longer than user output.