prog.cpp: In function ‘int main()’:
prog.cpp:28:4: error: ‘V’ was not declared in this scope
V[i].pb(a);
^
prog.cpp:29:4: error: ‘S’ was not declared in this scope
S.pb(a);
^
prog.cpp:32:11: error: ‘S’ was not declared in this scope
sort(all(S));
^
prog.cpp:32:7: error: ‘all’ was not declared in this scope
sort(all(S));
^~~
prog.cpp:32:7: note: suggested alternative: ‘ll’
sort(all(S));
^~~
ll
prog.cpp:33:21: error: ‘N’ was not declared in this scope
for(int i = 0; i < N; ++i)
^
prog.cpp:39:17: error: ‘V’ was not declared in this scope
for(auto &v : V[i])
^
prog.cpp:41:11: error: ‘PII’ was not declared in this scope
vector < PII > ans;
^~~
prog.cpp:41:15: error: template argument 1 is invalid
vector < PII > ans;
^
prog.cpp:41:15: error: template argument 2 is invalid
prog.cpp:44:9: error: ‘V’ was not declared in this scope
while(V[i].size())
^
prog.cpp:3:12: error: request for member ‘push_back’ in ‘ans’, which is of non-class type ‘int’
#define pb push_back
^~~~~~~~~
prog.cpp:46:8: note: in expansion of macro ‘pb’
ans.pb({i, k});
^~
prog.cpp:51:2: error: ‘p10’ was not declared in this scope
p10[0] = 1;
^~~
prog.cpp:56:9: error: ‘V’ was not declared in this scope
while(V[k].size())
^
prog.cpp:3:12: error: request for member ‘push_back’ in ‘ans’, which is of non-class type ‘int’
#define pb push_back
^~~~~~~~~
prog.cpp:59:8: note: in expansion of macro ‘pb’
ans.pb({k, gdzie});
^~
prog.cpp:64:2: error: expected unqualified-id before ‘}’ token
}
^
prog.cpp:63:10: error: expected ‘;’ before ‘}’ token
for(int
^
;
}
~
prog.cpp:64:2: error: expected primary-expression before ‘}’ token
}
^
prog.cpp:63:10: error: expected ‘;’ before ‘}’ token
for(int
^
;
}
~
prog.cpp:64:2: error: expected primary-expression before ‘}’ token
}
^
prog.cpp:63:10: error: expected ‘)’ before ‘}’ token
for(int
~ ^
)
}
~
prog.cpp:64:2: error: expected primary-expression before ‘}’ token
}
^
prog.cpp:20:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k);
~~~~~^~~~~~~~~~~~~~~~
prog.cpp:27:9: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a);
~~~~~^~~~~~~~~~