记录详情

Compile Error

foo.cc: In function 'Listnode* Insert(int*, int)':
foo.cc:12:14: error: cannot convert 'Listnode' to 'Listnode*' in initialization
  Listnode *p=h;
              ^
foo.cc:16:13: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses]
   while(10^m<a[i])
            ~^~~~~
foo.cc:22:12: error: invalid types 'char[int]' for array subscript
   while(b[j]!='\0')
            ^
foo.cc:24:10: error: invalid types 'char[int]' for array subscript
    if(b[j]!=b[m-1-j]
          ^
foo.cc:24:20: error: invalid types 'char[int]' for array subscript
    if(b[j]!=b[m-1-j]
                    ^
foo.cc:25:7: error: expected ')' before '{' token
       {
       ^
foo.cc:28:3: error: expected primary-expression before '}' token
   }
   ^
foo.cc:32:11: error: invalid operands of types 'Listnode*' and '<unresolved overloaded function type>' to binary 'operator-'
        p=p-next;
          ~^~~~~
foo.cc:35:14: error: cannot convert 'Listnode' to 'Listnode*' in return
       return h;
              ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
周末测试
语言
C++
递交时间
2021-11-03 21:38:20
评测时间
2021-11-03 21:38:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes