Borderou de evaluare (job #1620858)
Utilizator | Data | 29 februarie 2016 13:30:12 | |
---|---|---|---|
Problema | Pseudobil | 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:24:29: error: no matching function for call to ‘std::basic_ifstream<char>::close(const char [13])’
fin.close("pseudobil.in");
^
user.cpp:24:29: note: candidate is:
In file included from user.cpp:1:0:
/usr/include/c++/4.8/fstream:576:7: note: void std::basic_ifstream<_CharT, _Traits>::close() [with _CharT = char; _Traits = std::char_traits<char>]
close()
^
/usr/include/c++/4.8/fstream:576:7: note: candidate expects 0 arguments, 1 provided
user.cpp:25:31: error: no matching function for call to ‘std::basic_ofstream<char>::close(const char [14])’
fout.close("pseudobil.out");
^
user.cpp:25:31: note: candidate is:
In file included from user.cpp:1:0:
/usr/include/c++/4.8/fstream:753:7: note: void std::basic_ofstream<_CharT, _Traits>::close() [with _CharT = char; _Traits = std::char_traits<char>]
close()
^
/usr/include/c++/4.8/fstream:753:7: note: candidate expects 0 arguments, 1 provided
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !