Borderou de evaluare (job #3250309)
Utilizator | Data | 19 octombrie 2024 23:58:36 | |
---|---|---|---|
Problema | Vila 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:21:42: error: expected ';' before 'maxDif'
21 | if (abs(a[i] - a[j] > maxDif)
| ^
| ;
22 | maxDif = abs(a[i] - a[j]);
| ~~~~~~
main.cpp:21:20: warning: statement has no effect [-Wunused-value]
21 | if (abs(a[i] - a[j] > maxDif)
| ~~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:24:18: error: expected ')' before ';' token
24 | out << maxDif;
| ^
| )
main.cpp:21:16: note: to match this '('
21 | if (abs(a[i] - a[j] > maxDif)
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !