Borderou de evaluare (job #2961984)
Utilizator | Data | 7 ianuarie 2023 15:49:45 | |
---|---|---|---|
Problema | Costperm | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:5: error: 'vector' does not name a type
9 | vector<char> str;
| ^~~~~~
main.cpp: In member function 'char InParser::getChar()':
main.cpp:14:24: error: 'str' was not declared in this scope; did you mean 'ptr'?
14 | if (ptr == int(str.size())) {
| ^~~
| ptr
main.cpp:18:16: error: 'str' was not declared in this scope; did you mean 'ptr'?
18 | return str[ptr++];
| ^~~
| ptr
main.cpp: In constructor 'InParser::InParser(const char*)':
main.cpp:40:34: error: class 'InParser' does not have any field named 'str'
40 | InParser(const char* name) : str(1e5), ptr(str.size()), fin(name) { }
| ^~~
main.cpp:40:48: error: 'str' was not declared in this scope; did you mean 'ptr'?
40 | InParser(const char* name) : str(1e5), ptr(str.size()), fin(name) { }
| ^~~
| ptr
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !