Borderou de evaluare (job #2820676)
Utilizator | Data | 21 decembrie 2021 09:22:27 | |
---|---|---|---|
Problema | Teams | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Citire()':
main.cpp:13:12: warning: unused variable 'j' [-Wunused-variable]
13 | int i, j;
| ^
main.cpp: In function 'int CB1(int, int)':
main.cpp:20:31: error: declaration of 'int poz' shadows a parameter
20 | int st = poz + 1, dr = n, poz = -1, mij;
| ^~~
main.cpp:18:20: note: 'int poz' previously declared here
18 | int CB1(int x, int poz)
| ~~~~^~~
main.cpp: In function 'int CB2(int, int)':
main.cpp:36:31: error: declaration of 'int poz' shadows a parameter
36 | int st = poz + 1, dr = n, poz = -1, mij;
| ^~~
main.cpp:34:20: note: 'int poz' previously declared here
34 | int CB2(int x, int poz)
| ~~~~^~~
main.cpp: In function 'void rezolvare()':
main.cpp:52:12: warning: unused variable 'j' [-Wunused-variable]
52 | int i, j, stanga, dreapta, rez = 0;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !