QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#646972#7686. The Phantom Menaceucup-team4543Compile Error//C++233.1kb2024-10-17 10:40:272024-10-17 10:40:28

詳細信息

answer.code: In member function ‘void HASH::init(std::string&)’:
answer.code:12:9: error: ‘h1’ was not declared in this scope; did you mean ‘y1’?
   12 |         h1.resize(m+1);
      |         ^~
      |         y1
answer.code:13:9: error: ‘h2’ was not declared in this scope; did you mean ‘p2’?
   13 |         h2.resize(m+1);
      |         ^~
      |         p2
answer.code: In member function ‘long long int HASH::get1(long long int, long long int)’:
answer.code:21:36: error: ‘h1’ was not declared in this scope; did you mean ‘y1’?
   21 |     int get1(int l,int r) {return (h1[r]-h1[l-1]*p1[r-l+1]%mod1+mod1)%mod1;}
      |                                    ^~
      |                                    y1
answer.code: In member function ‘long long int HASH::get2(long long int, long long int)’:
answer.code:22:36: error: ‘h2’ was not declared in this scope; did you mean ‘p2’?
   22 |     int get2(int l,int r) {return (h2[r]-h2[l-1]*p2[r-l+1]%mod2+mod2)%mod2;}
      |                                    ^~
      |                                    p2