Problem | gift |
---|---|
User | ilovepythonandhatecplusplus |
Submission Time | 2024-03-01 15:52:48 |
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:6: error: ‘timings’ was not declared in this scope
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:9: error: ‘timings’ was not declared in this scope
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 ‘}’ at end of input
19 | }
| ^
gift.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^