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

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:16:19: error: array must be initialized with a brace-enclosed initializer
16 | int length[i] = 1
| ^
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(){
| ^