记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:23:18: error: expected ';' before 'a'
             cin  a[i];
                  ^
/in/foo.cc:23:22: warning: statement has no effect [-Wunused-value]
             cin  a[i];
                      ^
/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:31: error: 'i' was not declared in this scope

信息

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