Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101180 | 毛靖平 | 12自由落体 | C++ | Compile Error | 0 MS | 0 KB | 171 | 2024-12-14 15:35:05 |
#include<iostream> using namespace std; int main(){ double n=100; for(int i=1;i<=10;i=i++){ n=b/2 } printf("%.2lf\n",n); return 0; }
Main.cc: In function 'int main()': Main.cc:5:26: warning: operation on 'i' may be undefined [-Wsequence-point] for(int i=1;i<=10;i=i++){ ^ Main.cc:6:11: error: 'b' was not declared in this scope n=b/2 ^