Problem | minimum |
---|---|
User | popperoni |
Submission Time | 2023-11-20 23:43:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp:5:27: error: use of parameter outside function body before ‘]’ token
5 | int findMin(int a, int b[a]) {
| ^
minimum.cpp: In function ‘int findMin(...)’:
minimum.cpp:6:13: error: ‘b’ was not declared in this scope
6 | int c = b[0]
| ^
minimum.cpp:7:21: error: ‘i’ was not declared in this scope
7 | for (int i = 1; i < a; i++) {
| ^
minimum.cpp:7:25: error: ‘a’ was not declared in this scope
7 | for (int i = 1; i < a; i++) {
| ^
minimum.cpp:12:5: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
12 | cout << c;
| ^~~~
| std::cout
In file included from minimum.cpp:2:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~