QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#92002#621. 多项式指数函数OumaeKumiko#Compile Error//C++144.1kb2023-03-30 08:05:152023-03-30 08:05:18

Details

answer.code:1:18: error: expected constructor, destructor, or type conversion before ‘(’ token
    1 |                 F(i,0,ret.sz()-1)ret.val[i]=mod(x[i]+y[i]);
      |                  ^
answer.code:2:17: error: expected unqualified-id before ‘return’
    2 |                 return ret;
      |                 ^~~~~~
answer.code:3:9: error: expected declaration before ‘}’ token
    3 |         }
      |         ^
answer.code:4:9: error: ‘friend’ used outside of class
    4 |         friend poly operator-(poly x,poly y){
      |         ^~~~~~
      |         ------
answer.code:4:16: error: ‘poly’ does not name a type
    4 |         friend poly operator-(poly x,poly y){
      |                ^~~~
answer.code:10:9: error: ‘poly’ does not name a type
   10 |         poly &operator*=(poly x){return (*this)=(*this)*x;}
      |         ^~~~
answer.code:11:9: error: ‘poly’ does not name a type
   11 |         poly &operator+=(poly x){return (*this)=(*this)+x;}
      |         ^~~~
answer.code:12:9: error: ‘poly’ does not name a type
   12 |         poly &operator-=(poly x){return (*this)=(*this)-x;}
      |         ^~~~
answer.code:13:9: error: ‘poly’ does not name a type
   13 |         poly deriv(){
      |         ^~~~
answer.code:19:9: error: ‘poly’ does not name a type
   19 |         poly integ(){
      |         ^~~~
answer.code:25:9: error: ‘poly’ does not name a type
   25 |         poly inver(int Len){
      |         ^~~~
answer.code:42:9: error: ‘poly’ does not name a type
   42 |         poly Sqrt(int Len){
      |         ^~~~
answer.code:62:9: error: ‘poly’ does not name a type
   62 |         poly Ln(int Len){
      |         ^~~~
answer.code:65:9: error: ‘poly’ does not name a type
   65 |         poly Exp(int Len){
      |         ^~~~
answer.code:72:9: error: ‘poly’ does not name a type
   72 |         poly Pow(int Len,int k){
      |         ^~~~
answer.code:90:1: error: expected declaration before ‘}’ token
   90 | };
      | ^
answer.code:95:9: error: ‘poly’ does not name a type
   95 |         poly f,g[N],h[N];
      |         ^~~~
answer.code:96:15: error: ‘N’ was not declared in this scope
   96 |         int a[N],b[N],n,m;
      |               ^
answer.code:96:20: error: ‘N’ was not declared in this scope
   96 |         int a[N],b[N],n,m;
      |                    ^
answer.code: In member function ‘void Evaluation::solve1(int, int, int)’:
answer.code:98:26: error: ‘g’ was not declared in this scope
   98 |                 if(l==r){g[x].rsz(2);g[x].val[0]=1;g[x].val[1]=mod(mo-a[l]);return;}
      |                          ^
answer.code:98:68: error: ‘mo’ was not declared in this scope; did you mean ‘m’?
   98 |                 if(l==r){g[x].rsz(2);g[x].val[0]=1;g[x].val[1]=mod(mo-a[l]);return;}
      |                                                                    ^~
      |                                                                    m
answer.code:98:71: error: ‘a’ was not declared in this scope
   98 |                 if(l==r){g[x].rsz(2);g[x].val[0]=1;g[x].val[1]=mod(mo-a[l]);return;}
      |                                                                       ^
answer.code:98:64: error: ‘mod’ was not declared in this scope
   98 |                 if(l==r){g[x].rsz(2);g[x].val[0]=1;g[x].val[1]=mod(mo-a[l]);return;}
      |                                                                ^~~
answer.code:102:25: error: ‘g’ was not declared in this scope
  102 |                         g[x].rsz(r-l+2);
      |                         ^
answer.code:103:27: error: ‘i’ was not declared in this scope
  103 |                         F(i,0,r-l+1){
      |                           ^
answer.code:103:25: error: ‘F’ was not declared in this scope
  103 |                         F(i,0,r-l+1){
      |                         ^
answer.code:109:51: error: ‘BRT’ was not declared in this scope
  109 |                         while(Len<r-l+1+1)Len<<=1;BRT(Len);
      |                                                   ^~~
answer.code:110:25: error: ‘poly’ was not declared in this scope
  110 |                         poly A=g[ls],B=g[rs];
      |                         ^~~~
answer.code:111:25: error: ‘A’ was not declared in this scope
  111 |                         A.rsz(Len);B.rsz(Len);
      |                         ^
answer.code:111:36: error: ‘B’ was not declared in this scope
  111 |                         A.rsz(Len);B.rsz(Len);
      |                                    ^
answer.code:113:27: error: ‘i’ was not declared in this scope
  113 |                         F(i,0,Len-1)A.val[i]=1ll*A[i]*B[i]%mo;
      |                           ^
answer.code:113:25: error: ‘F’ was not declared in this scope
  113 |                         F(i,0,Len-1)A.val[i]=1ll*A[i]*B[i]%mo;
      |                         ^
answer.code:115:25: error: ‘g’ was not declared in this scope
  115 |                         g[x]=A.modxn(r-l+2);
      |                         ^
answer.code: In member functio...