Problem | minimum |
---|---|
User | meal |
Submission Time | 2024-12-11 17:38:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:5:13: error: ‘arr’ was not declared in this scope
5 | int m; m = arr[0];
| ^~~
minimum.cpp:6:22: error: ‘n’ was not declared in this scope
6 | for (int i = 0; i < n; i++)
| ^
minimum.cpp:8:7: error: ‘min’ was not declared in this scope
8 | m = min(arr[i], m);
| ^~~
minimum.cpp: In function ‘int main()’:
minimum.cpp:16:5: error: ‘cin’ was not declared in this scope
16 | cin >> n;
| ^~~
minimum.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include "minimum.h"
+++ |+#include <iostream>
2 | using namespace std;
minimum.cpp:18:5: error: ‘cout’ was not declared in this scope
18 | cout << findMin(n, A) << endl;
| ^~~~
minimum.cpp:18:5: note: ‘std::cout’ is