Problem noodlestore
User YSH2020
Submission Time 2025-10-02 14:37:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

noodlestore.cpp: In function ‘int main()’:
noodlestore.cpp:29:25: error: request for member ‘first’ in ‘idx.std::map<int, std::pair<int, int> >::operator[](tmp).std::pair<int, int>::second’, which is of non-class type ‘int’
29 | if (idx[tmp].second.first < ct || runout.find(idx[tmp].second.second)!=runout.end()) ;
| ^~~~~
noodlestore.cpp:29:67: error: request for member ‘second’ in ‘idx.std::map<int, std::pair<int, int> >::operator[](tmp).std::pair<int, int>::second’, which is of non-class type ‘int’
29 | if (idx[tmp].second.first < ct || runout.find(idx[tmp].second.second)!=runout.end()) ;
| ^~~~~~
noodlestore.cpp:30:17: error: ‘class std::queue<int>’ has no member named ‘first’
30 | else ans=qu.first;
| ^~~~~