Problem hackingscores
User kesleryak
Submission Time 2024-06-23 19:30:15
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:9:2: error: expected initializer before ‘for’
9 | for(int i = 1; i <= n; i++) cin >> A[i];
| ^~~
hackingscores.cpp:9:17: error: ‘i’ was not declared in this scope
9 | for(int i = 1; i <= n; i++) cin >> A[i];
| ^
hackingscores.cpp:10:7: error: ‘A’ was not declared in this scope
10 | sort(A+1, A+n);
| ^
h