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_37831290_8223.cpp: In function 'void dfs(long long int, long long int, long long int)':
0_0_37831290_8223.cpp:59:14: error: expected unqualified-id before '[' token
     for(auto [u,v]:t){
              ^
0_0_37831290_8223.cpp:59:14: error: expected ';' before '[' token
0_0_37831290_8223.cpp:59:15: error: 'u' was not declared in this scope
     for(auto [u,v]:t){
               ^
0_0_37831290_8223.cpp:59:17: error: 'v' was not declared in this scope
     for(auto [u,v]:t){
                 ^
0_0_37831290_8223.cpp: In lambda function:
0_0_37831290_8223.cpp:59:19: error: expected '{' before ':' token
     for(auto [u,v]:t){
                   ^
0_0_37831290_8223.cpp: In function 'void dfs(long long int, long long int, long long int)':
0_0_37831290_8223.cpp:59:19: error: expected ';' before ':' token
0_0_37831290_8223.cpp:59:19: error: expected primary-expression before ':' token
0_0_37831290_8223.cpp:59:19: error: expected ')' before ':' token
0_0_37831290_8223.cpp:59:19: error: expected primary-expression before ':' token
0_0_37831290_8223.cpp:74:14: error: expected unqualified-id before '[' token
         auto [u,v]=t[i];
              ^
0_0_37831290_8223.cpp:75:29: error: 'u' was not declared in this scope
         while(l<=m&&t[l][0]<u){
                             ^
0_0_37831290_8223.cpp:81:30: error: 'u' was not declared in this scope
         while(r<=m&&t[r][0]<=u){
                              ^
0_0_37831290_8223.cpp:88:12: error: 'u' was not declared in this scope
         if(u<=lt) f[x][0]=min(f[x][0],c[x]*abs(w[x]-u)+tot);
            ^
0_0_37831290_8223.cpp:89:12: error: 'u' was not declared in this scope
         if(u>=lt) f[x][1]=min(f[x][1],c[x]*abs(w[x]-u)+tot);
            ^


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-20 00:27:20, Gzip enabled