Borderou de evaluare (job #2772486)
Utilizator | Data | 1 septembrie 2021 12:39:55 | |
---|---|---|---|
Problema | Viteze | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:130:30: error: no matching function for call to 'InParser::InParser(std::__cxx11::basic_string<char>)'
InParser fin(filename + ".in");
^
main.cpp:27:2: note: candidate: InParser::InParser(const char*)
InParser(const char* nume) {
^~~~~~~~
main.cpp:27:2: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'const char*'
main.cpp:11:7: note: candidate: constexpr InParser::InParser(const InParser&)
class InParser {
^~~~~~~~
main.cpp:11:7: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'const InParser&'
main.cpp:11:7: note: candidate: constexpr InParser::InParser(InParser&&)
main.cpp:11:7: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'InParser&&'
main.cpp:131:33: error: no matching function for call to 'OutParser::OutParser(std::__cxx11::basic_string<char>)'
OutParser fout(filename + ".out");
^
main.cpp:88:2: note: candidate: OutParser::OutParser(const char*)
OutParser(const char* name) {
^~~~~~~~~
main.cpp:88:2: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'const char*'
main.cpp:70:7: note: candidate: constexpr OutParser::OutParser(const OutParser&)
class OutParser {
^~~~~~~~~
main.cpp:70:7: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'const OutParser&'
main.cpp: In function 'int main()':
main.cpp:157:6: error: 'class InParser' has no member named 'close'
fin.close();
^~~~~
main.cpp:158:7: error: 'class OutParser' has no member named 'close'
fout.close();
^~~~~
main.cpp: In member function 'char InParser::read_ch()':
main.cpp:21:29: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fread(buff, 1, 4096, fin);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !