记录详情

Compile Error

foo.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>;
      |                    ^
foo.cc: In function 'int main()':
foo.cc:13:8: error: 'i' was not declared in this scope
   13 |    for(i=0;i<n;i++)
      |        ^
foo.cc:15:16: error: 'j' was not declared in this scope
   15 |            for(j=i+1;j<n;j++)
      |                ^
foo.cc:18:26: error: expected ';' before '{' token
   18 |                   cout<<a{i}<<;
      |                          ^
      |                          ;
foo.cc:17:19: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   17 |                   for(j=i+1;j<n;i++)
      |                   ^~~
foo.cc:18:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   18 |                   cout<<a{i}<<;
      |                             ^~
foo.cc:18:29: error: expected primary-expression before '<<' token
foo.cc:18:31: error: expected primary-expression before ';' token
   18 |                   cout<<a{i}<<;
      |                               ^
foo.cc:23:33: error: expected primary-expression before ';' token
   23 |                     cout<<a[i]<<;
      |                                 ^
foo.cc:26:13: error: expected '}' at end of input
   26 |            }
      |             ^
foo.cc:14:4: note: to match this '{'
   14 |    {
      |    ^
foo.cc:26:13: error: expected '}' at end of input
   26 |            }
      |             ^
foo.cc:5:1: note: to match this '{'
    5 | {
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1082 xf1-5排序与删除
比赛
2023 程序设计与竞赛(作业1:见面赛)
语言
C++
递交时间
2023-09-20 21:45:45
评测时间
2023-09-20 21:45:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes