Borderou de evaluare (job #3187462)

Utilizator divadddDavid Curca divaddd Data 29 decembrie 2023 01:53:40
Problema Expresii algebrice Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:32:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 32 | ok &= (pos == str.size()); | ~~~~^~~~~~~~~~~~~ main.cpp:31:13: warning: variable '_' set but not used [-Wunused-but-set-variable] 31 | pii _ = expresie(); | ^ main.cpp: In function 'std::pair<int, int> expresie()': main.cpp:49:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 49 | while(ok && pos < str.size() && str[pos] == '+'){ | ~~~~^~~~~~~~~~~~ main.cpp:51:13: warning: variable 't' set but not used [-Wunused-but-set-variable] 51 | pii t = termen(); | ^ main.cpp: In function 'std::pair<int, int> termen()': main.cpp:65:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 65 | while(ok && pos < str.size() && str[pos] == '*'){ | ~~~~^~~~~~~~~~~~ main.cpp:67:13: warning: variable 'f' set but not used [-Wunused-but-set-variable] 67 | pii f = factor(); | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
Punctaj total0

Ceva nu functioneaza?