| Problem | minimum |
|---|---|
| User | Jiajing |
| Submission Time | 2026-07-16 18:08:23 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:6:10: error: found ‘:’ in nested-name-specifier, expected ‘::’
6 | for(i:A){
| ^
| ::
minimum.cpp:6:9: error: ‘i’ has not been declared
6 | for(i:A){
| ^
minimum.cpp:11:5: error: ‘cout’ was not declared in this scope
11 | cout << ans;
| ^~~~
minimum.cpp:2:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include "minimum.h"
+++ |+#include <iostream>
2 | using namespace std;
minimum.cpp:12:5: error: expected primary-expression before ‘return’
12 | return 0;
| ^~~~~~
minimum.cpp:11:17: error: expected ‘)’ before ‘return’
11 | cout << ans;
| ^
| )
12 | return 0;
| ~~~~~~
minimum.cpp:6:8: note: to mat