Problem lonelybeavers
User gghx
Submission Time 2024-11-25 23:29:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lonelybeavers.cpp: In function ‘int main()’:
lonelybeavers.cpp:10:5: error: expected initializer before ‘for’
10 | for(int i=0;i<n;i++) cin>>arr[i];
| ^~~
lonelybeavers.cpp:10:17: error: ‘i’ was not declared in this scope
10 | for(int i=0;i<n;i++) cin>>arr[i];
| ^
lonelybeavers.cpp:11:10: error: ‘arr’ was not declared in this scope
11 | sort(arr,arr+n);
| ^~~