Borderou de evaluare (job #2962901)

Utilizator lucaxsofLuca Sofronie lucaxsof Data 9 ianuarie 2023 19:08:16
Problema Logic Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool expresie(std::string)': main.cpp:44:15: error: 'p' was not declared in this scope 44 | while (a1[p] == '|') | ^ main.cpp: In function 'bool factor1(std::string)': main.cpp:55:15: error: 'p' was not declared in this scope 55 | while (a1[p] == '^') | ^ main.cpp: In function 'bool factor2(std::string)': main.cpp:66:15: error: 'p' was not declared in this scope 66 | while (a1[p] == '&') | ^ main.cpp: In function 'bool termen(std::string)': main.cpp:77:15: error: 'p' was not declared in this scope 77 | while (a1[p] == '~') | ^ main.cpp:79:12: error: 'p' was not declared in this scope 79 | if (a1[p] == '(') | ^ main.cpp:87:15: error: 'valori' was not declared in this scope 87 | rez = valori[a1[p] - 'a']; | ^~~~~~ main.cpp: In function 'void read()': main.cpp:104:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 104 | for (int i = 0; i < a.size(); ++i) | ~~^~~~~~~~~~ main.cpp:109:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 109 | for (int i = 0; i < b.size() && ok; ++i) | ~~^~~~~~~~~~ main.cpp: In function 'void solve()': main.cpp:131:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 131 | for (int i = 0; i < a.size(); i++) | ~~^~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?