Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5169 | 刘轩宁 | 12自由落体 | C++ | Compile Error | 0 MS | 0 KB | 142 | 2024-11-02 21:00:35 |
#include <iostream> using namespace std; int main(){ int i; double n=100 for(i=n;i<=10;i++){ n=n/2; } cout<<n; return 0; }
Main.cc: In function 'int main()': Main.cc:6:2: error: expected ',' or ';' before 'for' for(i=n;i<=10;i++){ ^ Main.cc:6:11: warning: statement has no effect [-Wunused-value] for(i=n;i<=10;i++){ ^ Main.cc:6:19: error: expected ';' before ')' token for(i=n;i<=10;i++){ ^