/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:51:21: error: could not convert 'read(m)' from 'void' to 'bool'
     for (i = 1; read(m); i <= m; i++)
                 ~~~~^~~
/in/foo.cc:51:28: warning: for increment expression has no effect [-Wunused-value]
     for (i = 1; read(m); i <= m; i++)
                          ~~^~~~
/in/foo.cc:51:32: error: expected ')' before ';' token
     for (i = 1; read(m); i <= m; i++)
                                ^
/in/foo.cc:51:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for (i = 1; read(m); i <= m; i++)
     ^~~
/in/foo.cc:51:34: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     for (i = 1; read(m); i <= m; i++)
                                  ^
/in/foo.cc:51:37: error: expected ';' before ')' token
     for (i = 1; read(m); i <= m; i++)
                                     ^
/in/foo.cc:38:15: warning: unused variable 'l' [-Wunused-variable]
     int n, m, l, r, p, i, j;
               ^
/in/foo.cc:38:18: warning: unused variable 'r' [-Wunused-variable]
     int n, m, l, r, p, i, j;
                  ^
/in/foo.cc:38:21: warning: unused variable 'p' [-Wunused-variable]
     int n, m, l, r, p, i, j;
                     ^

信息

递交者
类型
递交
题目
P1514 天才的记忆
语言
C++
递交时间
2020-08-25 19:31:17
评测时间
2020-08-25 19:31:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes