Problem platonic2
User shashi93
Submission Time 2025-07-30 15:43:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic2.cpp: In function ‘int main()’:
platonic2.cpp:10:2: error: expected initializer before ‘for’
10 | for (int i = 0; i < n; i++){
| ^~~
platonic2.cpp:10:18: error: ‘i’ was not declared in this scope
10 | for (int i = 0; i < n; i++){
| ^
platonic2.cpp:13:7: error: ‘arr’ was not declared in this scope
13 | sort(arr, arr + n);
| ^~~
platonic2.cpp:14:14: error: ‘k’ was not declared in this scope
14 | cout << arr[k-1];
| ^