Problem numbergame
User neoaix
Submission Time 2026-06-25 16:27:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

numbergame.cpp: In function ‘int main()’:
numbergame.cpp:7:12: error: request for member ‘begin’ in ‘c’, which is of non-class type ‘long long int’
7 | sort(c.begin(), c.end());
| ^~~~~
numbergame.cpp:7:23: error: request for member ‘end’ in ‘c’, which is of non-class type ‘long long int’
7 | sort(c.begin(), c.end());
| ^~~
numbergame.cpp:9:23: error: ‘n’ was not declared in this scope
9 | for (int i = 0; i<n; i++){
| ^
numbergame.cpp:15:39: error: invalid types ‘long long int[long long int]’ for array subscript
15 | if (abs(ans-x)>abs(a[i]*b[j]+c[mid]-x)){
| ^
numbergame.cpp:15:44: error: invalid types ‘long long int[long long int]’ for array subscript
15 | if (abs(ans-x)>abs(a[i]*b[j]+c[mid]-x)){
| ^
num