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_36568825_25542.cpp: In function 'void dfs(__int128)':
0_0_36568825_25542.cpp:136:26: error: ambiguous overload for 'operator<<' (operand types are 'inout' and 'long long int')
   }else if(x)cout<<"add "<<(ll)(11-x)<<'\n';
                          ^
0_0_36568825_25542.cpp:136:26: note: candidates are:
0_0_36568825_25542.cpp:77:12: note: inout& inout::operator<<(int)
     inout& operator <<(int a){
            ^
0_0_36568825_25542.cpp:84:12: note: inout& inout::operator<<(char)
     inout& operator <<(char a){
            ^
0_0_36568825_25542.cpp:88:12: note: inout& inout::operator<<(char*) <near match>
     inout& operator <<(char *a){
            ^
0_0_36568825_25542.cpp:88:12: note:   no known conversion for argument 1 from 'long long int' to 'char*'
0_0_36568825_25542.cpp:96:12: note: inout& inout::operator<<(double)
     inout& operator <<(double a){
            ^
0_0_36568825_25542.cpp:140:16: error: ambiguous overload for 'operator<<' (operand types are 'inout' and 'long long int')
    cout<<"sub "<<(ll)(10-(16-x%16))<<'\n';
                ^
0_0_36568825_25542.cpp:140:16: note: candidates are:
0_0_36568825_25542.cpp:77:12: note: inout& inout::operator<<(int)
     inout& operator <<(int a){
            ^
0_0_36568825_25542.cpp:84:12: note: inout& inout::operator<<(char)
     inout& operator <<(char a){
            ^
0_0_36568825_25542.cpp:88:12: note: inout& inout::operator<<(char*) <near match>
     inout& operator <<(char *a){
            ^
0_0_36568825_25542.cpp:88:12: note:   no known conversion for argument 1 from 'long long int' to 'char*'
0_0_36568825_25542.cpp:96:12: note: inout& inout::operator<<(double)
     inout& operator <<(double a){
            ^
0_0_36568825_25542.cpp:147:17: error: ambiguous overload for 'operator<<' (operand types are 'inout' and 'long long int')
     cout<<"add "<<(ll)(10-x%16)<<'\n';
                 ^
0_0_36568825_25542.cpp:147:17: note: candidates are:
0_0_36568825_25542.cpp:77:12: note: inout& inout::operator<<(int)
     inout& operator <<(int a){
            ^
0_0_36568825_25542.cpp:84:12: note: inout& inout::operator<<(char)
     inout& operator <<(char a){
            ^
0_0_36568825_25542.cpp:88:12: note: inout& inout::operator<<(char*) <near match>
     inout& operator <<(char *a){
            ^
0_0_36568825_25542.cpp:88:12: note:   no known conversion for argument 1 from 'long long int' to 'char*'
0_0_36568825_25542.cpp:96:12: note: inout& inout::operator<<(double)
     inout& operator <<(double a){
            ^
0_0_36568825_25542.cpp:153:17: error: ambiguous overload for 'operator<<' (operand types are 'inout' and 'long long int')
     cout<<"add "<<(ll)(10-(16-x%16))<<'\n';
                 ^
0_0_36568825_25542.cpp:153:17: note: candidates are:
0_0_36568825_25542.cpp:77:12: note: inout& inout::operator<<(int)
     inout& operator <<(int a){
            ^
0_0_36568825_25542.cpp:84:12: note: inout& inout::operator<<(char)
     inout& operator <<(char a){
            ^
0_0_36568825_25542.cpp:88:12: note: inout& inout::operator<<(char*) <near match>
     inout& operator <<(char *a){
            ^
0_0_36568825_25542.cpp:88:12: note:   no known conversion for argument 1 from 'long long int' to 'char*'
0_0_36568825_25542.cpp:96:12: note: inout& inout::operator<<(double)
     inout& operator <<(double a){
            ^
0_0_36568825_25542.cpp: In function 'void solve()':
0_0_36568825_25542.cpp:163:19: error: ambiguous overload for 'operator<<' (operand types are 'inout' and '__int128')
   cout<<"dup\nadd"<<i<<'\n';
                   ^
0_0_36568825_25542.cpp:163:19: note: candidates are:
0_0_36568825_25542.cpp:77:12: note: inout& inout::operator<<(int)
     inout& operator <<(int a){
            ^
0_0_36568825_25542.cpp:84:12: note: inout& inout::operator<<(char)
     inout& operator <<(char a){
            ^
0_0_36568825_25542.cpp:88:12: note: inout& inout::operator<<(char*) <near match>
     inout& operator <<(char *a){
            ^
0_0_36568825_25542.cpp:88:12: note:   no known conversion for argument 1 from '__int128' to 'char*'
0_0_36568825_25542.cpp:96:12: note: inout& inout::operator<<(double)
     inout& operator <<(double a){
            ^


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-26 10:16:33, Gzip enabled