Problem minimum
User suzienguyen
Submission Time 2026-04-21 20:27:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:4:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
4 | sort(A,A+N);
| ^~~~
| short
minimum.cpp:5:2: error: ‘cout’ was not declared in this scope
5 | cout << A[0] << endl;
| ^~~~
minimum.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
minimum.cpp:5:18: error: ‘endl’ was not declared in this scope
5 | cout << A[0] << endl;
| ^~~~
minimum.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
+++ |+#include <ostream>
1 | using namespace std;