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

Compile Error

hackingscores.cpp:2:1: error: ‘include’ does not name a type
2 | include <bits/stdc++.h>
| ^~~~~~~
hackingscores.cpp: In function ‘void solve()’:
hackingscores.cpp:7:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
7 | cin >> n >> t >> g >> k;
| ^~~
| std::cin
In file included from hackingscores.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
hackingscores.cpp:10:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
10 | sort(A+1, A+n);
| ^~~~
| qsort
hackingscores.cpp:14:11: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
14 | tot += (max(0ll, A[i] - A[n]) + k - 1) / k;
| ^~~
| std::max
In file included from /usr/include/c++/9/bits/char_tra