Borderou de evaluare (job #2889563)

Utilizator Rares_StefanoiuRares Stefanoiu Rares_Stefanoiu Data 12 aprilie 2022 22:45:03
Problema Alibaba Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:16:77: warning: comparison of integer expressions of different signedness: 'int' and 'std::stack<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 16 | while (!stack.empty() and int(numar[i - 1]) - 48 > stack.top() and n - i >= k - stack.size()) | ~~~~~~^~~~~~~~~~~~~~~~~~~ main.cpp:19:20: warning: comparison of integer expressions of different signedness: 'std::stack<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 19 | if (stack.size() != k) | ~~~~~~~~~~~~~^~~~ main.cpp:6:6: warning: unused variable 'c' [-Wunused-variable] 6 | int c = 0, k, n, nr = 0, i, p = 1; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbOK10
21ms184kbIncorect0
33ms184kbIncorect0
41ms184kbIncorect0
51ms184kbIncorect0
611ms184kbIncorect0
71ms184kbIncorect0
81ms184kbIncorect0
91ms184kbIncorect0
101ms184kbIncorect0
Punctaj total10

Ceva nu functioneaza?