QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#403664#6836. A Plus B ProblemInfiniteStarlight#Compile Error//C++232.0kb2024-05-02 17:01:122024-05-02 17:01:13

詳細信息

answer.code: In function ‘int main()’:
answer.code:91:25: error: expected ‘}’ before ‘else’
   91 |                         else if(nxt0<nxt2) delta=0;
      |                         ^~~~
answer.code:90:17: note: to match this ‘{’
   90 |                 {
      |                 ^
answer.code:94:28: error: ‘c’ was not declared in this scope
   94 |                 cout<<(val[c]+delta)%10<<" "<<ans+ch<<'\n';
      |                            ^
answer.code:94:31: error: ‘delta’ was not declared in this scope
   94 |                 cout<<(val[c]+delta)%10<<" "<<ans+ch<<'\n';
      |                               ^~~~~
answer.code:94:47: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   94 |                 cout<<(val[c]+delta)%10<<" "<<ans+ch<<'\n';
      |                                               ^~~
      |                                               abs
answer.code:94:51: error: ‘ch’ was not declared in this scope
   94 |                 cout<<(val[c]+delta)%10<<" "<<ans+ch<<'\n';
      |                                                   ^~
answer.code: At global scope:
answer.code:96:9: error: expected unqualified-id before ‘return’
   96 |         return 0;
      |         ^~~~~~
answer.code:97:1: error: expected declaration before ‘}’ token
   97 | }
      | ^