Problem iroha
User PrunJuice
Submission Time 2024-12-28 10:33:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

iroha.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
4 | int main {
| ^~~~
iroha.cpp:5:5: error: expected primary-expression before ‘int’
5 | int n, m, k;
| ^~~
iroha.cpp:5:5: error: expected ‘}’ before ‘int’
iroha.cpp:4:10: note: to match this ‘{’
4 | int main {
| ^
iroha.cpp:6:5: error: ‘cin’ does not name a type; did you mean ‘sin’?
6 | cin >> n >> m >> k;
| ^~~
| sin
iroha.cpp:8:42: error: ‘n’ was not declared in this scope
8 | vector <vector <int>> AdjacencyList (n + 1);
| ^
iroha.cpp:9:5: error: expected unqualified-id before ‘for’
9 | for (int i = 0; i < m; i++) {
| ^~~
iroha.cpp:9:21: error: ‘i’ does not name a type
9 | for (int i = 0; i < m; i++) {
| ^
iroha.cpp:9:28: error: