Problem minimum
User Khai
Submission Time 2024-10-07 08:11:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int main()’:
minimum.cpp:8:2: error: expected primary-expression before ‘long’
8 | long long a = 0;
| ^~~~
minimum.cpp:11:18: error: expected ‘;’ before ‘<’ token
11 | for(int i = 0, i < n; i++){
| ^~
| ;
minimum.cpp:11:19: error: expected primary-expression before ‘<’ token
11 | for(int i = 0, i < n; i++){
| ^
minimum.cpp:16:17: error: expected ‘;’ before ‘<’ token
16 | for(int i =0, i < n; i++){
| ^~
| ;
minimum.cpp:16:18: error: expected primary-expression before ‘<’ token
16 | for(int i =0, i < n; i++){
| ^
minimum.cpp:17:2: error: ‘a’ was not declared in this scope
17 | a = min(arr[i], arr[i+1]);
| ^
minimum.cpp:21:41: error: ‘a’ was not declared in this scope
21 | cout << "The functi