Problem | pilot |
---|---|
User | shaokai348 |
Submission Time | 2025-03-16 22:04:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pilot.cpp: In function ‘int main()’:
pilot.cpp:38:5: error: ‘i’ was not declared in this scope
38 | i=4
| ^
pilot.cpp:40:11: error: expected unqualified-id before ‘=’ token
40 | stack = top -> []
| ^
pilot.cpp:42:11: error: assignment of function ‘std::ios_base& std::right(std::ios_base&)’
42 | right = {3, 1, 1, 2, 1}
| ~~~~~~^~~~~~~~~~~~~~~~~
pilot.cpp:51:22: error: assignment of read-only location ‘*(std::right + ((sizetype)i))’
51 | right[i] = n - i;
| ~~~~~~~~~^~~~~~~
pilot.cpp:53:22: error: assignment of read-only location ‘*(std::right + ((sizetype)i))’
53 | right[i] = st.top() - i;
| ~~~~~~~~~^~~~~~~~~~~~~~
pilot.cpp:63:32: error: invalid operands of types ‘ll’ {aka ‘long long int’} and ‘std::ios_base&(std::ios_base&)’ to binary ‘operator*’
63 | ll contr = (ll)left[i] * right[i];
|