Borderou de evaluare (job #3293165)

Utilizator DalvDalvGhita Vladut DalvDalv Data 10 aprilie 2025 15:02:51
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:52:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 52 | for(int i = 0; i < expression.length(); i++) { | ~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:53:21: error: 'strchr' was not declared in this scope 53 | if(!strchr("()+-*/", expression[i])) { | ^~~~~~ main.cpp:8:1: note: 'strchr' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 7 | #include <stack> +++ |+#include <cstring> 8 | #include <unordered_map> main.cpp:40:14: warning: unused variable 'ops' [-Wunused-variable] 40 | char ops[] = "()+0*/"; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?