记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:22:28: error: expected ';' before 'n'
         for (int i = 1; i  n; i )
                            ^
/in/foo.cc:22:28: warning: for increment expression has no effect [-Wunused-value]
/in/foo.cc:22:29: error: expected ')' before ';' token
         for (int i = 1; i  n; i )
                             ^
/in/foo.cc:22:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for (int i = 1; i  n; i )
         ^~~
/in/foo.cc:22:31: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for (int i = 1; i  n; i )
                               ^
/in/foo.cc:22:31: error: 'i' was not declared in this scope
/in/foo.cc:25:28: error: expected ';' before 'n'
         for (int i = 3; i  n; i )
                            ^
/in/foo.cc:25:28: warning: for increment expression has no effect [-Wunused-value]
/in/foo.cc:25:29: error: expected ')' before ';' token
         for (int i = 3; i  n; i )
                             ^
/in/foo.cc:25:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for (int i = 3; i  n; i )
         ^~~
/in/foo.cc:25:31: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for (int i = 3; i  n; i )
                               ^
/in/foo.cc:25:33: error: expected ';' before ')' token
         for (int i = 3; i  n; i )
                                 ^

信息

递交者
类型
自测
题目
P1571 Problem 2C. Not Division
语言
C++
递交时间
2024-06-17 19:11:21
评测时间
2024-06-17 19:11:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes