Problem bestplace
User Mimikyu
Submission Time 2024-02-12 16:18:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bestplace.cpp: In function ‘int32_t main()’:
bestplace.cpp:4:11: error: request for member ‘first’ in ‘arr[i]’, which is of non-class type ‘long long int’
4 | #define f first
| ^~~~~
bestplace.cpp:62:22: note: in expansion of macro ‘f’
62 | if(xx>=sumf(arr[i].f,arr,x)){
| ^
bestplace.cpp:4:11: error: request for member ‘first’ in ‘arr[i]’, which is of non-class type ‘long long int’
4 | #define f first
| ^~~~~
bestplace.cpp:63:19: note: in expansion of macro ‘f’
63 | xx=sumf(arr[i].f,arr,x);
| ^
bestplace.cpp:64:4: error: ‘x1’ was not declared in this scope; did you mean ‘xx’?
64 | x1=arr[i].f;
| ^~
| xx
bestplace.cpp:4:11: error: request for member ‘first’ in ‘arr[i]’, which is of non-class type ‘long long int’
4 | #define f first
| ^~~~~
bestplace.cpp:64:14: note: in expansion of