Compile Error

foo.cc: In function 'int main()':
foo.cc:8:4: error: expected primary-expression before '%' token
    8 |  b=%100/10;
      |    ^
foo.cc:9:4: error: expected primary-expression before '%' token
    9 |  c=%10;
      |    ^
foo.cc:10:16: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses]
   10 |  if(a^3+b*3+c*3==d)
      |       ~~~~~~~~~^~~
foo.cc:12:16: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses]
   12 |  if(a^3+b*3+c*3!=d)
      |       ~~~~~~~~~^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1014 水仙花数
语言
C++
递交时间
2022-07-09 10:41:03
评测时间
2022-07-09 10:41:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes