QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#597454#9417. Palindromic Polygonucup-team5045#Compile Error//C++142.9kb2024-09-28 17:51:312024-09-28 17:51:31

詳細信息

answer.code: In function ‘void solve()’:
answer.code:58:12: error: missing template arguments before ‘f’
   58 |     vector f(n * 2 + 1, vector<int> (n * 2 + 1));
      |            ^
answer.code:59:12: error: missing template arguments before ‘ok’
   59 |     vector ok(n * 2 + 2, vector<int> (n * 2 + 2));
      |            ^~
answer.code:61:9: error: ‘ok’ was not declared in this scope
   61 |         ok[i][i] = 1;
      |         ^~
answer.code:67:13: error: ‘f’ was not declared in this scope
   67 |             f[i][j] = max(f[i + 1][j], f[i][j - 1]);
      |             ^
answer.code:69:20: error: missing template arguments before ‘mp’
   69 |             vector mp(502);
      |                    ^~
answer.code:71:21: error: ‘ok’ was not declared in this scope; did you mean ‘k’?
   71 |                  if(ok[i][j])
      |                     ^~
      |                     k
answer.code:72:17: error: ‘mp’ was not declared in this scope; did you mean ‘p’?
   72 |                 mp[li[k]] = k;
      |                 ^~
      |                 p
answer.code:77:38: error: ‘mp’ was not declared in this scope; did you mean ‘tmp’?
   77 |                     int ll = k, rr = mp[li[k]];
      |                                      ^~
      |                                      tmp
answer.code:78:25: error: ‘ok’ was not declared in this scope; did you mean ‘k’?
   78 |                     if(!ok[ll][rr])continue;
      |                         ^~
      |                         k
answer.code:85:38: error: ‘ok’ was not declared in this scope; did you mean ‘k’?
   85 |                     if(tmp > f[i][j])ok[i][j] = true;
      |                                      ^~
      |                                      k
answer.code:96:24: error: ‘f’ was not declared in this scope
   96 |         res = max(res, f[i][i + n - 1]);
      |                        ^