Borderou de evaluare (job #1210416)
Utilizator | Data | 19 iulie 2014 22:31:43 | |
---|---|---|---|
Problema | Text3 | 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:22:14: error: no matching function for call to ‘std::basic_ifstream<char>::open()’
fin.open();
^
user.cpp:22:14: note: candidates are:
In file included from user.cpp:1:0:
/usr/include/c++/4.8/fstream:538:7: note: void std::basic_ifstream<_CharT, _Traits>::open(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
open(const char* __s, ios_base::openmode __mode = ios_base::in)
^
/usr/include/c++/4.8/fstream:538:7: note: candidate expects 2 arguments, 0 provided
/usr/include/c++/4.8/fstream:558:7: note: void std::basic_ifstream<_CharT, _Traits>::open(const string&, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::string = std::basic_string<char>; std::ios_base::openmode = std::_Ios_Openmode]
open(const std::string& __s, ios_base::openmode __mode = ios_base::in)
^
/usr/include/c++/4.8/fstream:558:7: note: candidate expects 2 arguments, 0 provided
user.cpp:51:13: error: ‘i’ was not declared in this scope
for(i = 1; i <= k; i++)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !