/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:419:16: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[1001]' [-Wformat=]
   scanf("%s",&k);
                ^
/in/foo.cc:444:11: error: call of overloaded 'Bp(int)' is ambiguous
     a=Bp(0);
           ^
/in/foo.cc:298:2: note: candidate: Bp::Bp(long long int)
  Bp(long long aa)//int 构造 
  ^~
/in/foo.cc:264:2: note: candidate: Bp::Bp(char*)
  Bp(char *c)//char 构造
  ^~
/in/foo.cc:8:8: note: candidate: constexpr Bp::Bp(const Bp&)
 struct Bp
        ^~
/in/foo.cc:8:8: note: candidate: constexpr Bp::Bp(Bp&&)
/in/foo.cc:449:11: error: call of overloaded 'Bp(int)' is ambiguous
     a=Bp(0);
           ^
/in/foo.cc:298:2: note: candidate: Bp::Bp(long long int)
  Bp(long long aa)//int 构造 
  ^~
/in/foo.cc:264:2: note: candidate: Bp::Bp(char*)
  Bp(char *c)//char 构造
  ^~
/in/foo.cc:8:8: note: candidate: constexpr Bp::Bp(const Bp&)
 struct Bp
        ^~
/in/foo.cc:8:8: note: candidate: constexpr Bp::Bp(Bp&&)
/in/foo.cc:455:12: error: call of overloaded 'Bp(int)' is ambiguous
    ans=Bp(0);
            ^
/in/foo.cc:298:2: note: candidate: Bp::Bp(long long int)
  Bp(long long aa)//int 构造 
  ^~
/in/foo.cc:264:2: note: candidate: Bp::Bp(char*)
  Bp(char *c)//char 构造
  ^~
/in/foo.cc:8:8: note: candidate: constexpr Bp::Bp(const Bp&)
 struct Bp
        ^~
/in/foo.cc:8:8: note: candidate: constexpr Bp::Bp(Bp&&)
/in/foo.cc:457:10: error: call of overloaded 'Bp(int)' is ambiguous
    a=Bp(0);
          ^
/in/foo.cc:298:2: note: candidate: Bp::Bp(long long int)
  Bp(long long aa)//int 构造 
  ^~
/in/foo.cc:264:2: note: candidate: Bp::Bp(char*)
  Bp(char *c)//char 构造
  ^~
/in/foo.cc:8:8: note: candidate: constexpr Bp::Bp(const Bp&)
 struct Bp
        ^~
/in/foo.cc:8:8: note: candidate: constexpr Bp::Bp(Bp&&)

信息

递交者
类型
递交
题目
P1472 教主的集合序列
语言
C++
递交时间
2018-09-07 16:25:14
评测时间
2018-09-07 16:25:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes