Borderou de evaluare (job #2120882)
Utilizator | Data | 3 februarie 2018 02:06:12 | |
---|---|---|---|
Problema | Int | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:1: error: ‘ifstream’ does not name a type
ifstream fr("int.in");
^
user.cpp:11:1: error: ‘ofstream’ does not name a type
ofstream fw("int.out");
^
user.cpp: In function ‘int main()’:
user.cpp:16:5: error: ‘fr’ was not declared in this scope
fr >> n;
^
user.cpp:20:40: error: ‘sort’ was not declared in this scope
sort(interval + 1, interval + n + 1);
^
user.cpp:20:40: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from user.cpp:3:
/usr/include/c++/5/bits/stl_algo.h:4718:5: note: ‘std::sort’
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
user.cpp:28:5: error: ‘fw’ was not declared in this scope
fw << nr;
^
user.cpp:28:11: error: ‘nr’ was not declared in this scope
fw << nr;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !