Problem | minimum |
---|---|
User | blob |
Submission Time | 2024-04-11 00:47:10 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int main()’:
minimum.cpp:5:13: error: array must be initialized with a brace-enclosed initializer
5 | int a[n] = 0;
| ^
minimum.cpp:6:8: error: overloaded function with no contextual type information
6 | min = 9999999999999999999;
| ^~~~~~~~~~~~~~~~~~~
minimum.cpp:9:12: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator>’
9 | if (a[i] > min){
| ~~~~~^~~~~
minimum.cpp:10:11: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘int’
10 | a[i] = min;
| ^~~
minimum.cpp:13:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
13 | cout << min;
| ~~~~~^~~~~~
In file included from /usr/include/c++/9/istream:39,