Problem minimum
User StarSparrowFox
Submission Time 2024-03-05 17:16:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int main()’:
minimum.cpp:6:50: error: a function-definition is not allowed here before ‘{’ token
6 | long long findMin(long long N, long long A[]){}
| ^
minimum.cpp:7:14: error: ‘A’ was not declared in this scope
7 | sort(A, A + N);
| ^
minimum.cpp:7:21: error: ‘N’ was not declared in this scope
7 | sort(A, A + N);
| ^
minimum.cpp: At global scope:
minimum.cpp:11:5: error: expected unqualified-id before ‘return’
11 | return 0;
| ^~~~~~
minimum.cpp:12:1: error: expected declaration before ‘}’ token
12 | }
| ^