Submission #00049
ソースコード
ステータス
コンパイルメッセージ
./Main.cpp: In constructor ‘segment::segment(int)’:
./Main.cpp:9:13: error: ‘INT_MAX’ was not declared in this scope
#define inf INT_MAX
^~~~~~~
./Main.cpp:23:21: note: in expansion of macro ‘inf’
nood[i]=inf;
^~~
./Main.cpp:9:13: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
./Main.cpp:6:1:
+#include <climits>
./Main.cpp:9:13:
#define inf INT_MAX
^~~~~~~
./Main.cpp:23:21: note: in expansion of macro ‘inf’
nood[i]=inf;
^~~
./Main.cpp: In member function ‘int segment::GetMin(int, int, int, int, int)’:
./Main.cpp:9:13: error: ‘INT_MAX’ was not declared in this scope
#define inf INT_MAX
^~~~~~~
./Main.cpp:46:20: note: in expansion of macro ‘inf’
return(inf);
^~~
./Main.cpp:9:13: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
#define inf INT_MAX
^~~~~~~
./Main.cpp:46:20: note: in expansion of macro ‘inf’
return(inf);
^~~
セット
テストケース