QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#462667#7588. Monster HunteralexalexCompile Error//C++171.6kb2024-07-03 23:51:552024-07-03 23:51:56

詳細信息

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.{
      |                                        ^