Problem | adjlist |
---|---|
User | Tristyy |
Submission Time | 2024-06-21 10:24:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adjlist.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
adjlist.cpp: In function ‘int main()’:
adjlist.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin >> n >> e;
| ^~~
adjlist.cpp:7:2: error: ‘map’ was not declared in this scope
7 | map<int, vector<int>> mp;
| ^~~
adjlist.cpp:7:6: error: expected primary-expression before ‘int’
7 | map<int, vector<int>> mp;
| ^~~
adjlist.cpp:12:3: error: ‘mp’ was not declared in this scope
12 | mp[a].push_back(b);
| ^~
adjlist.cpp:16:22: error: ‘mp’ was not declared in this scope
16 | for (int h = 0;h < mp[i].size();n++){
| ^~
adjlist.cpp:17:4: error: ‘cout’ was not declared in this scope
17 | cout << mp[i][h] << " ";
| ^~~~