Borderou de evaluare (job #2923528)

Utilizator CookieDaggerDragan Iulian CookieDagger Data 15 septembrie 2022 12:41:58
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 40

Raport evaluator

Compilare: main.cpp: In function 'int eval(std::string)': main.cpp:72:19: 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<s.length(); i++) { | ~^~~~~~~~~~~ main.cpp:83:22: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare] 83 | if(found != string::npos){ | ~~~~~~^~~~~~~~~~~~~~~ main.cpp:100:26: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] 100 | }catch(exception e){ | ^ main.cpp:104:14: warning: variable 'it' set but not used [-Wunused-but-set-variable] 104 | for(auto it:opQueue){ | ^~ main.cpp:108:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<op>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 108 | for(int i = 0; i < opQueue.size() - 1; i++){ | ~~^~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms188kbOK10
20ms184kbKilled by Signal 110
30ms184kbOK10
40ms184kbOK10
50ms184kbKilled by Signal 110
60ms184kbKilled by Signal 110
70ms184kbKilled by Signal 110
80ms184kbKilled by Signal 110
94ms446kbIncorect0
102ms839kbOK10
Punctaj total40

Ceva nu functioneaza?