Borderou de evaluare (job #2889605)

Utilizator Rares_StefanoiuRares Stefanoiu Rares_Stefanoiu Data 12 aprilie 2022 23:22:48
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:18:76: warning: comparison of integer expressions of different signedness: 'int' and 'std::stack<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 18 | while (!stack.empty() and int(numar[i - 1]) - 48 > stack.top() and n - i >= k - stack.size()) | ~~~~~~^~~~~~~~~~~~~~~~~~~ main.cpp:22:20: warning: comparison of integer expressions of different signedness: 'std::stack<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 22 | if (stack.size() != k) | ~~~~~~~~~~~~~^~~~ main.cpp:6:16: warning: unused variable 'p' [-Wunused-variable] 6 | int k, n, i, p = 1; | ^ main.cpp:7:12: warning: unused variable 'nr' [-Wunused-variable] 7 | long long nr = 0; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbOK10
21ms184kbIncorect0
31ms184kbIncorect0
41ms262kbIncorect0
51ms184kbIncorect0
61ms184kbIncorect0
71ms184kbIncorect0
81ms184kbIncorect0
91ms184kbIncorect0
101ms184kbIncorect0
Punctaj total10

Ceva nu functioneaza?