Borderou de evaluare (job #1689655)

Utilizator Timur17Ibram Timur Timur17 Data 14 aprilie 2016 14:21:39
Problema Alibaba Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:16:34: error: ‘stiva’ was not declared in this scope while(!stiva1.empty() && stiva.top()<nr && cnt<k) ^ user.cpp:20:9: error: expected ‘;’ before ‘}’ token } ^ user.cpp:22:19: error: cannot convert ‘std::stack<_Tp, _Sequence>::empty<int, std::deque<int, std::allocator<int> > >’ from type ‘bool (std::stack<int>::)()const’ to type ‘bool’ while(!stiva1.empty) ^ user.cpp:22:19: error: in argument to unary ! user.cpp:25:9: error: expected ‘,’ or ‘;’ before ‘stiva1’ stiva1.empty(); ^ user.cpp:31:9: error: expected ‘,’ or ‘;’ before ‘fout’ fout<<nr; ^ user.cpp:30:13: warning: unused variable ‘nr’ [-Wunused-variable] int nr=stiva2.top() ^

Ceva nu functioneaza?