记录详情

Compile Error

foo.cc: In function ‘void Bub(std::vector<Vector3>&, int)’:
foo.cc:21:35: error: expected ‘)’ before ‘)’
   21 |         for (int i = 0; i < n; i++){
      |             ~                     ^~
      |                                   )
foo.cc:21:35: error: ‘)’ was not declared in this scope
   21 |         for (int i = 0; i < n; i++){
      |                                   ^~
foo.cc: In function ‘int main()’:
foo.cc:41:35: error: expected ‘)’ before ‘)’
   41 |         for (int i = 0; i < k; i++){
      |             ~                     ^~
      |                                   )
foo.cc:41:35: error: ‘)’ was not declared in this scope
   41 |         for (int i = 0; i < k; i++){
      |                                   ^~
foo.cc:49:35: error: expected ‘)’ before ‘)’
   49 |         for (int j = 0; j < k; j++){output(a[j]);};
      |             ~                     ^~
      |                                   )
foo.cc:49:35: error: ‘)’ was not declared in this scope
   49 |         for (int j = 0; j < k; j++){output(a[j]);};
      |                                   ^~

信息

递交者
类型
递交
题目
P1018 OO4-2 向量的比较、赋值及向量集合类的排序
比赛
2024春 面向对象的程序设计方法(第2场作业赛)
语言
C++
递交时间
2024-04-05 21:14:35
评测时间
2024-04-05 21:14:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes