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_25516370_27003.cpp:252:19: error: call of overloaded 'scaler(int)' is ambiguous
 const scaler one(1);
                   ^
0_0_25516370_27003.cpp:252:19: note: candidates are:
0_0_25516370_27003.cpp:142:2: note: scaler::scaler(size_t)
  scaler(size_t x): value(x % base) { }
  ^
0_0_25516370_27003.cpp:141:2: note: scaler::scaler(std::ptrdiff_t)
  scaler(ptrdiff_t x): value((base + x) % base) { }
  ^
0_0_25516370_27003.cpp:132:7: note: constexpr scaler::scaler(const scaler&)
 class scaler {
       ^
0_0_25516370_27003.cpp:132:7: note: constexpr scaler::scaler(scaler&&)
0_0_25516370_27003.cpp:253:20: error: call of overloaded 'scaler(int)' is ambiguous
 const scaler zero(0);
                    ^
0_0_25516370_27003.cpp:253:20: note: candidates are:
0_0_25516370_27003.cpp:142:2: note: scaler::scaler(size_t)
  scaler(size_t x): value(x % base) { }
  ^
0_0_25516370_27003.cpp:141:2: note: scaler::scaler(std::ptrdiff_t)
  scaler(ptrdiff_t x): value((base + x) % base) { }
  ^
0_0_25516370_27003.cpp:132:7: note: constexpr scaler::scaler(const scaler&)
 class scaler {
       ^
0_0_25516370_27003.cpp:132:7: note: constexpr scaler::scaler(scaler&&)


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 18:43:59, Gzip enabled