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