0_0_22053153_235.cpp: In function 'int spfa(int)': 0_0_22053153_235.cpp:24:7: error: 'class std::queue<int>' has no member named 'top' x=q.top();q.pop(); ^