Problem hackingscores
User kesleryak
Submission Time 2024-06-23 19:29:05
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:8:37: error: ‘A’ was not declared in this scope
8 | for(int i = 1; i <= n; i++) cin >> A[i];
| ^
hackingscores.cpp:9:7: error: ‘A’ was not declared in this scope
9 | sort(A+1, A+n);
| ^
hackingscores.cpp:9:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
9 | sort(A+1, A+n);