Borderou de evaluare (job #2863478)

Utilizator radu.Radu Cristi radu. Data 6 martie 2022 19:34:22
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp:9:8: warning: built-in function 'exp' declared as non-function [-Wbuiltin-declaration-mismatch] 9 | string exp, postfix = ""; | ^~~ main.cpp: In function 'void createPostFixExpression()': main.cpp:21:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 21 | for (int i = 0; i < exp.length(); ++i) { | ~~^~~~~~~~~~~~~~ main.cpp: In function 'int evaluatePostfix()': main.cpp:72:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 72 | for (int i = 0; i < postfix.length(); ++i) { | ~~^~~~~~~~~~~~~~~~~~ main.cpp: In function 'int priority(char)': main.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type] 17 | } | ^ main.cpp: In function 'int calculate(char, int, int)': main.cpp:68:1: warning: control reaches end of non-void function [-Wreturn-type] 68 | } | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbOK10
22ms184kbOK10
32ms184kbOK10
42ms184kbOK10
52ms184kbOK10
62ms184kbOK10
72ms184kbOK10
82ms184kbOK10
96ms487kbOK10
106ms380kbOK10
Punctaj total100

Ceva nu functioneaza?