Problem lis
User justin271828
Submission Time 2024-12-12 12:07:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis.cpp: In function ‘int main()’:
lis.cpp:38:17: error: conflicting declaration ‘std::pair<int, int> arr [N]’
38 | pair<int, int> arr[N];
| ^~~
lis.cpp:37:6: note: previous declaration as ‘int arr [N]’
37 | int arr[N];
| ^~~
lis.cpp:41:3: error: ‘temp’ was not declared in this scope
41 | temp[i].first = arr[i];
| ^~~~
lis.cpp:43:7: error: ‘temp’ was not declared in this scope
43 | sort(temp, temp+N);
| ^~~~