| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 69846 | 杨珞烯 | 05买水果 | C++ | Compile Error | 0 MS | 0 KB | 188 | 2024-04-09 19:25:10 |
int g=5,s=8,b=12,a,e,c,x,y,z; double d=(g+s+b)/3.0; a=39/g; e=39/s; c=39/b; x=39%g; y=39%s; z=39%b; printf ("%.3lf\n%d %d\n%d %d\n%d %d\n",d,a,x,e,y,c,z); return 0; }
Main.cc:3:2: error: 'a' does not name a type
a=39/g;
^
Main.cc:4:2: error: 'e' does not name a type
e=39/s;
^
Main.cc:5:2: error: 'c' does not name a type
c=39/b;
^
Main.cc:6:2: error: 'x' does not name a type
x=39%g;
^
Main.cc:7:2: error: 'y' does not name a type
y=39%s;
^
Main.cc:8:2: error: 'z' does not name a type
z=39%b;
^
Main.cc:9:9: error: expected constructor, destructor, or type conversion before '(' token
printf ("%.3lf\n%d %d\n%d %d\n%d %d\n",d,a,x,e,y,c,z);
^
Main.cc:10:2: error: expected unqualified-id before 'return'
return 0;
^
Main.cc:11:1: error: expected declaration before '}' token
}
^