Problem minimum
User ZachTAD
Submission Time 2024-02-23 20:54:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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