QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#144577#4186. Card TradingMaMengQiCompile Error//C++201.8kb2023-08-21 16:59:462023-08-21 17:01:18

Details

answer.code: In function ‘void solve()’:
answer.code:45:18: error: ‘p’ was not declared in this scope
   45 |             if(a[p].p<=mid) a1+=a[p].a;
      |                  ^
answer.code:46:18: error: ‘p’ was not declared in this scope
   46 |             if(a[p].p>=mid) b1+=a[p].b;
      |                  ^
answer.code:53:18: error: ‘p’ was not declared in this scope
   53 |             if(a[p].p<=mid) a2+=a[p].a;
      |                  ^
answer.code:54:18: error: ‘p’ was not declared in this scope
   54 |             if(a[p].p>=mid) b2+=a[p].b;
      |                  ^
answer.code:65:14: error: ‘p’ was not declared in this scope
   65 |         if(a[p].p<=mid) a1+=a[p].a;
      |              ^
answer.code:66:14: error: ‘p’ was not declared in this scope
   66 |         if(a[p].p>=mid) b1+=a[p].b;
      |              ^