记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:9:21: error: invalid declarator before ‘spots’
    9 |     int vector<int> spots(n);
      |                     ^~~~~
foo.cc:11:14: error: ‘spots’ was not declared in this scope
   11 |         cin>>spots[i];
      |              ^~~~~
foo.cc:13:14: error: ‘spots’ was not declared in this scope
   13 |     int sort(spots.begin(), spots.end());
      |              ^~~~~
foo.cc:13:40: error: expression list treated as compound expression in initializer [-fpermissive]
   13 |     int sort(spots.begin(), spots.end());
      |                                        ^
foo.cc:13:9: warning: unused variable ‘sort’ [-Wunused-variable]
   13 |     int sort(spots.begin(), spots.end());
      |         ^~~~

信息

递交者
类型
自测
语言
C++
递交时间
2025-04-12 19:55:10
评测时间
2025-04-12 19:55:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes