Borderou de evaluare (job #2264104)
Utilizator | Data | 19 octombrie 2018 20:08:59 | |
---|---|---|---|
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:13:12: error: 's' was not declared in this scope
if(s.size()==0||s.top()==a[i])s.push(a[i]);
^
main.cpp:17:18: error: 's' was not declared in this scope
if(a[i]==s.top())c++;
^
main.cpp:19:20: error: 's' was not declared in this scope
if(c>n/2)fout<<s.top()<<' '<<c;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !