| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148697 | 王峻熙 | 12自由落体 | C++ | Compile Error | 0 MS | 0 KB | 296 | 2026-02-28 15:17:22 |
include <iostream> #include <cstdio> #include <cmath> using namespace std; int main() { int i; double h = 100; for(i=1;i<=10;i+) { h = h/2 } printf("%.6lf",h); return 0; }
Main.cc:1:1: error: 'include' does not name a type
include
^
In file included from /usr/include/c++/5/cmath:43:0,
from Main.cc:3:
/usr/include/c++/5/ext/type_traits.h:160:35: error: '__gnu_cxx::__is_null_pointer' declared as an 'inline' variable
__is_null_pointer(std::nullptr_t)
^
/usr/include/c++/5/ext/type_traits.h:160:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of symbol
/usr/include/c++/5/ext/type_traits.h:155:5: note: previous declaration 'template bool __gnu_cxx::__is_null_pointer(_Type)'
__is_null_pointer(_Type)
^
/usr/include/c++/5/ext/type_traits.h:160:21: error: 'nullptr_t' is not a member of 'std'
__is_null_pointer(std::nullptr_t)
^
Main.cc: In function 'int main()':
Main.cc:9:24: error: expected primary-expression before ')' token
for(i=1;i<=10;i+)
^
Main.cc:12:5: error: expected ';' before '}' token
}
^