Problem archaeologist
User Ok
Submission Time 2025-03-09 23:02:33
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:38:13: error: invalid types ‘int[int]’ for array subscript
38 | L = md[0];
| ^
archaeologist.cpp:41:9: error: ‘it’ was not declared in this scope; did you mean ‘int’?
41 | it = result.first;
| ^~
| int
archaeologist.cpp:72:36: error: ‘begin’ was not declared in this scope
72 | for(int i : result.second.size()){
| ^
archaeologist.cpp:72:36: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from archaeologist.cpp:2:
/usr/include/c++/9/valarray:1224:5: note: ‘std::begin’
1224 | begin(const valarray<_Tp>& __va)
| ^~~~~
In file included from /usr/include/c++/9/filesystem:38,
from