Borderou de evaluare (job #3250308)
Utilizator | Data | 19 octombrie 2024 23:57:23 | |
---|---|---|---|
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:8:16: error: variable 'std::ifstream in' has initializer but incomplete type
8 | ifstream in("vila2.in");
| ^
main.cpp:9:17: error: variable 'std::ofstream out' has initializer but incomplete type
9 | ofstream out("vila2.out");
| ^
main.cpp:20:42: error: expected ';' before 'maxDif'
20 | if (abs(a[i] - a[j] > maxDif)
| ^
| ;
21 | maxDif = abs(a[i] - a[j]);
| ~~~~~~
main.cpp:20:20: warning: statement has no effect [-Wunused-value]
20 | if (abs(a[i] - a[j] > maxDif)
| ~~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:23:18: error: expected ')' before ';' token
23 | out << maxDif;
| ^
| )
main.cpp:20:16: note: to match this '('
20 | 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 !