Problem adjlist
User JJYZZ
Submission Time 2024-06-21 10:04:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjlist.cpp: In function ‘int main()’:
adjlist.cpp:10:1: error: expected initializer before ‘for’
10 | for (int 1=0; i<e; ++1){
| ^~~
adjlist.cpp:10:15: error: ‘i’ was not declared in this scope
10 | for (int 1=0; i<e; ++1){
| ^
adjlist.cpp:10:22: error: lvalue required as increment operand
10 | for (int 1=0; i<e; ++1){
| ^
adjlist.cpp:17:10: error: expected unqualified-id before ‘,’ token
17 | for (int,i=1; i<=n; i++)
| ^
adjlist.cpp:19:28: error: ‘adj’ was not declared in this scope
19 | for (int j = 0; j < (int)adj[i].size(); j++)
| ^~~