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_13543686_26692.cpp: In function 'int main()':
0_0_13543686_26692.cpp:56:27: error: cannot convert 'LL* {aka long long int*}' to 'int*' for argument '1' to 'void add(int*, int, int)'
         add(sumn,a[1].id,1); add(sumn,a[2].id,1);
                           ^
0_0_13543686_26692.cpp:56:48: error: cannot convert 'LL* {aka long long int*}' to 'int*' for argument '1' to 'void add(int*, int, int)'
         add(sumn,a[1].id,1); add(sumn,a[2].id,1);
                                                ^
0_0_13543686_26692.cpp:57:28: error: cannot convert 'LL* {aka long long int*}' to 'int*' for argument '1' to 'void add(int*, int, int)'
         add(sumn1,b[1].id,1); add(sumn1,b[2].id,1);
                            ^
0_0_13543686_26692.cpp:57:50: error: cannot convert 'LL* {aka long long int*}' to 'int*' for argument '1' to 'void add(int*, int, int)'
         add(sumn1,b[1].id,1); add(sumn1,b[2].id,1);
                                                  ^
0_0_13543686_26692.cpp:58:33: error: cannot convert 'LL* {aka long long int*}' to 'int*' for argument '1' to 'void add(int*, int, int)'
         add(sump,a[1].id,a[1].id); add(sump,a[2].id,a[2].id);
                                 ^
0_0_13543686_26692.cpp:58:60: error: cannot convert 'LL* {aka long long int*}' to 'int*' for argument '1' to 'void add(int*, int, int)'
         add(sump,a[1].id,a[1].id); add(sump,a[2].id,a[2].id);
                                                            ^
0_0_13543686_26692.cpp:59:34: error: cannot convert 'LL* {aka long long int*}' to 'int*' for argument '1' to 'void add(int*, int, int)'
         add(sump1,b[1].id,b[1].id); add(sump1,b[2].id,b[2].id);
                                  ^
0_0_13543686_26692.cpp:59:62: error: cannot convert 'LL* {aka long long int*}' to 'int*' for argument '1' to 'void add(int*, int, int)'
         add(sump1,b[1].id,b[1].id); add(sump1,b[2].id,b[2].id);
                                                              ^
0_0_13543686_26692.cpp:61:31: error: cannot convert 'LL* {aka long long int*}' to 'int*' for argument '1' to 'void add(int*, int, int)'
             add(sumn,a[i].id,1); add(sumn1,b[i].id,1);
                               ^
0_0_13543686_26692.cpp:61:53: error: cannot convert 'LL* {aka long long int*}' to 'int*' for argument '1' to 'void add(int*, int, int)'
             add(sumn,a[i].id,1); add(sumn1,b[i].id,1);
                                                     ^
0_0_13543686_26692.cpp:63:37: error: cannot convert 'LL* {aka long long int*}' to 'int*' for argument '1' to 'void add(int*, int, int)'
             add(sump,a[i].id,a[i].id); add(sump1,b[i].id,b[i].id);
                                     ^
0_0_13543686_26692.cpp:63:65: error: cannot convert 'LL* {aka long long int*}' to 'int*' for argument '1' to 'void add(int*, int, int)'
             add(sump,a[i].id,a[i].id); add(sump1,b[i].id,b[i].id);
                                                                 ^
0_0_13543686_26692.cpp:64:38: error: cannot convert 'LL* {aka long long int*}' to 'int*' for argument '1' to 'LL query(int*, int)'
             LL k = query(sumn,a[i].id) - 1,k1 = query(sumn1,b[i].id) - 1;
                                      ^
0_0_13543686_26692.cpp:65:39: error: cannot convert 'LL* {aka long long int*}' to 'int*' for argument '1' to 'LL query(int*, int)'
             LL P = (query(sump,a[i].id)  - a[i].id) ;
                                       ^
0_0_13543686_26692.cpp:66:32: error: cannot convert 'LL* {aka long long int*}' to 'int*' for argument '1' to 'LL query(int*, int)'
    LL P1 = (query(sump1,b[i].id)  - b[i].id) ;
                                ^
0_0_13543686_26692.cpp:68:42: error: 'k1' was not declared in this scope
             kk = k * (k + 1) / 2; kk1 = (k1 + 1) * k1 / 2;
                                          ^


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-30 08:47:37, Gzip enabled