| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 69302 | 石晋骁 | 05买水果 | C++ | Compile Error | 0 MS | 0 KB | 260 | 2024-03-31 14:46:11 |
#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); printf("%.3lf\n ", 38/A, 39%a) ; printf("%.3lf\n ", 38/B, 39%B) ; printf("%.3lf\n ", 38/P, 39%P) ; return 0; }
Main.cc: In function 'int main()':
Main.cc:9:30: error: 'a' was not declared in this scope
printf("%.3lf\n ", 38/A, 39%a) ;
^
Main.cc:10:30: error: invalid operands of types 'int' and 'double' to binary 'operator%'
printf("%.3lf\n ", 38/B, 39%B) ;
^
Main.cc:11:30: error: invalid operands of types 'int' and 'double' to binary 'operator%'
printf("%.3lf\n ", 38/P, 39%P) ;
^