QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#398106#7646. 优惠购物HuangHanShengCompile Error//C++173.1kb2024-04-24 22:14:302024-04-24 22:14:30

Details

answer.code: In function ‘void solve()’:
answer.code:67:20: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   67 |         for(rg int i=1;i<=n;i+=1)scanf("%lld",A+i);
      |                    ^
answer.code:68:20: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   68 |         for(rg int i=1;i<=n;i+=1)scanf("%lld",B+i);
      |                    ^
answer.code:70:20: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   70 |         for(rg int i=1;i<=n;i+=1)
      |                    ^
answer.code:78:28: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   78 |                 for(rg int i=n;i;i-=1)
      |                            ^
answer.code:85:20: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   85 |         for(rg int i=1;i<=n;i+=1)S[i]=S[i-1]+(A[i]-X[i])/C-X[i];
      |                    ^
answer.code:87:20: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   87 |         for(rg int i=1;i<=n;i+=1)Value[i]=S[i-1]-X[i];
      |                    ^
answer.code:90:20: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   90 |         for(rg int i=1;i<=n;i+=1)if(B[i]-X[i])Nodes.emplace_back(B[i]-X[i],i);
      |                    ^
answer.code:95:20: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   95 |         for(rg int i=0;i<sz;i+=1)
      |                    ^
answer.code:97:24: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   97 |                 rg int j=i;
      |                        ^
answer.code:111:28: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
  111 |                 for(rg int k=i;k<=j;k+=1)Q.emplace(Nodes[k].second);
      |                            ^
answer.code:127:20: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
  127 |         for(rg int i=1;i<=n;i+=1)Ans+=A[i]-X[i];
      |                    ^
answer.code: In function ‘int main()’:
answer.code:134:15: error: ‘T’ was not declared in this scope
  134 |         while(T--)solve();
      |               ^