Problem | minimum |
---|---|
User | NoynYT |
Submission Time | 2023-06-22 18:38:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:5:2: error: expected ‘,’ or ‘;’ before ‘for’
5 | for (int i; i<n; i++){
| ^~~
minimum.cpp:5:14: error: ‘i’ was not declared in this scope
5 | for (int i; i<n; i++){
| ^
minimum.cpp:5:16: error: ‘n’ was not declared in this scope
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)
| ^~~~