记录详情

Compile Error

/in/foo.cc:50:5: error: 'cin' does not name a type
     cin >> n >> k;
     ^~~
/in/foo.cc:52:5: error: expected unqualified-id before 'for'
     for (int i = 0; i < n; i++)
     ^~~
/in/foo.cc:52:21: error: 'i' does not name a type
     for (int i = 0; i < n; i++)
                     ^
/in/foo.cc:52:28: error: 'i' does not name a type
     for (int i = 0; i < n; i++)
                            ^
/in/foo.cc:56:15: error: expected constructor, destructor, or type conversion before '(' token
     bubbleSort(a, n, k);
               ^
/in/foo.cc:58:5: error: expected unqualified-id before 'return'
     return 0;
     ^~~~~~
/in/foo.cc:59:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
自测
语言
C++
递交时间
2024-12-03 22:49:26
评测时间
2024-12-03 22:49:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes