Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5170 若楷编程专用 12自由落体 C++ Compile Error 0 MS 0 KB 152 2024-11-02 21:00:43

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int i; double n=100 for(double i=100;i<=10;i++){ n=n/2; } cout<<n<<endl; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:5: error: expected ',' or ';' before 'for'
     for(double i=100;i<=10;i++){
     ^
Main.cc:6:23: warning: statement has no effect [-Wunused-value]
     for(double i=100;i<=10;i++){
                       ^
Main.cc:6:31: error: expected ';' before ')' token
     for(double i=100;i<=10;i++){
                               ^