rings.cpp:3:1: error: 'vector' does not name a type
3 | vector<int> v[2000];
| ^~~~~~
rings.cpp: In function 'void Link(int, int)':
rings.cpp:13:5: error: 'v' was not declared in this scope
13 | v[A].push_back(B);
| ^
rings.cpp: In function 'int CountCritical()':
rings.cpp:30:13: error: 'queue' was not declared in this scope; did you mean 'std::queue'?
30 | queue<int> q;q.push(j);
| ^~~~~
| std::queue
In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from rings.cpp:1:
/usr/include/c++/10/bits/stl_queue.h:96:11: note: 'std::queue' declared here
96 | class queue
| ^~~~~
rings.cpp:30:19: error: expected primary-expression before 'int'
30 | queue<int> q;q.push(j);
| ^~~
rings.cpp:30:26: error: 'q' was not declared in this scope
30 | queue<int> q;q.push(j);
| ^
rings.cpp:36:29: error: 'v' was not declared in this scope
36 | for(auto u: v[a]){
| ^