Problem | peddler |
---|---|
User | eulerleonhardfan |
Submission Time | 2023-07-24 20:39:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
peddler.cpp:2:3: error: ‘cin’ does not name a type
2 | cin >> N >> M;
| ^~~
peddler.cpp:4:3: error: ‘vector’ does not name a type
4 | vector<int> A(N + 1);
| ^~~~~~
peddler.cpp:5:3: error: expected unqualified-id before ‘for’
5 | for (int i = 1; i <= N; ++i)
| ^~~
peddler.cpp:5:19: error: ‘i’ does not name a type
5 | for (int i = 1; i <= N; ++i)
| ^
peddler.cpp:5:27: error: expected unqualified-id before ‘++’ token
5 | for (int i = 1; i <= N; ++i)
| ^~
peddler.cpp:8:3: error: ‘vector’ does not name a type
8 | vector<vector<int>> adj(N + 1);
| ^~~~~~
peddler.cpp:9:3: error: expected unqualified-id before ‘for’
9 | for (int i = 0; i < M; ++i) {
| ^~~
peddler.cpp:9:19: error: ‘i’ does not name a type
9 | for (int i = 0; i < M; ++i) {