Problem minimum
User DuckyKayden
Submission Time 2026-01-01 13:11:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp:4:23: error: ISO C++ forbids declaration of ‘findMin’ with no type [-fpermissive]
4 | findMin(int n, int a[]) {
| ^
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:6:2: error: expected ‘,’ or ‘;’ before ‘for’
6 | for(int i = 0; i < n; i++) {
| ^~~
minimum.cpp:6:17: error: ‘i’ was not declared in this scope
6 | for(int i = 0; i < n; i++) {
| ^
minimum.cpp: In function ‘int main()’:
minimum.cpp:12:10: error: too few arguments to function ‘int findMin(int, int*)’
12 | findMin();
| ^
minimum.cpp:4:1: note: declared here
4 | findMin(int n, int a[]) {
| ^~~~~~~