Problem | lineup2 |
---|---|
User | ICantRemember |
Submission Time | 2023-11-08 14:52:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lineup2.cpp: In function ‘int32_t main()’:
lineup2.cpp:23:18: error: no match for ‘operator[]’ (operand types are ‘std::stack<long long int>’ and ‘long long int’)
23 | a[j]+= 1;
| ^
lineup2.cpp:27:18: error: no match for ‘operator[]’ (operand types are ‘std::stack<long long int>’ and ‘long long int’)
27 | a[j]-= 1;
| ^
lineup2.cpp:32:13: error: no match for ‘operator[]’ (operand types are ‘std::stack<long long int>’ and ‘long long int’)
32 | if(a[i] != 0){
| ^