Problem bracketex
User XY3491
Submission Time 2026-04-18 10:10:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:16:12: error: no match for ‘operator[]’ (operand types are ‘std::stack<int>’ and ‘int’)
16 | a.push(a[i]);
| ^
bracketex.cpp:20:8: error: no match for ‘operator[]’ (operand types are ‘std::stack<int>’ and ‘int’)
20 | if(a[i]==a.top())
| ^