Borderou de evaluare (job #1287935)
Utilizator | Data | 8 decembrie 2014 11:23:28 | |
---|---|---|---|
Problema | Blis | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:53:9: error: no match for ‘operator=’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘std::fstream {aka std::basic_fstream<char>}’)
out = fstream("blis.out", ios::app);
^
user.cpp:53:9: note: candidate is:
In file included from user.cpp:1:0:
/usr/include/c++/4.8/fstream:599:11: note: std::basic_ofstream<char>& std::basic_ofstream<char>::operator=(const std::basic_ofstream<char>&) <deleted>
class basic_ofstream : public basic_ostream<_CharT,_Traits>
^
/usr/include/c++/4.8/fstream:599:11: note: no known conversion for argument 1 from ‘std::fstream {aka std::basic_fstream<char>}’ to ‘const std::basic_ofstream<char>&’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !