记录详情

Compile Error

/in/foo.cc:23:13: warning: missing terminating " character
   23 | cout<ca[k]<<"
      |             ^
/in/foo.cc:23:13: error: missing terminating " character
   23 | cout<ca[k]<<"
      |             ^ 
/in/foo.cc:6:1: error: expected initializer before 'int'
    6 | int a[10001],n;
      | ^~~
/in/foo.cc:7:1: error: 'cin' does not name a type
    7 | cin>>n;
      | ^~~
/in/foo.cc:8:1: error: expected unqualified-id before 'for'
    8 | for(int b=0;be;b++) cin>>a[b];
      | ^~~
/in/foo.cc:8:13: error: 'be' does not name a type
    8 | for(int b=0;be;b++) cin>>a[b];
      |             ^~
/in/foo.cc:8:16: error: 'b' does not name a type
    8 | for(int b=0;be;b++) cin>>a[b];
      |                ^
/in/foo.cc:9:1: error: expected unqualified-id before 'for'
    9 | for(int i=0;i<n-1;i++)
      | ^~~
/in/foo.cc:9:13: error: 'i' does not name a type
    9 | for(int i=0;i<n-1;i++)
      |             ^
/in/foo.cc:9:19: error: 'i' does not name a type
    9 | for(int i=0;i<n-1;i++)
      |                   ^
/in/foo.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
/in/foo.cc:13:1: error: expected unqualified-id before 'for'
   13 | for(int j=0;j<n-i-1;j++)
      | ^~~
/in/foo.cc:13:13: error: 'j' does not name a type
   13 | for(int j=0;j<n-i-1;j++)
      |             ^
/in/foo.cc:13:21: error: 'j' does not name a type
   13 | for(int j=0;j<n-i-1;j++)
      |                     ^
/in/foo.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
/in/foo.cc:19:5: error: expected constructor, destructor, or type conversion before '(' token
   19 | swap(a[j],a[j+1]);
      |     ^
/in/foo.cc:21:1: error: expected unqualified-id before 'for'
   21 | for(int k=n-1;k>=0;k--)
      | ^~~
/in/foo.cc:21:15: error: 'k' does not name a type
   21 | for(int k=n-1;k>=0;k--)
      |               ^
/in/foo.cc:21:20: error: 'k' does not name a type
   21 | for(int k=n-1;k>=0;k--)
      |                    ^

信息

递交者
类型
自测
语言
C++
递交时间
2025-11-29 15:02:52
评测时间
2025-11-29 15:02:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes