Problem lineup2
User sussygoose
Submission Time 2025-11-09 13:01:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lineup2.cpp: In function ‘int main()’:
lineup2.cpp:21:36: error: expected primary-expression before ‘)’ token
21 | for (int i = 0; i < stk.size(); i+) {
| ^
lineup2.cpp:22:17: error: no match for ‘operator[]’ (operand types are ‘std::stack<long long int>’ and ‘long long int’)
22 | m = max(m, stk[i]);
| ^
lineup2.cpp:24:11: error: expected ‘}’ at end of input
24 | cout << m;
| ^
lineup2.cpp:5:15: note: to match this ‘{’
5 | signed main() {
| ^