QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#457226 | #7123. Robot Contest | hyforces | Compile Error | / | / | C++20 | 3.1kb | 2024-06-29 09:22:54 | 2024-06-29 09:22:57 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:16:1: error: ‘pair’ does not name a type 16 | pair<int,char>getInstruction(int center,int west,int south,int east,int north){ | ^~~~ answer.code: In function ‘void program_pulibot()’: answer.code:86:25: error: ‘pair’ was not declared in this scope; did you mean ‘std::pair’? 86 | pair<int,char>ret=getInstruction(a,b,c,d,e); | ^~~~ | std::pair In file included from /usr/include/c++/13/bits/stl_algobase.h:64, from /usr/include/c++/13/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51, from answer.code:1: /usr/include/c++/13/bits/stl_pair.h:187:12: note: ‘std::pair’ declared here 187 | struct pair | ^~~~ answer.code:86:30: error: expected primary-expression before ‘int’ 86 | pair<int,char>ret=getInstruction(a,b,c,d,e); | ^~~ answer.code:87:28: error: ‘ret’ was not declared in this scope 87 | if(ret.first==IMPOSSIBLE)continue; | ^~~ answer.code:88:53: error: ‘ret’ was not declared in this scope 88 | set_instruction({a,b,c,d,e},ret.first,ret.second); | ^~~