QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#462667 | #7588. Monster Hunter | alexalex | Compile Error | / | / | C++17 | 1.6kb | 2024-07-03 23:51:55 | 2024-07-03 23:51:56 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void dfs(int, int)’: answer.code:15:23: error: ‘g’ was not declared in this scope 15 | for (auto u : g[v]) { | ^ answer.code: In function ‘int main()’: answer.code:31:17: error: ‘set’ was not declared in this scope 31 | set<vector<int>> ggg; | ^~~ answer.code:5:1: note: ‘std::set’ is defined in header ‘<set>’; did you forget to ‘#include <set>’? 4 | #include <algorithm> +++ |+#include <set> 5 | using namespace std; answer.code:31:31: error: expected primary-expression before ‘>’ token 31 | set<vector<int>> ggg; | ^~ answer.code:31:34: error: ‘ggg’ was not declared in this scope 31 | set<vector<int>> ggg; | ^~~ answer.code:38:30: error: request for member ‘push_back’ in ‘g.std::vector<int>::operator[](((std::vector<int>::size_type)v))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’} 38 | g[v].push_back(u); | ^~~~~~~~~ answer.code:39:30: error: request for member ‘push_back’ in ‘g.std::vector<int>::operator[](((std::vector<int>::size_type)u))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’} 39 | g[u].push_back(v); | ^~~~~~~~~ answer.code:59:31: error: expected primary-expression before ‘.’ token 59 | } else.{ | ^ answer.code:59:32: error: expected unqualified-id before ‘{’ token 59 | } else.{ | ^ answer.code:79:39: error: expected primary-expression before ‘.’ token 79 | } else.{ | ^ answer.code:79:40: error: expected unqualified-id before ‘{’ token 79 | } else.{ | ^