/ Vijos /

记录详情

Compile Error

foo.cc: In function ‘int main(int, char**)’:
foo.cc:8:5: error: ‘vector’ was not declared in this scope
    8 |     vector<pair<int,int>> arr(n+1);
      |     ^~~~~~
foo.cc:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
    2 | #include <algorithm>
  +++ |+#include <vector>
    3 | using namespace std;
foo.cc:8:24: error: expected primary-expression before ‘>’ token
    8 |     vector<pair<int,int>> arr(n+1);
      |                        ^~
foo.cc:8:27: error: ‘arr’ was not declared in this scope
    8 |     vector<pair<int,int>> arr(n+1);
      |                           ^~~

信息

递交者
类型
递交
题目
P1779 国王游戏
语言
C++
递交时间
2025-08-30 00:28:35
评测时间
2025-08-30 15:32:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes