Problem minimum
User auser24241
Submission Time 2026-08-06 16:31:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp:1:20: error: ‘array’ has not been declared
1 | int findMin(int n, array<int, 10000000> arr){
| ^~~~~
minimum.cpp:1:25: error: expected ‘,’ or ‘...’ before ‘<’ token
1 | int findMin(int n, array<int, 10000000> arr){
| ^
minimum.cpp: In function ‘int findMin(int, int)’:
minimum.cpp:2:10: error: ‘arr’ was not declared in this scope
2 | sort(arr.begin(), arr.end());
| ^~~
minimum.cpp:2:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
2 | sort(arr.begin(), arr.end());
| ^~~~
| short
minimum.cpp:3:5: error: ‘cout’ was not declared in this scope
3 | cout << arr[0];
| ^~~~