/ Vijos /

记录详情

Compile Error

foo.cpp:16:24: error: ISO C++ forbids declaration of 'min2' with no type [-fpermissive]
foo.cpp:28:18: error: 'same' declared as an 'inline' variable
foo.cpp:28:23: error: expected ')' before 'x'
foo.cpp:28:30: error: expected ')' before 'y'
foo.cpp:28:31: error: expression list treated as compound expression in initializer [-fpermissive]
foo.cpp:28:31: warning: left operand of comma operator has no effect [-Wunused-value]
foo.cpp:29:1: error: expected ',' or ';' before '{' token
foo.cpp:36:25: error: ISO C++ forbids declaration of 'build' with no type [-fpermissive]
foo.cpp: In function 'int build(int, int)':
foo.cpp:44:1: warning: no return statement in function returning non-void [-Wreturn-type]
foo.cpp: In function 'void read()':
foo.cpp:51:59: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat]
foo.cpp:55:60: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat]
foo.cpp:58:50: error: 'same' cannot be used as a function
foo.cpp:69:59: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat]
foo.cpp:73:60: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat]
foo.cpp:76:50: error: 'same' cannot be used as a function
foo.cpp:87:59: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat]
foo.cpp:91:60: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat]
foo.cpp:94:50: error: 'same' cannot be used as a function
foo.cpp: In function 'void dij()':
foo.cpp:116:3: error: 'min' was not declared in this scope
foo.cpp:116:3: note: suggested alternative:
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/include/c++/bits/stl_algobase.h:233:56: note:   'std::min'

信息

递交者
类型
递交
题目
P1876 小岛的标号
比赛
中秋节模拟赛之冷月葬花魂
语言
C++
递交时间
2014-09-06 21:29:45
评测时间
2014-09-06 22:09:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes