/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int cal(int)':
foo.cc:32:2: error: 'vector' was not declared in this scope
   32 |  vector<int> a;
      |  ^~~~~~
foo.cc:5:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    4 | #include <unordered_map>
  +++ |+#include <vector>
    5 | using namespace std;
foo.cc:32:9: error: expected primary-expression before 'int'
   32 |  vector<int> a;
      |         ^~~
foo.cc:33:11: error: 'a' was not declared in this scope
   33 |  while(x) a.push_back(x % 10), x /= 10, n ++;
      |           ^
foo.cc:34:7: error: 'a' was not declared in this scope
   34 |  sort(a.begin(), a.end());
      |       ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1024 卡布列克圆舞曲
语言
C++
递交时间
2022-01-29 12:16:32
评测时间
2022-01-29 12:16:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes