Borderou de evaluare (job #2244318)

Utilizator mihai50000Mihai-Cristian Popescu mihai50000 Data 22 septembrie 2018 16:14:48
Problema Xspe Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:16:1: error: ‘stack’ does not name a type stack <int> st; ^~~~~ user.cpp:19:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] main() ^ user.cpp: In function ‘int main()’: user.cpp:30:9: error: ‘st’ was not declared in this scope while(st.empty() == 0 && st.top() > v[i]) ^~ user.cpp:35:6: error: ‘st’ was not declared in this scope if(st.empty() == 0) ^~ user.cpp:37:3: error: ‘st’ was not declared in this scope st.push(v[i]); ^~

Ceva nu functioneaza?