Problem hackingscores
User kesleryak
Submission Time 2024-06-23 19:28:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hackingscores.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
hackingscores.cpp: In function ‘void solve()’:
hackingscores.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin >> n >> t >> g >> k;
| ^~~
hackingscores.cpp:7:37: error: ‘A’ was not declared in this scope
7 | for(int i = 1; i <= n; i++) cin >> A[i];
| ^
hackingscores.cpp:8:7: error: ‘A’ was not declared in this scope
8 | sort(A+1, A+n);
| ^
hackingscores.cpp:8:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
8 | sort(A+1, A+n);
| ^~~~
| short
hackingscores.cpp:12:11: error: ‘max’ was not declared in this scope
12 | tot += (max(0ll, A[i] - A[n]) + k - 1) / k;
| ^~~
hackingscores.cpp:13:2: error: ‘cout’ was not declared in this scope