Problem | minimum |
---|---|
User | Schoolpurposes |
Submission Time | 2025-01-08 21:27:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘void findMin(int, int*)’:
minimum.cpp:4:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
4 | sort(A, A + N);
| ^~~~
| short
minimum.cpp:5:5: error: ‘cout’ was not declared in this scope
5 | cout << "The function will return " << A[0];
| ^~~~
minimum.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;