/ Vijos /

记录详情

Compile Error

foo.cpp:19:23: error: ISO C++ forbids initialization of member 'ua' [-fpermissive]
foo.cpp:19:23: error: making 'ua' static [-fpermissive]
foo.cpp:19:23: error: ISO C++ forbids in-class initialization of non-const static member 'ua'
foo.cpp:19:31: error: ISO C++ forbids initialization of member 'ub' [-fpermissive]
foo.cpp:19:31: error: making 'ub' static [-fpermissive]
foo.cpp:19:31: error: ISO C++ forbids in-class initialization of non-const static member 'ub'
foo.cpp:19:39: error: ISO C++ forbids initialization of member 'uc' [-fpermissive]
foo.cpp:19:39: error: making 'uc' static [-fpermissive]
foo.cpp:19:39: error: ISO C++ forbids in-class initialization of non-const static member 'uc'
foo.cpp: In function 'int main()':
foo.cpp:32:41: warning: operation on 'guess::ua' may be undefined [-Wsequence-point]
foo.cpp:34:41: warning: operation on 'guess::ub' may be undefined [-Wsequence-point]
foo.cpp:36:41: warning: operation on 'guess::uc' may be undefined [-Wsequence-point]

信息

递交者
类型
递交
题目
P1941 猜谜游戏
比赛
2015年 安联杯安徽省青少年信息学奥林匹克竞赛(AHOI 2015)同步赛
语言
C++
递交时间
2015-04-18 22:06:19
评测时间
2015-04-25 18:04:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes