Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
69296 石晋骁 05买水果 C++ Compile Error 0 MS 0 KB 276 2024-03-31 14:43:39

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ double A,B,P; A = 5; B = 8; P = 12; printf("%.3lf ", (A+B+P)/3.0); cout << endl; cout << 39/A << 39%A; cout << endl; cout << 39/B << 39%B; cout << endl; cout << 39/P << 39%P; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:21: error: invalid operands of types 'int' and 'double' to binary 'operator%'
  cout << 39/A << 39%A;
                     ^
Main.cc:12:21: error: invalid operands of types 'int' and 'double' to binary 'operator%'
  cout << 39/B << 39%B;
                     ^
Main.cc:14:21: error: invalid operands of types 'int' and 'double' to binary 'operator%'
  cout << 39/P << 39%P; 
                     ^