Borderou de evaluare (job #3177104)
Utilizator | Data | 28 noiembrie 2023 15:44:03 | |
---|---|---|---|
Problema | Dragoni | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int, std::vector<int>&, int)':
main.cpp:13:16: error: declaration of 'int n' shadows a parameter
13 | int temp,i,n,max_distance=-1;
| ^
main.cpp:11:47: note: 'int n' previously declared here
11 | void dfs(int current,vector<int>& vizitat,int n)
| ~~~~^
main.cpp:24:5: error: 'g' was not declared in this scope
24 | g << max_distance;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !