Problem minimum
User 583116UB
Submission Time 2024-04-27 11:43:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp:13:5: error: expected initializer before ‘int’
13 | int N = 5;
| ^~~
minimum.cpp:16:26: error: ‘N’ was not declared in this scope
16 | int minVal = findMin(N, A);
| ^
minimum.cpp:18:10: error: ‘cout’ in namespace ‘std’ does not name a type
18 | std::cout << "The minimum value in the array is: " << minVal << std::endl;
| ^~~~
In file included from minimum.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
minimum.cpp:20:5: error: expected unqualified-id before ‘return’
20 | return 0;
| ^~~~~~
minimum.cpp:21:1: error: expected declaration before ‘}’ token
21 | }
| ^