F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_25516240_16075.cpp:143:2: error: 'scaler::scaler(size_t)' cannot be overloaded
  scaler(size_t x): value(x % base) { }
  ^
0_0_25516240_16075.cpp:134:2: error: with 'scaler::scaler(ull)'
  scaler(ull x): value(x % base) { }
  ^
0_0_25516240_16075.cpp: In function 'scaler pow(const scaler&, size_t)':
0_0_25516240_16075.cpp:168:10: error: conversion from 'int' to 'scaler' is ambiguous
   return 1;
          ^
0_0_25516240_16075.cpp:168:10: note: candidates are:
0_0_25516240_16075.cpp:142:2: note: scaler::scaler(std::ptrdiff_t)
  scaler(ptrdiff_t x): value((base + x) % base) { }
  ^
0_0_25516240_16075.cpp:134:2: note: scaler::scaler(ull)
  scaler(ull x): value(x % base) { }
  ^
0_0_25516240_16075.cpp: At global scope:
0_0_25516240_16075.cpp:172:37: error: conversion from 'int' to 'const value_type {aka const scaler}' is ambiguous
 std::vector<scaler> inverseans(20, 0);
                                     ^
0_0_25516240_16075.cpp:172:37: note: candidates are:
0_0_25516240_16075.cpp:142:2: note: scaler::scaler(std::ptrdiff_t)
  scaler(ptrdiff_t x): value((base + x) % base) { }
  ^
0_0_25516240_16075.cpp:134:2: note: scaler::scaler(ull)
  scaler(ull x): value(x % base) { }
  ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from 0_0_25516240_16075.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:289:7: note: initializing argument 2 of 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = scaler; _Alloc = std::allocator<scaler>; std::vector<_Tp, _Alloc>::size_type = long long unsigned int; std::vector<_Tp, _Alloc>::value_type = scaler; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<scaler>]'
       vector(size_type __n, const value_type& __value,
       ^
0_0_25516240_16075.cpp:179:20: error: call of overloaded 'scaler(int)' is ambiguous
 const scaler zero(0);
                    ^
0_0_25516240_16075.cpp:179:20: note: candidates are:
0_0_25516240_16075.cpp:142:2: note: scaler::scaler(std::ptrdiff_t)
  scaler(ptrdiff_t x): value((base + x) % base) { }
  ^
0_0_25516240_16075.cpp:134:2: note: scaler::scaler(ull)
  scaler(ull x): value(x % base) { }
  ^
0_0_25516240_16075.cpp:132:7: note: constexpr scaler::scaler(const scaler&)
 class scaler {
       ^
0_0_25516240_16075.cpp:132:7: note: constexpr scaler::scaler(scaler&&)
0_0_25516240_16075.cpp:180:19: error: call of overloaded 'scaler(int)' is ambiguous
 const scaler one(1);
                   ^
0_0_25516240_16075.cpp:180:19: note: candidates are:
0_0_25516240_16075.cpp:142:2: note: scaler::scaler(std::ptrdiff_t)
  scaler(ptrdiff_t x): value((base + x) % base) { }
  ^
0_0_25516240_16075.cpp:134:2: note: scaler::scaler(ull)
  scaler(ull x): value(x % base) { }
  ^
0_0_25516240_16075.cpp:132:7: note: constexpr scaler::scaler(const scaler&)
 class scaler {
       ^
0_0_25516240_16075.cpp:132:7: note: constexpr scaler::scaler(scaler&&)


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 11:17:28, Gzip enabled