Problem lis_easy
User SilverClaw
Submission Time 2023-02-10 09:02:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:16:16: error: expected ‘;’ before ‘for’
16 | length[i] = 1
| ^
| ;
17 | for(int k=0;k<i;k++){
| ~~~
lis_easy.cpp:17:15: error: ‘k’ was not declared in this scope
17 | for(int k=0;k<i;k++){
| ^
lis_easy.cpp:25:39: error: expected ‘}’ at end of input
25 | cout << *max_element(length,length+n);
| ^
lis_easy.cpp:9:11: note: to match this ‘{’
9 | int main(){
| ^