/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:47:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int i=1;i<=n;i++)
         ^~~
/in/foo.cc:49:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
             for(int i=1;i<=n;i++)
             ^~~
/in/foo.cc:50:26: error: expected ';' before '>' token
                 for(int j>i;j<=n;j++)
                          ^
/in/foo.cc:50:26: error: expected primary-expression before '>' token
/in/foo.cc:50:30: warning: for increment expression has no effect [-Wunused-value]
                 for(int j>i;j<=n;j++)
                             ~^~~
/in/foo.cc:50:33: error: expected ')' before ';' token
                 for(int j>i;j<=n;j++)
                                 ^
/in/foo.cc:50:17: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
                 for(int j>i;j<=n;j++)
                 ^~~
/in/foo.cc:50:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
                 for(int j>i;j<=n;j++)
                                  ^
/in/foo.cc:49:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
             for(int i=1;i<=n;i++)
             ^~~
/in/foo.cc:50:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
                 for(int j>i;j<=n;j++)
                                  ^
/in/foo.cc:50:34: error: 'j' was not declared in this scope
/in/foo.cc: In function 'int dfs(int)':
/in/foo.cc:34:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P2031 奶酪
语言
C++
递交时间
2018-11-09 19:47:37
评测时间
2018-11-09 19:47:37
评测机
分数
0
总耗时
306ms
峰值内存
37.047 MiB