QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#488306#9156. 百万富翁forest114514Compile Error//C++141.8kb2024-07-23 20:39:532024-07-23 20:39:54

詳細信息

answer.code: In function ‘void solve(int, int)’:
answer.code:27:46: error: ‘class std::vector<int>’ has no member named ‘pb’
   27 |                 rep(i,0,tot-1)rep(j,0,i-1) A.pb(num[i]),B.pb(num[j]);
      |                                              ^~
answer.code:27:59: error: ‘class std::vector<int>’ has no member named ‘pb’
   27 |                 rep(i,0,tot-1)rep(j,0,i-1) A.pb(num[i]),B.pb(num[j]);
      |                                                           ^~
answer.code:30:48: error: ‘class std::vector<int>’ has no member named ‘pb’
   30 |                 rep(i,0,tot-1)rep(j,0,i-1) tmp.pb(res[++top]);
      |                                                ^~
answer.code:31:36: error: ‘class std::vector<int>’ has no member named ‘pb’
   31 |                 rep(i,0,tot-1) chk.pb(num[i]);
      |                                    ^~
answer.code:33:21: error: ‘class std::vector<int>’ has no member named ‘pb’
   33 |                 num.pb(get_max(tot));
      |                     ^~
answer.code:41:51: error: ‘class std::vector<int>’ has no member named ‘pb’
   41 |                         rep(j,l,r) rep(k,l,j-1) A.pb(num[j]),B.pb(num[k]);
      |                                                   ^~
answer.code:41:64: error: ‘class std::vector<int>’ has no member named ‘pb’
   41 |                         rep(j,l,r) rep(k,l,j-1) A.pb(num[j]),B.pb(num[k]);
      |                                                                ^~
answer.code:49:40: error: ‘class std::vector<int>’ has no member named ‘pb’
   49 |                         rep(j,l,r) chk.pb(num[j]);
      |                                        ^~
answer.code:50:53: error: ‘class std::vector<int>’ has no member named ‘pb’
   50 |                         rep(j,l,r) rep(k,l,j-1) tmp.pb(res[++top]);
      |                                                     ^~
answer.code:51:29: error: ‘class std::vector<int>’ has no member named ‘pb’
   51 |                         ans.pb(get_max(r-l+1));
      |                             ^~
answer.code:59:51: error: ‘class std::vector<int>’ has no member named ‘pb’
   59 |                         rep(j,l,r) rep(k,l,j-1) A.pb(num[j]),B.pb(num[k]);
      |                                                   ^~
answer.code:59:64: error: ‘class std::vector<int>’ has no member named ‘pb’
   59 |                         rep(j,l,r) rep(k,l,j-1) A.pb(num[j]),B.pb(num[k]);
      |                                                                ^~
answer.code:67:40: error: ‘class std::vector<int>’ has no member named ‘pb’
   67 |                         rep(j,l,r) chk.pb(num[j]);
      |                                        ^~
answer.code:68:53: error: ‘class std::vector<int>’ has no member named ‘pb’
   68 |                         rep(j,l,r) rep(k,l,j-1) tmp.pb(res[++top]);
      |                                                     ^~
answer.code:69:29: error: ‘class std::vector<int>’ has no member named ‘pb’
   69 |                         ans.pb(get_max(r-l+1));
      |                             ^~
answer.code: In function ‘int richest(int, int, int)’:
answer.code:77:26: error: ‘class std::vector<int>’ has no member named ‘pb’
   77 |         rep(i,0,n-1) num.pb(i);
      |                          ^~