Problem minimum
User briyanii
Submission Time 2023-08-23 17:24:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp:5:29: error: ‘A’ was not declared in this scope
5 | void findMin(int N, int arr[A]) {
| ^
minimum.cpp: In function ‘void findMin(...)’:
minimum.cpp:6:14: error: ‘arr’ was not declared in this scope
6 | int minimum=arr[0];
| ^~~
minimum.cpp:7:20: error: ‘N’ was not declared in this scope
7 | for (int i=0; i < N; i++){
| ^
minimum.cpp:12:7: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
12 | cout >> minimum;
| ~~~~ ^~ ~~~~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
minimum.cpp:12:7: note: candidate: ‘operator>>(int, int)’ <built-in>
12 | cout >> minimum;
| ~~~~~^~~~~~~~~~
minimum.cpp:12:7: note: no known conversion for argument 1 from ‘std::ostrea