/ Vijos /

记录详情

Compile Error

/in/foo.cc:57:14: error: ISO C++ forbids declaration of 'alltwo' with no type [-fpermissive]
   alltwo(LL x){
              ^
/in/foo.cc: In member function 'int PE615::elem::alltwo(LL)':
/in/foo.cc:61:3: warning: no return statement in function returning non-void [-Wreturn-type]
   }
   ^
/in/foo.cc: In member function 'bool PE615::elem::operator<(const PE615::elem&) const':
/in/foo.cc:70:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(i=0,j=0;i<a.size() || j<a2.size();){
                ~^~~~~~~~~
/in/foo.cc:70:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(i=0,j=0;i<a.size() || j<a2.size();){
                              ~^~~~~~~~~~
/in/foo.cc:72:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if(j==a2.size()){
        ~^~~~~~~~~~~
/in/foo.cc:75:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     }else if(i==a.size()){
              ~^~~~~~~~~~
/in/foo.cc: In member function 'PE615::elem PE615::elem::insert_delete(LL, LL)':
/in/foo.cc:102:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int i=0;i<a.size();i++){
                ~^~~~~~~~~
/in/foo.cc: In member function 'void PE615::elem::output()':
/in/foo.cc:121:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int i=0;i<a.size();i++)
                ~^~~~~~~~~
/in/foo.cc: In function 'int PE615::main(LL, LL, LL)':
/in/foo.cc:153:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int i=0;i<e1.a.size();i++){
                ~^~~~~~~~~~~~
/in/foo.cc:162:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<e1.a.size();i++)
               ~^~~~~~~~~~~~
/in/foo.cc:165:2: warning: no return statement in function returning non-void [-Wreturn-type]
  }
  ^

信息

递交者
类型
递交
题目
P2036 整数的素因子数
语言
C++
递交时间
2018-03-12 03:09:23
评测时间
2018-03-24 22:10:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes