Problem minimum
User Maggie
Submission Time 2023-11-09 09:17:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
minimum.cpp:4:1: note: in expansion of macro ‘int’
4 | int A (2 000 500 000);
| ^~~
minimum.cpp:4:7: error: expected constructor, destructor, or type conversion before ‘(’ token
4 | int A (2 000 500 000);
| ^
minimum.cpp: In function ‘int32_t main()’:
minimum.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
minimum.cpp:7:2: note: in expansion of macro ‘int’
7 | int findMin(int N, int A[]){
| ^~~
minimum.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long;
| ^~~~
minimum.cpp:7:14: note: in expansion of macro ‘int’
7 | int findMin(int N, int A[]){
| ^~~
minimum.cpp:7:18: error: ‘N’ was not d