Borderou de evaluare (job #2907595)
Utilizator | Data | 30 mai 2022 20:47:20 | |
---|---|---|---|
Problema | Tribute | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int suma_distante(std::vector<int>&, int)':
main.cpp:8:30: error: expected initializer before 'v'
8 | int suma=0, st=0, dr(int)v.size() - 1;
| ^
main.cpp:9:16: error: 'dr' was not declared in this scope
9 | while(st < dr && v[dr] - v[st] > lung)
| ^~
main.cpp: In function 'int main()':
main.cpp:19:16: error: variable 'std::ifstream in' has initializer but incomplete type
19 | ifstream in("tribute.in");
| ^
main.cpp:20:17: error: variable 'std::ofstream out' has initializer but incomplete type
20 | ofstream out("tribute.out");
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !