Problem minimum
User VNHbest
Submission Time 2024-01-22 17:42:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘void findMin(long long int, long long int*)’:
minimum.cpp:3:8: error: ‘sort’ is not a member of ‘std’
3 | std::sort(arr, arr + n);
| ^~~~
minimum.cpp:5:8: error: ‘cout’ is not a member of ‘std’
5 | std::cout << min;
| ^~~~
minimum.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 |
minimum.cpp:6:10: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
6 | return 0;
| ^