Problem | guessarray |
---|---|
User | LCJLY |
Submission Time | 2024-03-10 14:08:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
guessarray.cpp:5:34: error: ‘vector’ has not been declared
5 | void doProblem(int n,int k,int q,vector<int> &ans2){
| ^~~~~~
guessarray.cpp:5:40: error: expected ‘,’ or ‘...’ before ‘<’ token
5 | void doProblem(int n,int k,int q,vector<int> &ans2){
| ^
guessarray.cpp: In function ‘void doProblem(int, int, int, int)’:
guessarray.cpp:6:5: error: ‘ans2’ was not declared in this scope
6 | ans2.resize(n);
| ^~~~
guessarray.cpp:9:3: error: ‘unordered_map’ was not declared in this scope
9 | unordered_map<int,int>mp;
| ^~~~~~~~~~~~~
guessarray.cpp:3:1: note: ‘std::unordered_map’ is defined in header ‘<unordered_map>’; did you forget to ‘#include <unordered_map>’?
2 | #include <iostream>
+++ |+#include <unordered_map>
3 | using namespace std;
guessarray.cpp:9:17: error