Problem | adjmatrix |
---|---|
User | Aum |
Submission Time | 2023-11-08 23:50:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cc1plus: error: ‘::main’ must return ‘int’
adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:7:2: error: expected initializer before ‘cin’
7 | cin >> n, e;
| ^~~
adjmatrix.cpp:9:2: error: expected initializer before ‘for’
9 | for (int i = 0; i<e; i++){
| ^~~
adjmatrix.cpp:9:18: error: ‘i’ was not declared in this scope
9 | for (int i = 0; i<e; i++){
| ^
adjmatrix.cpp:14:26: error: expected ‘;’ before ‘)’ token
14 | for (int j = 0; j<n, j++){
| ^
| ;
adjmatrix.cpp:15:27: error: expected ‘;’ before ‘)’ token
15 | for (int z = 0; j<n, j++){
| ^
| ;
adjmatrix.cpp:16:12: error: ‘arr’ was not declared in this scope
16 | cout << arr[j][z];
| ^~~