/ Vijos /

记录详情

Compile Error

foo.cc:6:1: error: 'vector' does not name a type
    6 | vector<bool>vias;
      | ^~~~~~
foo.cc:7:1: error: 'vector' does not name a type
    7 | vector<int>pairs(100,-1);
      | ^~~~~~
foo.cc: In function 'bool match(int)':
foo.cc:25:35: error: 'vias' was not declared in this scope
   25 |                 if (map[i][j] && !vias[j]) //有边且未访问
      |                                   ^~~~
foo.cc:28:29: error: 'pairs' was not declared in this scope
   28 |                         if (pairs[j] == -1 || match(pairs[j])) //如果暂无匹配,或者原来匹配的左侧元素可以找到新的匹配
      |                             ^~~~~
foo.cc: In function 'int main()':
foo.cc:37:9: error: 'ios' has not been declared
   37 |         ios::sync_with_stdio(0);
      |         ^~~
foo.cc:38:9: error: 'cin' was not declared in this scope
   38 |         cin >> N>> M;
      |         ^~~
foo.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
    2 | #include<unordered_map>
  +++ |+#include <iostream>
    3 | using namespace std;
foo.cc:39:9: error: 'string' was not declared in this scope
   39 |         string temp;
      |         ^~~~~~
foo.cc:3:1: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
    2 | #include<unordered_map>
  +++ |+#include <string>
    3 | using namespace std;
foo.cc:41:24: error: 'temp' was not declared in this scope; did you mean 'mktemp'?
   41 |                 cin >> temp;
      |                        ^~~~
      |                        mktemp
foo.cc:48:17: error: 'vias' was not declared in this scope
   48 |                 vias = vector<bool>(M,false);
      |                 ^~~~
foo.cc:48:24: error: 'vector' was not declared in this scope
   48 |                 vias = vector<bool>(M,false);
      |                        ^~~~~~
foo.cc:3:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    2 | #include<unordered_map>
  +++ |+#include <vector>
    3 | using namespace std;
foo.cc:48:31: error: expected primary-expression before 'bool'
   48 |                 vias = vector<bool>(M,false);
      |                               ^~~~
foo.cc:53:9: error: 'cout' was not declared in this scope
   53 |         cout << count;
      |         ^~~~
foo.cc:53:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1204 CoVH之柯南开锁
语言
C++
递交时间
2023-05-26 16:51:55
评测时间
2023-05-26 16:51:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes