Borderou de evaluare (job #639062)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Nod (clasa a 7-a) | Compilator | cpp-32 |
Rundă | pregatire_oji_cls6_vianu | Status | evaluat |
Dată | 7 mar. 2022 11:45:39 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:1: error: 'in' does not name a type; did you mean 'int'?
3 | in >>
| ^~
| int
main.cpp: In function 'int romanToDecimal(std::string&)':
main.cpp:34:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
34 | for (int i = 0; i < str.length(); i++)
| ~~^~~~~~~~~~~~~~
main.cpp:37:18: error: 'value' was not declared in this scope
37 | int s1 = value(str[i]);
| ^~~~~
main.cpp:39:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
39 | if (i + 1 < str.length())
| ~~~~~~^~~~~~~~~~~~~~