/ Vijos /

记录详情

Compile Error

foo.cpp:1:2: error: stray '#' in program
 2#include<cstdio>
  ^
foo.cpp:1:1: error: expected unqualified-id before numeric constant
 2#include<cstdio>
 ^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/cmath:43:0,
                 from foo.cpp:2:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ext/type_traits.h:160:35: error: '__gnu_cxx::__is_null_pointer' declared as an 'inline' variable
   __is_null_pointer(std::nullptr_t)
                                   ^
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ext/type_traits.h:160:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of symbol
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ext/type_traits.h:155:5: note: previous declaration 'template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)'
     __is_null_pointer(_Type)
     ^
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ext/type_traits.h:160:21: error: 'nullptr_t' is not a member of 'std'
   __is_null_pointer(std::nullptr_t)
                     ^
foo.cpp: In function 'int main()':
foo.cpp:34:30: error: 'scanf' was not declared in this scope
  scanf("%d%d%d%d",&s,&t,&a,&b);
                              ^
foo.cpp:65:22: error: 'printf' was not declared in this scope
  printf("%.2lf\n",ans);
                      ^

信息

递交者
类型
递交
题目
P1119 Car的旅行路线
语言
C++
递交时间
2015-10-17 09:11:22
评测时间
2015-10-17 09:11:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes