Problem minimum
User ruu202
Submission Time 2026-02-19 17:34:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:2:12: error: request for member ‘begin’ in ‘A’, which is of non-class type ‘int*’
2 | sort(A.begin(), A.end());
| ^~~~~
minimum.cpp:2:23: error: request for member ‘end’ in ‘A’, which is of non-class type ‘int*’
2 | sort(A.begin(), A.end());
| ^~~
minimum.cpp:2:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
2 | sort(A.begin(), A.end());
| ^~~~
| short
minimum.cpp:3:16: error: expected ‘;’ before ‘return’
3 | return A[0]
| ^
| ;
......
10 | return minValue;
| ~~~~~~
minimum.cpp:10:12: error: ‘minValue’ was not declared in this scope
10 | return minValue;
| ^~~~~~~~