Borderou de evaluare (job #2928839)

Utilizator EasyTnsEasyTns EasyTns Data 23 octombrie 2022 22:44:46
Problema Numarare triunghiuri Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:5: error: 'vector' does not name a type 6 | vector<char> str; | ^~~~~~ main.cpp: In member function 'char InParser::getChar()': main.cpp:11:24: error: 'str' was not declared in this scope; did you mean 'ptr'? 11 | if (ptr == int(str.size())) { | ^~~ | ptr main.cpp:15:16: error: 'str' was not declared in this scope; did you mean 'ptr'? 15 | return str[ptr++]; | ^~~ | ptr main.cpp: In constructor 'InParser::InParser(const char*)': main.cpp:37:34: error: class 'InParser' does not have any field named 'str' 37 | InParser(const char* name) : str(1e5), ptr(str.size()), fin(name) { } | ^~~ main.cpp:37:48: error: 'str' was not declared in this scope; did you mean 'ptr'? 37 | InParser(const char* name) : str(1e5), ptr(str.size()), fin(name) { } | ^~~ | ptr Non zero exit status: 1

Ceva nu functioneaza?