/ Vijos /

记录详情

Compile Error

foo.cpp:5:0: warning: "NULL" redefined [enabled by default]
 #define NULL nullptr
 ^
In file included from c:\mingw\include\stdlib.h:22:0,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\cstdlib:72,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:59,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
                 from foo.cpp:4:
c:\mingw\lib\gcc\mingw32\4.8.1\include\stddef.h:399:0: note: this is the location of the previous definition
 #define NULL __null
 ^
foo.cpp:57:5: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]
     long long num = strtoll(M.c_str(), nullptr, N);
     ^
foo.cpp: In function 'int main()':
foo.cpp:57:40: error: 'nullptr' was not declared in this scope
     long long num = strtoll(M.c_str(), nullptr, N);
                                        ^

信息

递交者
类型
递交
题目
P1304 回文数
语言
C++
递交时间
2016-03-19 00:18:13
评测时间
2016-03-19 00:18:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes