Problem nicenumber
User chenweilian
Submission Time 2023-01-08 18:38:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nicenumber.cpp: In function ‘int main()’:
nicenumber.cpp:6:2: error: ‘ll’ was not declared in this scope
6 | ll t, n, ans, cur = LONG_MAX;
| ^~
nicenumber.cpp:7:7: error: ‘t’ was not declared in this scope; did you mean ‘tm’?
7 | cin>>t;
| ^
| tm
nicenumber.cpp:9:8: error: ‘n’ was not declared in this scope
9 | cin>>n;
| ^
nicenumber.cpp:10:6: error: ‘cur’ was not declared in this scope
10 | if(cur > abs(n-420) || cur > abs(n-69)) {
| ^~~
nicenumber.cpp:12:4: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
12 | ans = n;
| ^~~
| abs
nicenumber.cpp:15:8: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
15 | cout<<ans;
| ^~~
| abs