Borderou de evaluare (job #3176461)

Utilizator zavragiudavid dragoi zavragiu Data 27 noiembrie 2023 09:49:37
Problema Expresii min-max Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 15

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:13:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 13 | for (i = 0; i < s.size(); i++) | ~~^~~~~~~~~~ main.cpp:27:24: warning: operation on 'top' may be undefined [-Wsequence-point] 27 | st[top = 1] = max(st[top], x); | ~~~~^~~ main.cpp:13:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 13 | for (i = 0; i < s.size(); i++) | ^~~ main.cpp:52:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 52 | fout << st[top] << "\n"; | ^~~~ main.cpp:10:15: warning: unused variable 'y' [-Wunused-variable] 10 | int i, x, y; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
20ms303kbOK5
30ms303kbIncorect0
40ms303kbOK5
50ms303kbIncorect0
60ms303kbIncorect0
70ms303kbIncorect0
80ms303kbIncorect0
90ms303kbOK5
100ms303kbIncorect0
110ms557kbIncorect0
120ms557kbIncorect0
130ms557kbIncorect0
141ms557kbIncorect0
151ms557kbIncorect0
160ms557kbIncorect0
170ms569kbIncorect0
181ms557kbIncorect0
191ms557kbIncorect0
201ms557kbIncorect0
Punctaj total15

Ceva nu functioneaza?