| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68795 | 陈俊洁 | 12自由落体 | C++ | Compile Error | 0 MS | 0 KB | 153 | 2024-03-24 15:06:07 |
#include <bits/stdc++.h> using namespace std; int main () { double h=100; for(int i=1; i<=10:i++) { h=h/2.0 } printf(h%.6lf;) return 0; }
Main.cc: In function 'int main()':
Main.cc:5:20: error: expected ';' before ':' token
for(int i=1; i<=10:i++) {
^
Main.cc:5:20: error: expected primary-expression before ':' token
Main.cc:5:20: error: expected ')' before ':' token
Main.cc:5:20: error: expected primary-expression before ':' token
Main.cc:8:11: error: unable to find numeric literal operator 'operator""lf'
printf(h%.6lf;)
^
Main.cc:8:11: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
Main.cc:8:16: error: expected primary-expression before ')' token
printf(h%.6lf;)
^