Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137121 张宇泽 12自由落体 C++ Compile Error 0 MS 0 KB 154 2025-11-16 11:29:24

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ double s=100 fou(int i=1;i<=10;i++){ s=s/2 } printf("%.6f",s); cout<<s; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:1: error: expected ',' or ';' before 'fou'
 fou(int i=1;i<=10;i++){
 ^
Main.cc:5:13: error: 'i' was not declared in this scope
 fou(int i=1;i<=10;i++){
             ^