Problem adjlist
User cprime
Submission Time 2024-07-01 21:19:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjlist.cpp: In function ‘int32_t main()’:
adjlist.cpp:2:18: error: declaration does not declare anything [-fpermissive]
2 | #define int long long;
| ^~~~
adjlist.cpp:5:2: note: in expansion of macro ‘int’
5 | int n, v;
| ^~~
adjlist.cpp:5:6: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | int n, v;
| ^
| yn
adjlist.cpp:5:9: error: ‘v’ was not declared in this scope
5 | int n, v;
| ^
adjlist.cpp:2:18: error: template argument 1 is invalid
2 | #define int long long;
| ^~~~
adjlist.cpp:7:9: note: in expansion of macro ‘int’
7 | vector<int> adj[n+2];
| ^~~
adjlist.cpp:2:18: error: template argument 2 is invalid
2 | #define int long long;
| ^~~~
adjlist.cpp:7:9: note: in expansion of macro ‘int’
7 | vector<int> adj[n+2];