Problem noodlestore
User haydendoo
Submission Time 2023-05-27 15:31:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

noodlestore.cpp: In function ‘void solve()’:
noodlestore.cpp:233:12: error: conflicting declaration ‘std::queue<std::pair<long long int, long long int> > q’
233 | queue<pi> q;
| ^
noodlestore.cpp:232:6: note: previous declaration as ‘long long int q’
232 | int q;
| ^
noodlestore.cpp:240:6: error: request for member ‘push’ in ‘q’, which is of non-class type ‘long long int’
240 | q.push({c,t}); nudes[c] = f;
| ^~~~
noodlestore.cpp:249:13: error: request for member ‘empty’ in ‘q’, which is of non-class type ‘long long int’
249 | while(!q.empty() && (q.front().second>I || fucked.find(nudes[q.front().first])!=fucked.end())) q.pop();
| ^~~~~
noodlestore.cpp:249:27: error: request for member ‘front’ in ‘q’, which is of non-class type ‘long long int’
249 | while(!q.empty() && (q.front().second>I || fucked.find(nudes[q.front().first])!=fucked.end())) q.