Problem | adjlist |
---|---|
User | FIips |
Submission Time | 2024-03-15 01:06:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adjlist.cpp: In function ‘int32_t main()’:
adjlist.cpp:9:23: error: expected ‘]’ before ‘;’ token
9 | int arr[n], arr2[n;
| ^
| ]
adjlist.cpp:10:41: error: ‘arr2’ was not declared in this scope; did you mean ‘arr’?
10 | for(int i=0; i<e; i++) cin>>arr[i]>>arr2[i];
| ^~~~
| arr
adjlist.cpp:14:33: error: ‘arr2’ was not declared in this scope; did you mean ‘arr’?
14 | if(arr[i]==c) cout<<arr2[i]<<" ";
| ^~~~
| arr
adjlist.cpp:15:21: error: ‘arr2’ was not declared in this scope; did you mean ‘arr’?
15 | else if(arr2[i]==c) cout<<arr[i]<<" ";
| ^~~~
| arr