0_0_23053719_18385.cpp:7:1: error: 'vector' does not name a type
vector<vector<pi> > e;
^
0_0_23053719_18385.cpp: In function 'int rec(int, int, int)':
0_0_23053719_18385.cpp:14:6: error: 'i' was not declared in this scope
rep(i, e[c].size()) if(e[c][i].S != p){
^
0_0_23053719_18385.cpp:14:9: error: 'e' was not declared in this scope
rep(i, e[c].size()) if(e[c][i].S != p){
^
0_0_23053719_18385.cpp:14:20: error: 'rep' was not declared in this scope
rep(i, e[c].size()) if(e[c][i].S != p){
^
0_0_23053719_18385.cpp: At global scope:
0_0_23053719_18385.cpp:28:8: error: 'vi' does not name a type
inline vi getcycle(int id){
^
0_0_23053719_18385.cpp: In function 'bool can(int)':
0_0_23053719_18385.cpp:53:2: error: 'vi' was not declared in this scope
vi cy = getcycle(id);
^
0_0_23053719_18385.cpp:55:5: error: 'cy' was not declared in this scope
if(cy.empty()){
^
0_0_23053719_18385.cpp:56:3: error: 'e' was not declared in this scope
e[a[id]].pb(mp(b[id], id));
^
0_0_23053719_18385.cpp:56:27: error: 'mp' was not declared in this scope
e[a[id]].pb(mp(b[id], id));
^
0_0_23053719_18385.cpp:63:2: error: 'queue' was not declared in this scope
queue<pi> q;
^
0_0_23053719_18385.cpp:63:2: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
from 0_0_23053719_18385.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:96:11: note: 'std::queue'
class queue
^
0_0_23053719_18385.cpp:63:8: error: 'pi' was not declared in this scope
queue<pi> q;
^
0_0_23053719_18385.cpp:63:12: error: 'q' was not declared in this scope
queue<pi> q;
^
0_0_23053719_18385.cpp:67:17: error: 'mp' was not declared in this scope
q.push(mp(id, 0));
^
0_0_23053719_18385.cpp:74:6: error: 'isX' was not declared in this scope
if(isX){
^
0_0_23053719_18385.cpp:80:7: error: expected ';' before 'cy'
vi cy = getcycle(cur);
^
0_0_23053719_18385.cpp:82:7: error: 'cy' was not declared in this scope
if(cy.empty() || cy.size() == 1 && cy[0] == cur){
^
0_0_23053719_18385.cpp:87:10: error: 'i' was not declared in this scope
rep(i, N) rep(j, e[i].size()) if(e[i][j].S == cur){
^
0_0_23053719_18385.cpp:87:14: error: 'rep' was not declared in this scope
rep(i, N) rep(j, e[i].size()) if(e[i][j].S == cur){
^
0_0_23053719_18385.cpp:92:7: error: 'e' was not declared in this scope
e[a[cur]].pb(mp(b[cur], cur));
^
0_0_23053719_18385.cpp:96:11: error: 'it' was not declared in this scope
rep(it, N){
^
0_0_23053719_18385.cpp:112:8: error: 'i' was not declared in this scope
rep(i, cy.size()) if(cy[i] != cur){
^
0_0_23053719_18385.cpp:112:11: error: 'cy' was not declared in this scope
rep(i, cy.size()) if(cy[i] != cur){
^
0_0_23053719_18385.cpp:112:20: error: 'rep' was not declared in this scope
rep(i, cy.size()) if(cy[i] != cur){
^
0_0_23053719_18385.cpp: In function 'bool run()':
0_0_23053719_18385.cpp:128:2: error: 'e' was not declared in this scope
e.clear();
^
0_0_23053719_18385.cpp:131:2: error: 'vi' was not declared in this scope
vi vs;
^
0_0_23053719_18385.cpp:133:6: error: 'i' was not declared in this scope
rep(i, n){
^
0_0_23053719_18385.cpp:133:10: error: 'rep' was not declared in this scope
rep(i, n){
^
0_0_23053719_18385.cpp:138:11: error: 'vs' was not declared in this scope
sort(all(vs));
^
0_0_23053719_18385.cpp:138:13: error: 'all' was not declared in this scope
sort(all(vs));
^
0_0_23053719_18385.cpp:138:14: error: 'sort' was not declared in this scope
sort(all(vs));
^
0_0_23053719_18385.cpp:138:14: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_23053719_18385.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note: 'std::sort'
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
0_0_23053719_18385.cpp:139:25: error: 'unique' was not declared in this scope
vs.erase(unique(all(vs)), vs.end());
^
0_0_23053719_18385.cpp:139:25: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_23053719_18385.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1022:5: note: 'std::unique'
unique(_ForwardIterator __first, _ForwardIterator __last,
^
0_0_23053719_18385.cpp:152:2: error: 'cout' was not declared in this scope
cout << ans << endl;
^
0_0_23053719_18385.cpp:152:2: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:74:0,
from 0_0_23053719_18385.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
0_0_23053719_18385.cpp:152:17: error: 'endl' was not declared in this scope
cout << ans << endl;
^
0_0_23053719_18385.cpp:152:17: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_23053719_18385.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:564:5: note: 'std::endl'
endl(basic_ostream<_CharT, _Traits>& __os)
^
|