Problem foreveralone
User blob
Submission Time 2023-11-20 10:13:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foreveralone.cpp: In function ‘int main()’:
foreveralone.cpp:7:22: error: expected primary-expression before ‘)’ token
7 | for (int i=0;i<M;i+=){
| ^
foreveralone.cpp:11:6: error: ‘a’ was not declared in this scope
11 | if (a != b){
| ^
foreveralone.cpp:11:11: error: ‘b’ was not declared in this scope
11 | if (a != b){
| ^
foreveralone.cpp:12:3: error: ‘adj’ was not declared in this scope
12 | adj[a].push_back(b);
| ^~~
foreveralone.cpp:17:14: error: request for member ‘empty’ in ‘adjList’, which is of non-class type ‘std::vector<int> [N]’
17 | if(adjList.empty()){
| ^~~~~