Problem adjmatrix
User boaznumberd5555
Submission Time 2023-08-25 14:21:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjmatrix.cpp:3:10: error: expected identifier before numeric constant
3 | int bool[50][50];
| ^~
adjmatrix.cpp:3:10: error: expected ‘]’ before numeric constant
3 | int bool[50][50];
| ^~
| ]
adjmatrix.cpp:3:12: error: two or more data types in declaration of ‘structured binding’
3 | int bool[50][50];
| ^
adjmatrix.cpp:3:9: error: empty structured binding declaration
3 | int bool[50][50];
| ^
adjmatrix.cpp:3:13: error: expected initializer before ‘[’ token
3 | int bool[50][50];
| ^
adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:9:7: error: structured binding declaration cannot have type ‘bool’
9 | bool[node][edge] = true;
| ^~~~~~
adjmatrix.cpp:9:7: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
adjmatrix.cpp:9:8: error: conflicting declaration ‘auto node’