Problem potatosalad
User Greninja
Submission Time 2024-02-22 22:31:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:8:11: error: ‘K’ was not declared in this scope
8 | cin>>N>>K;
| ^
potatosalad.cpp:11:12: error: ‘trees’ was not declared in this scope
11 | cin >> trees[i];
| ^~~~~
potatosalad.cpp:13:9: error: ‘trees’ was not declared in this scope
13 | sort (trees, trees + N, greater<int>());
| ^~~~~