Problem rmaxq
User YSH2020
Submission Time 2023-06-07 15:26:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rmaxq.cpp: In function ‘int main()’:
rmaxq.cpp:6:13: error: expected ‘;’ before ‘int’
6 | cout.tie(0)
| ^
| ;
7 | int num; cin >> num;
| ~~~
rmaxq.cpp:7:21: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
7 | int num; cin >> num;
| ^~~
| enum
rmaxq.cpp:9:46: error: missing template arguments before ‘[’ token
9 | for (int i = 0; i < num; i++) cin >> list[i];
| ^
rmaxq.cpp:17:36: error: missing template arguments before ‘[’ token
17 | big = max(big, list[j]);
| ^
rmaxq.cpp:23:49: error: redeclaration of ‘auto j’
23 | for (int j = b; j < c+1; j++) list[j] = list[j]+d;
| ^
rmaxq.cpp