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_17230553_6493.cpp: In function 'int main()':
0_0_17230553_6493.cpp:30:48: error: invalid initialization of reference of type 'LL& {aka long long int&}' from expression of type 'int'
                               Max(f[S|(1<<j)][j],f[S][i]+a[i+1]*a[j+1]);
                                                ^
0_0_17230553_6493.cpp:8:6: note: in passing argument 1 of 'void Max(LL&, LL)'
 void Max(LL &x,LL y){if (y>x) x=y;}
      ^
0_0_17230553_6493.cpp:33:33: error: invalid initialization of reference of type 'LL& {aka long long int&}' from expression of type 'int'
           Max(ans,f[(1<<n)-1][i]);
                                 ^
0_0_17230553_6493.cpp:8:6: note: in passing argument 1 of 'void Max(LL&, LL)'
 void Max(LL &x,LL y){if (y>x) x=y;}
      ^


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 19:09:54, Gzip enabled