0_0_36615230_31918.cpp:1:2: error: stray '#' in program
v#include <bits/stdc++.h>
^
0_0_36615230_31918.cpp:1:1: error: 'v' does not name a type
v#include <bits/stdc++.h>
^
0_0_36615230_31918.cpp:6:1: error: 'vector' does not name a type
vector<int> ri[N];
^
0_0_36615230_31918.cpp:7:1: error: 'set' does not name a type
set<int> sp;
^
0_0_36615230_31918.cpp:9:1: error: 'vector' does not name a type
vector<int> e[N];
^
0_0_36615230_31918.cpp: In function 'void link(int, int, int)':
0_0_36615230_31918.cpp:15:5: error: 'set' was not declared in this scope
set<int> :: iterator it
^
0_0_36615230_31918.cpp:15:9: error: expected primary-expression before 'int'
set<int> :: iterator it
^
0_0_36615230_31918.cpp:18:12: error: 'it' was not declared in this scope
while (it != sp.end() && *it <= R) {
^
0_0_36615230_31918.cpp:18:18: error: 'sp' was not declared in this scope
while (it != sp.end() && *it <= R) {
^
0_0_36615230_31918.cpp:19:9: error: 'e' was not declared in this scope
e[*it].push_back(d);
^
0_0_36615230_31918.cpp: In function 'void dfs(int)':
0_0_36615230_31918.cpp:30:17: error: 'e' was not declared in this scope
for(int y : e[x]) {
^
0_0_36615230_31918.cpp: In function 'void read(int&)':
0_0_36615230_31918.cpp:42:30: error: 'getchar' was not declared in this scope
char c; while((c=getchar())>'9'||c<'0');
^
0_0_36615230_31918.cpp:43:30: error: 'getchar' was not declared in this scope
x=c-'0';while((c=getchar())>='0'&&c<='9')x=x*10+c-'0';
^
0_0_36615230_31918.cpp: In function 'int main()':
0_0_36615230_31918.cpp:50:24: error: 'scanf' was not declared in this scope
for(scanf("%d", &TT); TT; TT --) {
^
0_0_36615230_31918.cpp:51:9: error: 'cin' was not declared in this scope
cin >> n >> m;
^
0_0_36615230_31918.cpp:52:28: error: 'memset' was not declared in this scope
memset(a,0,sizeof a);
^
0_0_36615230_31918.cpp:59:29: error: 'ri' was not declared in this scope
for(int i=0;i<N;i++)ri[i].clear(),e[i].clear();
^
0_0_36615230_31918.cpp:59:43: error: 'e' was not declared in this scope
for(int i=0;i<N;i++)ri[i].clear(),e[i].clear();
^
0_0_36615230_31918.cpp:60:9: error: 'sp' was not declared in this scope
sp.clear();
^
0_0_36615230_31918.cpp:64:45: error: 'swap' was not declared in this scope
if (a[i] > b[i]) swap(a[i], b[i]);
^
0_0_36615230_31918.cpp:68:13: error: 'ri' was not declared in this scope
ri[a[i]].push_back(b[i]);
^
0_0_36615230_31918.cpp:72:33: error: 'memcpy' was not declared in this scope
memcpy(bd,sum,sizeof sum);
^
0_0_36615230_31918.cpp:75:18: error: 'ri' was not declared in this scope
sort(ri[i].begin(), ri[i].end());
^
0_0_36615230_31918.cpp:75:44: error: 'sort' was not declared in this scope
sort(ri[i].begin(), ri[i].end());
^
0_0_36615230_31918.cpp:76:59: error: 'unique' was not declared in this scope
ri[i].resize(unique(ri[i].begin(), ri[i].end()) - ri[i].begin());
^
0_0_36615230_31918.cpp:79:25: error: 'ri' was not declared in this scope
for(int y : ri[i]) {
^
0_0_36615230_31918.cpp:87:25: error: 'ri' was not declared in this scope
for(int y : ri[i]) {
^
0_0_36615230_31918.cpp:104:9: error: 'cout' was not declared in this scope
cout << (ans ? "Yes\n" : "No\n");
^
|