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

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); return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:5: error: expected primary-expression before 'int'
 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++){
             ^