Problem minimum
User NoynYT
Submission Time 2023-06-22 18:38:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:5:16: error: ‘n’ was not declared in this scope
5 | for (int i; i<n; i++;){
| ^
minimum.cpp:5:22: error: expected ‘)’ before ‘;’ token
5 | for (int i; i<n; i++;){
| ~ ^
| )
minimum.cpp:5:23: error: expected primary-expression before ‘)’ token
5 | for (int i; i<n; i++;){
| ^
minimum.cpp:10:20: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
10 | std::cout << x << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/9/iostream:39,
from minimum.cpp:1:
/usr/include/c++/9/ostream:599:5: note: ‘std::endl’ declared here
599 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~