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_35699770_29074.cpp: In function 'void solve(int, int, int, int)':
0_0_35699770_29074.cpp:51:14: error: expected unqualified-id before '[' token
         auto [x, y, id] = query(qry[i].x, qry[i].y);
              ^
0_0_35699770_29074.cpp:52:18: error: 'x' was not declared in this scope
         if(1ll * x * qry[i].x + 1ll * y * qry[i].y < res[qry[i].c]){
                  ^
0_0_35699770_29074.cpp:52:39: error: 'y' was not declared in this scope
         if(1ll * x * qry[i].x + 1ll * y * qry[i].y < res[qry[i].c]){
                                       ^
0_0_35699770_29074.cpp:54:30: error: 'id' was not declared in this scope
             link[qry[i].c] = id;
                              ^
0_0_35699770_29074.cpp:62:14: error: expected unqualified-id before '[' token
         auto [x, y, id] = query(qry[i].x, qry[i].y);
              ^
0_0_35699770_29074.cpp:63:18: error: 'x' was not declared in this scope
         if(1ll * x * qry[i].x + 1ll * y * qry[i].y < res[qry[i].c]){
                  ^
0_0_35699770_29074.cpp:63:39: error: 'y' was not declared in this scope
         if(1ll * x * qry[i].x + 1ll * y * qry[i].y < res[qry[i].c]){
                                       ^
0_0_35699770_29074.cpp:65:30: error: 'id' was not declared in this scope
             link[qry[i].c] = id;
                              ^


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-01-11 01:19:12, Gzip enabled