Borderou de evaluare (job #2264106)
Utilizator | Data | 19 octombrie 2018 20:11:26 | |
---|---|---|---|
Problema | Elementul majoritar | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:15:37: error: invalid use of non-static member function 'void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]'
else if(s.top()!=a[i])s.pop;
~~^~~
In file included from /usr/include/c++/6/stack:61:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:89,
from main.cpp:1:
/usr/include/c++/6/bits/stl_stack.h:244:7: note: declared here
pop()
^~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !