QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#150851#5436. DRX vs. T1HuangHanShengCompile Error//C++17254b2023-08-26 14:06:002023-08-26 14:06:03

Details

answer.code: In function ‘int main()’:
answer.code:7:5: error: ‘ll’ was not declared in this scope
    7 |     ll cnt=0;
      |     ^~
answer.code:8:11: error: expected ‘;’ before ‘i’
    8 |     for(ll i=0;i<s.size();i++){
      |           ^~
      |           ;
answer.code:8:16: error: ‘i’ was not declared in this scope
    8 |     for(ll i=0;i<s.size();i++){
      |                ^
answer.code:10:13: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
   10 |             cnt++;
      |             ^~~
      |             int
answer.code:12:12: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
   12 |     cout<<(cnt==3? "T1":"DRX")<<nl;
      |            ^~~
      |            int
answer.code:12:33: error: ‘nl’ was not declared in this scope; did you mean ‘ynl’?
   12 |     cout<<(cnt==3? "T1":"DRX")<<nl;
      |                                 ^~
      |                                 ynl