Problem minimum
User PyAce
Submission Time 2026-01-12 15:44:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:9:4: error: ‘smallest’ was not declared in this scope
9 | smallest = temp;
| ^~~~~~~~
minimum.cpp:11:15: error: ‘smallest’ was not declared in this scope
11 | if (temp < smallest){
| ^~~~~~~~
minimum.cpp:16:41: error: ‘smallest’ was not declared in this scope
16 | cout << "The function will return " << smallest << ".";
| ^~~~~~~~