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

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\n ", (A+B+P)/3.0); printf("%lf %lf\n", 38/A, 39%a) ; printf("%lf %lf\n", 38/B, 39%B) ; printf("%lf %lf\n", 38/P, 39%P) ; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:31: error: 'a' was not declared in this scope
  printf("%lf %lf\n", 38/A, 39%a) ;
                               ^
Main.cc:10:31: error: invalid operands of types 'int' and 'double' to binary 'operator%'
  printf("%lf %lf\n", 38/B, 39%B) ;
                               ^
Main.cc:11:31: error: invalid operands of types 'int' and 'double' to binary 'operator%'
  printf("%lf %lf\n", 38/P, 39%P) ;
                               ^