Problem adjmatrix
User CalebKow
Submission Time 2025-08-06 09:29:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:7:10: error: found ‘:’ in nested-name-specifier, expected ‘::’
7 | int n, e: cin>>n>>e;
| ^
| ::
adjmatrix.cpp:7:9: error: ‘e’ has not been declared
7 | int n, e: cin>>n>>e;
| ^
adjmatrix.cpp:7:15: error: qualified-id in declaration before ‘>>’ token
7 | int n, e: cin>>n>>e;
| ^~
adjmatrix.cpp:10:18: error: ‘e’ was not declared in this scope
10 | for(int i=1; i<=e; i++) {
| ^
adjmatrix.cpp:16:9: error: found ‘:’ in nested-name-specifier, expected ‘::’
16 | for(arr: array){
| ^
| ::
adjmatrix.cpp:16:6: error: ‘arr’ has not been declared
16 | for(arr: array){
| ^~~
adjmatrix.cpp:22:1: error: expected primary-expression before ‘}’ token
22 | }
| ^
adjmatrix.cpp