记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:19:28: error: 'nj' was not declared in this scope
         for(int i=1,j=1;i<=nj<=n;i++;j++){
                            ^~
/in/foo.cc:19:37: error: expected ')' before ';' token
         for(int i=1,j=1;i<=nj<=n;i++;j++){
                                     ^
/in/foo.cc:19:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int i=1,j=1;i<=nj<=n;i++;j++){
         ^~~
/in/foo.cc:19:38: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for(int i=1,j=1;i<=nj<=n;i++;j++){
                                      ^
/in/foo.cc:19:21: warning: unused variable 'j' [-Wunused-variable]
         for(int i=1,j=1;i<=nj<=n;i++;j++){
                     ^
/in/foo.cc:19:38: error: 'j' was not declared in this scope
         for(int i=1,j=1;i<=nj<=n;i++;j++){
                                      ^

信息

递交者
类型
递交
题目
水题
语言
C++
递交时间
2018-10-11 21:04:16
评测时间
2018-10-11 21:04:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes