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_24362775_1328.cpp: In function 'int main()':
0_0_24362775_1328.cpp:32:23: error: invalid conversion from 'int' to 'int*' [-fpermissive]
    ans[a[i]]=Query(a[i])+1;
                       ^
0_0_24362775_1328.cpp:32:24: error: too few arguments to function 'int Query(int*, int)'
    ans[a[i]]=Query(a[i])+1;
                        ^
0_0_24362775_1328.cpp:12:5: note: declared here
 int Query(int*,int);
     ^
0_0_24362775_1328.cpp:33:12: error: invalid conversion from 'int' to 'int*' [-fpermissive]
    Add(a[i]+1,ans[i]);
            ^
0_0_24362775_1328.cpp:33:21: error: too few arguments to function 'void Add(int*, int, int)'
    Add(a[i]+1,ans[i]);
                     ^
0_0_24362775_1328.cpp:13:6: note: declared here
 void Add(int*,int,int);
      ^


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-29 21:37:01, Gzip enabled