Problem archaeologist
User Fosksjdkskzjskskzk
Submission Time 2025-03-05 12:26:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

archaeologist.cpp: In function ‘void archaeologist(int, int, int, std::vector<int>, int, std::vector<int>)’:
archaeologist.cpp:34:13: error: ‘pair’ was not declared in this scope; did you mean ‘std::pair’?
34 | pair<int,vector<int>> x;
| ^~~~
| std::pair
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from archaeologist.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:208:12: note: ‘std::pair’ declared here
208 | struct pair
| ^~~~
archaeologist.cpp:34:18: error: expected primary-expression before ‘int’
34 | pair<int,vector<int>> x;
| ^~~
archaeologist.cpp:35:13: error: ‘x’ was not