QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#236812#5422. Perfect PalindromeHuangHanShengCompile Error//C++17431b2023-11-04 10:52:172023-11-04 10:52:17

详细

answer.code:16:13: error: macro "rep" requires 2 arguments, but only 1 given
   16 |     rep(0.25)cnt[i]=0;
      |             ^
answer.code:3: note: macro "rep" defined here
    3 | #define rep(l,r) for(int i=1;i<=r;i++)
      | 
answer.code:19:13: error: macro "rep" requires 2 arguments, but only 1 given
   19 |     rep(0.25) res =max(res, cnt[i]);
      |             ^
answer.code:3: note: macro "rep" defined here
    3 | #define rep(l,r) for(int i=1;i<=r;i++)
      | 
answer.code: In function ‘int main()’:
answer.code:16:5: error: ‘rep’ was not declared in this scope
   16 |     rep(0.25)cnt[i]=0;
      |     ^~~
answer.code:19:8: error: expected ‘;’ before ‘res’
   19 |     rep(0.25) res =max(res, cnt[i]);
      |        ^      ~~~
      |        ;
answer.code:22:10: error: expected ‘}’ at end of input
   22 | return 0;
      |          ^
answer.code:8:12: note: to match this ‘{’
    8 | int main() {
      |            ^