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

Compile Error

minimum.cpp: In function ‘void findMin(int, int)’:
minimum.cpp:6:17: error: invalid types ‘int[int]’ for array subscript
6 | int minimum=A[0];
| ^
minimum.cpp:8:12: error: invalid types ‘int[int]’ for array subscript
8 | if (A[i] < minimum){
| ^
minimum.cpp:9:17: error: invalid types ‘int[int]’ for array subscript
9 | minimum = A[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::ostream’ {ak