Problem lis
User wrizz69
Submission Time 2023-08-18 11:20:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis.cpp: In function ‘int32_t main()’:
lis.cpp:8:9: error: redeclaration of ‘long long int sum’
8 | int sum=0;
| ^~~
lis.cpp:7:9: note: ‘long long int sum’ previously declared here
7 | int sum=0;
| ^~~
lis.cpp:11:14: error: ‘arr’ was not declared in this scope
11 | cin>>arr[i];
| ^~~
lis.cpp:15:14: error: ‘arr’ was not declared in this scope
15 | if(arr[j]<arr[i]){
| ^~~