Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:5: error: invalid operands of types 'double' and 'int' to binary 'operator%'
  q=s%10;
    ~^~~
/in/foo.cc:10:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(s<=6)
  ^~
/in/foo.cc:12:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   cout<<d;
   ^~~~
/in/foo.cc:13:2: error: 'else' without a previous 'if'
  else
  ^~~~

信息

递交者
类型
递交
题目
P2662 五舍六入
比赛
2025.1.1初级班结业测试
语言
C++
递交时间
2025-01-01 08:43:22
评测时间
2025-01-01 08:43:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes