QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#605478#9250. Max GCDucup-team5045Compile Error//C++142.1kb2024-10-02 17:26:092024-10-02 17:26:11

详细

answer.code: In function ‘void get(int, int)’:
answer.code:41:35: error: ‘class std::queue<int>’ has no member named ‘pop_back’
   41 |     while(qt[j].back()==now)qt[j].pop_back();
      |                                   ^~~~~~~~
answer.code: In function ‘int main()’:
answer.code:54:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   54 |     scanf("%d%d",&n,&q);
      |     ~~~~~^~~~~~~~~~~~~~
answer.code:56:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   56 |     scanf("%d",&ai[i]);
      |     ~~~~~^~~~~~~~~~~~~
answer.code:59:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   59 |         scanf("%d%d",&a,&b);
      |         ~~~~~^~~~~~~~~~~~~~