Borderou de evaluare (job #3260804)
Utilizator | Data | 3 decembrie 2024 18:58:38 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:12:12: error: no matching function for call to 'std::basic_ifstream<char>::open()'
12 | in.open();
| ~~~~~~~^~
In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:70,
from main.cpp:1:
/usr/include/c++/12.2.1/fstream:723:9: note: candidate: 'template<class _Path> std::_If_fs_path<_Path, void> std::basic_ifstream<_CharT, _Traits>::open(const _Path&, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>]'
723 | open(const _Path& __s, ios_base::openmode __mode = ios_base::in)
| ^~~~
/usr/include/c++/12.2.1/fstream:723:9: note: template argument deduction/substitution failed:
main.cpp:12:12: note: candidate expects 2 arguments, 0 provided
12 | in.open();
| ~~~~~~~^~
/usr/include/c++/12.2.1/fstream:663:7: note: candidate: '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_base::openmode]'
663 | open(const char* __s, ios_base::openmode __mode = ios_base::in)
| ^~~~
/usr/include/c++/12.2.1/fstream:663:7: note: candidate expects 2 arguments, 0 provided
/usr/include/c++/12.2.1/fstream:702:7: note: candidate: 'void std::basic_ifstream<_CharT, _Traits>::open(const std::string&, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::string = std::__cxx11::basic_string<char>; std::ios_base::openmode = std::ios_base::openmode]'
702 | open(const std::string& __s, ios_base::openmode __mode = ios_base::in)
| ^~~~
/usr/include/c++/12.2.1/fstream:702:7: note: candidate expects 2 arguments, 0 provided
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !