Problem trapezes
User Kiameimon
Submission Time 2023-12-29 18:17:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trapezes.cpp: In function ‘int main()’:
trapezes.cpp:14:41: error: expected ‘;’ before ‘if’
14 | for(int i = 1; i <= n; i++) cin >> a[i]
| ^
| ;
15 | if(t == 1e9){
| ~~
trapezes.cpp:5:14: error: ‘else’ without a previous ‘if’
5 | #define elif else if
| ^~~~
trapezes.cpp:19:2: note: in expansion of macro ‘elif’
19 | elif(t == 0){
| ^~~~