Problem minimum
User BigBackAdrino
Submission Time 2026-06-19 15:55:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp:6:33: error: use of parameter outside function body before ‘]’ token
6 | void findMin (int N, int array[N]){
| ^
minimum.cpp: In function ‘void findMin(...)’:
minimum.cpp:7:12: error: missing template arguments before ‘,’ token
7 | sort(array, array+N);
| ^
minimum.cpp:7:19: error: missing template arguments before ‘+’ token
7 | sort(array, array+N);
| ^
minimum.cpp:7:20: error: ‘N’ was not declared in this scope
7 | sort(array, array+N);
| ^
minimum.cpp:8:45: error: missing template arguments before ‘[’ token
8 | cout<< "The function will return " << array[N-1] << ".";
| ^