Problem | adjlist |
---|---|
User | YH |
Submission Time | 2024-02-04 14:58:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adjlist.cpp: In function ‘int main()’:
adjlist.cpp:19:16: error: invalid conversion from ‘short int*’ to ‘int’ [-fpermissive]
19 | for (int d : graph) {
| ^~~~~
| |
| short int*
adjlist.cpp:20:11: error: invalid types ‘int[int]’ for array subscript
20 | if (d[0] == y) {
| ^
adjlist.cpp:21:16: error: invalid types ‘int[int]’ for array subscript
21 | cout << d[1] << " ";
| ^
adjlist.cpp:23:16: error: invalid types ‘int[int]’ for array subscript
23 | else if (d[1] == y) {
| ^
adjlist.cpp:24:16: error: invalid types ‘int[int]’ for array subscript
24 | cout << d[0] << " ";
| ^