Problem arrayfind
User nguyendinhanh1508
Submission Time 2024-01-12 17:46:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int32_t main()’:
arrayfind.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
arrayfind.cpp:5:3: note: in expansion of macro ‘int’
5 | int L;
| ^~~
arrayfind.cpp:5:7: error: ‘L’ was not declared in this scope
5 | int L;
| ^
arrayfind.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
arrayfind.cpp:7:3: note: in expansion of macro ‘int’
7 | int a[L];
| ^~~
arrayfind.cpp:7:7: error: ‘a’ was not declared in this scope
7 | int a[L];
| ^
arrayfind.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
arrayfind.cpp:8:3: note: in expansion of macro ‘int’
8 | int Q;
| ^~~
arrayfind.c