/ Vijos /

记录详情

Compile Error

foo.cpp: In member function 'void Bignum::Check()':
foo.cpp:22:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i = 1; i < v.size(); i++) {
                             ^
foo.cpp: In member function 'Bignum& Bignum::operator*=(int)':
foo.cpp:33:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i = 0; i < v.size(); i++) {
                             ^
foo.cpp: In function 'int main()':
foo.cpp:75:22: error: 'struct Node' has no member named 'a'
     cin>>n>>v.back().a>>v.back().b;
                      ^
foo.cpp:75:34: error: 'struct Node' has no member named 'b'
     cin>>n>>v.back().a>>v.back().b;
                                  ^
foo.cpp:79:23: error: 'struct Node' has no member named 'a'
         cin>>v.back().a>>v.back().b;
                       ^
foo.cpp:79:35: error: 'struct Node' has no member named 'b'
         cin>>v.back().a>>v.back().b;
                                   ^
foo.cpp:82:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=1; i!=v.size(); ++i)
                            ^
foo.cpp:84:19: error: 'struct Node' has no member named 'a'
         s*=v[i-1].a;
                   ^
foo.cpp:85:28: error: 'struct Node' has no member named 'b'
         ans=max(ans,s/v[i].b);
                            ^

信息

递交者
类型
递交
题目
P1779 国王游戏
语言
C++
递交时间
2016-11-18 00:18:03
评测时间
2016-11-18 00:18:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes