Problem minimum
User shaokai348
Submission Time 2025-03-24 10:28:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp:3:13: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
3 | int findmin(n, A[]){
| ^
| yn
minimum.cpp:3:16: error: ‘A’ was not declared in this scope
3 | int findmin(n, A[]){
| ^
minimum.cpp:3:18: error: expected primary-expression before ‘]’ token
3 | int findmin(n, A[]){
| ^
minimum.cpp:3:19: error: expression list treated as compound expression in initializer [-fpermissive]
3 | int findmin(n, A[]){
| ^
minimum.cpp: In function ‘int main()’:
minimum.cpp:20:2: error: ‘minimum’ was not declared in this scope
20 | minimum = findmin(n, A[]);
| ^~~~~~~
minimum.cpp:20:25: error: expected primary-expression before ‘]’ token
20 | minimum = findmin(n, A[]);
| ^
minimum.cpp:20:26: error: ‘findmin’ cannot be used as a function
20 | minimum = f