QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#774610#9431. The Quest for El Doradoucup-team4741Compile Error//C++234.5kb2024-11-23 13:32:532024-11-23 13:32:54

详细

answer.code: In instantiation of ‘SparseTable<T>::SparseTable(const std::vector<_Tp>&) [with T = long long int]’:
answer.code:66:41:   required from here
answer.code:21:53: error: ‘sz’ was not declared in this scope
   21 |                 for (int pw = 1, k = 1; pw * 2 <= sz(V); pw *= 2, ++k) {
      |                                                   ~~^~~
answer.code:22:44: error: ‘sz’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation
   22 |                         jmp.emplace_back(sz(V) - pw * 2 + 1);
      |                                          ~~^~~
answer.code:21:53: note: ‘sz’ declared here, later in the translation unit
   21 |                 for (int pw = 1, k = 1; pw * 2 <= sz(V); pw *= 2, ++k) {
      |                                                   ~~^~~
answer.code:23:35: error: ‘sz’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation
   23 |                         rep(j,0,sz(jmp[k]))
      |                                   ^
answer.code:9:40: note: in definition of macro ‘rep’
    9 | #define rep(i,a,b) for(int i = a; i < (b); i++)
      |                                        ^
answer.code:21:53: note: ‘sz’ declared here, later in the translation unit
   21 |                 for (int pw = 1, k = 1; pw * 2 <= sz(V); pw *= 2, ++k) {
      |                                                   ~~^~~