/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int max(int, int)':
foo.cpp:7:32: warning: second operand of conditional expression has no effect [-Wunused-value]
 int max(int x,int y)  { x>y?x:y;}                     
                                ^
foo.cpp:7:32: warning: third operand of conditional expression has no effect [-Wunused-value]
foo.cpp:7:33: warning: no return statement in function returning non-void [-Wreturn-type]
 int max(int x,int y)  { x>y?x:y;}                     
                                 ^
foo.cpp: At global scope:
foo.cpp:19:1: error: expected unqualified-id before '?' token
 ???
 ^

信息

递交者
类型
递交
题目
P1104 采药
语言
C++
递交时间
2016-05-22 20:59:30
评测时间
2016-05-22 20:59:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes