QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#662375#8523. Puzzle IIucup-team4740#Compile Error//C++172.6kb2024-10-20 23:29:232024-10-20 23:29:23

詳細信息

answer.code: In function ‘void solve()’:
answer.code:125:12: error: invalid conversion from ‘int’ to ‘int*’ [-fpermissive]
  125 |     List A(1);
      |            ^
      |            |
      |            int
answer.code:21:15: note:   initializing argument 1 of ‘List::List(int*)’
   21 |     List(int *x)
      |          ~~~~~^
answer.code:126:12: error: invalid conversion from ‘int’ to ‘int*’ [-fpermissive]
  126 |     List B(2);
      |            ^
      |            |
      |            int
answer.code:21:15: note:   initializing argument 1 of ‘List::List(int*)’
   21 |     List(int *x)
      |          ~~~~~^