Borderou de evaluare (job #2791882)

Utilizator DMR6476Erdic Dragos DMR6476 Data 31 octombrie 2021 12:10:32
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void bfs(int)': main.cpp:31:20: error: found ':' in nested-name-specifier, expected '::' 31 | for(it : v[curr.first]) | ^ | :: main.cpp:31:17: error: 'it' is not a class, namespace, or enumeration 31 | for(it : v[curr.first]) | ^~ main.cpp:42:9: error: expected primary-expression before '}' token 42 | } | ^ main.cpp:40:14: error: expected ';' before '}' token 40 | } | ^ | ; 41 | 42 | } | ~ main.cpp:42:9: error: expected primary-expression before '}' token 42 | } | ^ main.cpp:40:14: error: expected ')' before '}' token 40 | } | ^ | ) 41 | 42 | } | ~ main.cpp:31:16: note: to match this '(' 31 | for(it : v[curr.first]) | ^ main.cpp:42:9: error: expected primary-expression before '}' token 42 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?