Problem | gift |
---|---|
User | ilovepythonandhatecplusplus |
Submission Time | 2024-03-01 15:53:10 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gift.cpp: In function ‘int main()’:
gift.cpp:7:7: error: expected ‘;’ before ‘long’
7 | gyat=0
| ^
| ;
8 | long long timings[n];
| ~~~~
gift.cpp:10:15: error: invalid types ‘long long int[int]’ for array subscript
10 | cin>>timings[i]>>"\n";
| ^
gift.cpp:12:18: error: ‘i’ was not declared in this scope
12 | for (int f=0;f<n;i++){
| ^
gift.cpp:13:18: error: invalid types ‘long long int[int]’ for array subscript
13 | minuses=timings[f]-timings[f+1]
| ^
gift.cpp:13:31: error: invalid types ‘long long int[int]’ for array subscript
13 | minuses=timings[f]-timings[f+1]
| ^
gift.cpp:18:11: error: expected ‘;’ before ‘}’ token
18 | cout<<gyat
| ^
| ;
19 | }
| ~
gift.cpp:19:1: error: expected ‘}