Problem adjmatrix
User PorridgePi
Submission Time 2023-03-06 12:38:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjmatrix.cpp:3:5: error: cannot declare ‘::main’ to be a global variable
3 | int main{
| ^~~~
adjmatrix.cpp:4:2: error: expected primary-expression before ‘int’
4 | int n, e;
| ^~~
adjmatrix.cpp:4:2: error: expected ‘}’ before ‘int’
adjmatrix.cpp:3:9: note: to match this ‘{’
3 | int main{
| ^
adjmatrix.cpp:5:7: error: expected constructor, destructor, or type conversion before ‘(’ token
5 | scanf("%d%d", &n, &e);
| ^
adjmatrix.cpp:6:10: error: ‘e’ was not declared in this scope
6 | int arr[e][2];
| ^
adjmatrix.cpp:7:12: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
7 | int yikun[n][n];
| ^
| yn
adjmatrix.cpp:7:15: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
7 | int yikun[n][n];
| ^
| yn
adjmatrix.cpp:8:2: error: expect