carnival.cpp:97:13: warning: missing terminating " character
cout << "0 ;
^
carnival.cpp:97:5: error: missing terminating " character
cout << "0 ;
^
carnival.cpp: In function 'int query(std::vector<int>, std::vector<int>)':
carnival.cpp:18:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define fox(k, x) for (int k=0; k<x; ++k)
^
carnival.cpp:31:5: note: in expansion of macro 'fox'
fox(l, V.size()){
^
carnival.cpp:18:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define fox(k, x) for (int k=0; k<x; ++k)
^
carnival.cpp:34:5: note: in expansion of macro 'fox'
fox(l, W.size()){
^
carnival.cpp: In function 'std::vector<int> dfs(int, int)':
carnival.cpp:60:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (query(v, w)!=v.size()+w.size()){
^
carnival.cpp:18:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define fox(k, x) for (int k=0; k<x; ++k)
^
carnival.cpp:61:9: note: in expansion of macro 'fox'
fox(l, w.size()){
^
carnival.cpp:62:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (query2(v, 0, v.size()-1, w[l])==v.size()+1){
^
carnival.cpp:18:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define fox(k, x) for (int k=0; k<x; ++k)
^
carnival.cpp:73:13: note: in expansion of macro 'fox'
fox(l2, com[w[l]].size()){
^
carnival.cpp:18:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define fox(k, x) for (int k=0; k<x; ++k)
^
carnival.cpp:80:5: note: in expansion of macro 'fox'
fox(l, u.size()) v.pb(u[l]);
^
carnival.cpp: In function 'int main()':
carnival.cpp:18:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define fox(k, x) for (int k=0; k<x; ++k)
^
carnival.cpp:92:5: note: in expansion of macro 'fox'
fox(l, v.size()){
^
carnival.cpp:18:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define fox(k, x) for (int k=0; k<x; ++k)
^
carnival.cpp:93:9: note: in expansion of macro 'fox'
fox(l2, com[v[l]].size()){
^
carnival.cpp:19:20: error: expected primary-expression before 'for'
#define fox1(k, x) for (int k=1; k<=x; ++k)
^
carnival.cpp:98:5: note: in expansion of macro 'fox1'
fox1(l, n){
^
carnival.cpp:98:10: error: 'l' was not declared in this scope
fox1(l, n){
^
carnival.cpp:19:34: note: in definition of macro 'fox1'
#define fox1(k, x) for (int k=1; k<=x; ++k)
^