Borderou de evaluare (job #3284294)

Utilizator mihaigeorgescuGeorgescu Mihai mihaigeorgescu Data 11 martie 2025 13:41:24
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:34:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 34 | while(i<s.size()) | ~^~~~~~~~~ main.cpp:52:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 52 | while(i<s.size() && isdigit(s[i])) val=val*10+s[i]-48, i++; i--; | ~^~~~~~~~~ main.cpp:52:13: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 52 | while(i<s.size() && isdigit(s[i])) val=val*10+s[i]-48, i++; i--; | ^~~~~ main.cpp:52:73: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' 52 | while(i<s.size() && isdigit(s[i])) val=val*10+s[i]-48, i++; i--; | ^ main.cpp:54:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 54 | if(i+1<s.size()); | ~~~^~~~~~~~~ main.cpp: In function 'int priority(char)': main.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type] 19 | } | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms401kbKilled by Signal 110
23ms401kbKilled by Signal 110
33ms401kbKilled by Signal 110
43ms401kbKilled by Signal 110
53ms401kbKilled by Signal 110
63ms397kbKilled by Signal 110
73ms405kbKilled by Signal 110
83ms405kbKilled by Signal 110
93ms638kbKilled by Signal 110
103ms630kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?