QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#597686#9176. Non-Interactive NimSoohtiCompile Error//C++141.1kb2024-09-28 18:26:182024-09-28 18:26:19

Details

answer.code: In function ‘int main()’:
answer.code:28:9: error: ‘vector’ was not declared in this scope
   28 |         vector<pair<int, long long> > ans;
      |         ^~~~~~
answer.code:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
    2 | #include <map>
  +++ |+#include <vector>
    3 | const int N=1e5+10;
answer.code:28:37: error: expected primary-expression before ‘>’ token
   28 |         vector<pair<int, long long> > ans;
      |                                     ^
answer.code:28:39: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   28 |         vector<pair<int, long long> > ans;
      |                                       ^~~
      |                                       abs