Problem hackingscores
User om2024
Submission Time 2024-07-04 17:00:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hackingscores.cpp: In function ‘void solve()’:
hackingscores.cpp:5:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | cin >> n >> t >> g >> k;
| ^
| yn
hackingscores.cpp:5:14: error: ‘t’ was not declared in this scope; did you mean ‘tm’?
5 | cin >> n >> t >> g >> k;
| ^
| tm
hackingscores.cpp:5:19: error: ‘g’ was not declared in this scope
5 | cin >> n >> t >> g >> k;
| ^
hackingscores.cpp:5:24: error: ‘k’ was not declared in this scope
5 | cin >> n >> t >> g >> k;
| ^
hackingscores.cpp:7:10: error: ‘A’ was not declared in this scope
7 | cin >> A[i];
| ^
hackingscores.cpp:9:7: error: ‘A’ was not declared in this scope
9 | sort(A + 1, A + n);