Problem | potatosalad |
---|---|
User | Armnotsostrong123456 |
Submission Time | 2025-04-12 09:40:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin>>n>>d;
| ^~~
potatosalad.cpp:8:19: error: expected ‘)’ before ‘;’ token
8 | sort(arr,arr+n;greater<int>()}
| ~ ^
| )
potatosalad.cpp:8:20: error: ‘greater’ was not declared in this scope
8 | sort(arr,arr+n;greater<int>()}
| ^~~~~~~
potatosalad.cpp:8:28: error: expected primary-expression before ‘int’
8 | sort(arr,arr+n;greater<int>()}
| ^~~
potatosalad.cpp: At global scope:
potatosalad.cpp:11:5: error: expected unqualified-id before ‘for’
11 | for(int i=0;i<d;i++){
| ^~~
potatosalad.cpp:11:17: error: ‘i’ does not name a type
11 | for(int i=0;i<d;i++){
| ^
potatosalad.cpp:11:21: error: ‘