Problem | flamethrower |
---|---|
User | votesac |
Submission Time | 2024-02-23 12:43:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:3:13: error: expected initializer before ‘long’
3 | #define int long long
| ^~~~
flamethrower.cpp:10:5: note: in expansion of macro ‘int’
10 | int arr[n-k+1];
| ^~~
flamethrower.cpp:12:16: error: ‘a’ was not declared in this scope
12 | cin >> a[i];
| ^
flamethrower.cpp:15:9: error: ‘arr’ was not declared in this scope
15 | arr[i] = a[i] + a[i + 1]+ a[i +2];
| ^~~
flamethrower.cpp:15:18: error: ‘a’ was not declared in this scope
15 | arr[i] = a[i] + a[i + 1]+ a[i +2];
| ^
flamethrower.cpp:17:10: error: ‘arr’ was not declared in this scope
17 | sort(arr,arr+n-k+1,greater<int>());
| ^~~