Problem potatosalad
User Armnotsostrong123456
Submission Time 2025-04-12 09:44:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:10:19: error: expected ‘)’ before ‘;’ token
10 | sort(arr,arr+n;greater<int>()}
| ~ ^
| )
potatosalad.cpp:10:34: error: expected ‘;’ before ‘}’ token
10 | sort(arr,arr+n;greater<int>()}
| ^
| ;
potatosalad.cpp: At global scope:
potatosalad.cpp:13:5: error: expected unqualified-id before ‘for’
13 | for(int i=0;i<d;i++){
| ^~~
potatosalad.cpp:13:17: error: ‘i’ does not name a type
13 | for(int i=0;i<d;i++){
| ^
potatosalad.cpp:13:21: error: ‘i’ does not name a type
13 | for(int i=0;i<d;i++){
| ^
potatosalad.cpp:16:5: error: ‘cout’ does not name a type
16 | cout<<sum;
| ^~~~
potatosalad.cpp:17:1: error: expect