Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137116 傅小轩 12自由落体 C++ Compile Error 0 MS 0 KB 169 2025-11-16 11:27:20

Tests(0/0):


Code:

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


Run Info:

Main.cc:8:5: error: stray '\357' in program
     printf("%f.6f",s);
     ^
Main.cc:8:5: error: stray '\274' in program
Main.cc:8:5: error: stray '\210' in program
Main.cc: In function 'int main()':
Main.cc:8:14: error: expected ';' before string constant
     printf("%f.6f",s);
              ^
Main.cc:8:24: warning: statement is a reference, not call, to function 'printf' [-Waddress]
     printf("%f.6f",s);
                        ^
Main.cc:8:24: warning: statement has no effect [-Wunused-value]