Problem catlunch
User anna15
Submission Time 2024-06-29 11:20:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin >> N >> K;
| ^~~
catlunch.cpp:4:5: error: ‘vector’ was not declared in this scope
4 | vector<int> fishes(N);
| ^~~~~~
catlunch.cpp:4:12: error: expected primary-expression before ‘int’
4 | vector<int> fishes(N);
| ^~~
catlunch.cpp:6:16: error: ‘fishes’ was not declared in this scope
6 | cin >> fishes[i];
| ^~~~~~
catlunch.cpp:8:10: error: ‘fishes’ was not declared in this scope
8 | sort(fishes.rbegin(), fishes.rend());
| ^~~~~~
catlunch.cpp:8:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
8 | sort(fishes.rbegin(), fishes.rend());
| ^~~~
| short
catlunch.cpp:17:5: error: ‘cout’ was not declared in this scope
17 | c