Borderou de evaluare (job #2967934)

Utilizator PopelEmilBogdanPopel Emil-Bogdan PopelEmilBogdan Data 20 ianuarie 2023 13:21:11
Problema Transport2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:1: error: ISO C++ forbids declaration of 'dfs' with no type [-fpermissive] 10 | dfs(int start, int w){ | ^~~ main.cpp: In function 'int dfs(int, int)': main.cpp:11:9: error: 'k' was not declared in this scope 11 | viz[k] = 1; | ^ main.cpp:17:1: warning: no return statement in function returning non-void [-Wreturn-type] 17 | } | ^ main.cpp: At global scope: main.cpp:20:1: error: ISO C++ forbids declaration of 'binarySearchForMaxW' with no type [-fpermissive] 20 | binarySearchForMaxW(){ | ^~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int binarySearchForMaxW()': main.cpp:27:18: error: 'n' was not declared in this scope 27 | if ( viz[n] == 1){ | ^ main.cpp:35:1: warning: no return statement in function returning non-void [-Wreturn-type] 35 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?