Problem field
User PrunJuice
Submission Time 2025-03-21 18:22:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

field.cpp: In function ‘int main()’:
field.cpp:38:25: error: conflicting declaration ‘std::queue<std::pair<long long int, long long int> > q’
38 | queue<pair<ll, ll>> q;
| ^
field.cpp:13:14: note: previous declaration as ‘ll q’
13 | ll n, t, q;
| ^
field.cpp:40:7: error: request for member ‘push’ in ‘q’, which is of non-class type ‘ll’ {aka ‘long long int’}
40 | q.push({401, 401}); // Start BFS from the origin
| ^~~~
field.cpp:45:15: error: request for member ‘empty’ in ‘q’, which is of non-class type ‘ll’ {aka ‘long long int’}
45 | while (!q.empty()) {
| ^~~~~
field.cpp:46:15: error: request for member ‘front’ in ‘q’, which is of non-class type ‘ll’ {aka ‘long long int’}
46 | x = q.front().first;
| ^~~~~
field.cpp:47:15: error: request for member ‘front’ in ‘q’, which is of n