Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
101183 毛靖平 12自由落体 C++ Compile Error 0 MS 0 KB 171 2024-12-14 15:35:42

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ double n=100; for(int i=1;i<=10;i=i++){ n=n/2 } printf("%.2lf\n",n); return 0; }


Run Info:

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:7:5: error: expected ';' before '}' token
     }
     ^