Borderou de evaluare (job #2725370)
Utilizator | Data | 18 martie 2021 20:53:46 | |
---|---|---|---|
Problema | Paranteze | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:1: error: 'stack' does not name a type
stack<char> paranteze;
^~~~~
main.cpp: In function 'int main()':
main.cpp:25:35: error: 'strlen' was not declared in this scope
for (int i = 0; i < strlen(sir); i++)
^
main.cpp:29:13: error: 'paranteze' was not declared in this scope
paranteze.push(sir[i]);
^~~~~~~~~
main.cpp:33:19: error: 'paranteze' was not declared in this scope
if ( !paranteze.empty() && (paranteze.top() == '(' && sir[i] ==')' || paranteze.top() == '[' && sir[i] ==']') || paranteze.top() == '{' && sir[i] =='}')
^~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !