Borderou de evaluare (job #3231319)

Utilizator Laura139Anghel Laura Laura139 Data 25 mai 2024 17:22:05
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool f()': main.cpp:40:17: error: 'cntQ' was not declared in this scope 40 | cntQ[vecin] ++; | ^~~~ main.cpp:46:13: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 46 | int main() | ^~ main.cpp:46:13: note: remove parentheses to default-initialize a variable 46 | int main() | ^~ | -- main.cpp:46:13: note: or replace parentheses with braces to value-initialize a variable main.cpp:47:5: error: a function-definition is not allowed here before '{' token 47 | { | ^ main.cpp:63:6: error: expected '}' at end of input 63 | } | ^ main.cpp:23:1: note: to match this '{' 23 | { | ^ main.cpp:63:6: warning: control reaches end of non-void function [-Wreturn-type] 63 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?