Borderou de evaluare (job #3162365)

Utilizator luc3lexaAlexandrescu Luca luc3lexa Data 29 octombrie 2023 00:19:29
Problema Turnuri4 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:21:14: error: invalid use of member function 'std::stack<_Tp, _Sequence>::size_type std::stack<_Tp, _Sequence>::size() const [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; size_type = long unsigned int]' (did you forget the '()' ?) 21 | if(s.size == 0){ | ~~^~~~ | () main.cpp:48:14: error: invalid use of member function 'std::stack<_Tp, _Sequence>::size_type std::stack<_Tp, _Sequence>::size() const [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; size_type = long unsigned int]' (did you forget the '()' ?) 48 | if(d.size == 0){ | ~~^~~~ | () main.cpp:69:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 69 | for(int i = 1; i <=n; i++) | ^~~ main.cpp:72:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 72 | return 0; | ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?