Problem | minimum |
---|---|
User | blob |
Submission Time | 2024-04-11 00:46:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int main()’:
minimum.cpp:5:2: error: ‘a’ was not declared in this scope
5 | a[n] = 0;
| ^
minimum.cpp:6:8: error: overloaded function with no contextual type information
6 | min = 9999999999999999999;
| ^~~~~~~~~~~~~~~~~~~
minimum.cpp:7:7: error: ‘i’ was not declared in this scope
7 | for (i = 0; i < n; i++){
| ^
minimum.cpp:9:6: error: expected ‘(’ before ‘a’
9 | if 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,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,<