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_36331134_3198.cpp: In function 'void work()':
0_0_36331134_3198.cpp:64:11: error: expected unqualified-id before '[' token
   for(auto[x1,x2,x3] : S1)ans += 1ll * a[x1] * (a[x1] - 1) * (a[x1] - 2) / 6;
           ^
0_0_36331134_3198.cpp:64:11: error: expected ';' before '[' token
0_0_36331134_3198.cpp:64:12: error: 'x1' was not declared in this scope
   for(auto[x1,x2,x3] : S1)ans += 1ll * a[x1] * (a[x1] - 1) * (a[x1] - 2) / 6;
            ^
0_0_36331134_3198.cpp:64:15: error: 'x2' was not declared in this scope
   for(auto[x1,x2,x3] : S1)ans += 1ll * a[x1] * (a[x1] - 1) * (a[x1] - 2) / 6;
               ^
0_0_36331134_3198.cpp:64:18: error: 'x3' was not declared in this scope
   for(auto[x1,x2,x3] : S1)ans += 1ll * a[x1] * (a[x1] - 1) * (a[x1] - 2) / 6;
                  ^
0_0_36331134_3198.cpp: In lambda function:
0_0_36331134_3198.cpp:64:22: error: expected '{' before ':' token
   for(auto[x1,x2,x3] : S1)ans += 1ll * a[x1] * (a[x1] - 1) * (a[x1] - 2) / 6;
                      ^
0_0_36331134_3198.cpp: In function 'void work()':
0_0_36331134_3198.cpp:64:22: error: expected ';' before ':' token
0_0_36331134_3198.cpp:64:22: error: expected primary-expression before ':' token
0_0_36331134_3198.cpp:64:22: error: expected ')' before ':' token
0_0_36331134_3198.cpp:64:22: error: expected primary-expression before ':' token
0_0_36331134_3198.cpp:65:11: error: expected unqualified-id before '[' token
   for(auto[x1,x2,x3] : S2)ans += 1ll * a[x1] * (a[x1] - 1) * a[x3] / 2;
           ^
0_0_36331134_3198.cpp:65:11: error: expected ';' before '[' token
0_0_36331134_3198.cpp:65:12: error: 'x1' was not declared in this scope
   for(auto[x1,x2,x3] : S2)ans += 1ll * a[x1] * (a[x1] - 1) * a[x3] / 2;
            ^
0_0_36331134_3198.cpp:65:15: error: 'x2' was not declared in this scope
   for(auto[x1,x2,x3] : S2)ans += 1ll * a[x1] * (a[x1] - 1) * a[x3] / 2;
               ^
0_0_36331134_3198.cpp:65:18: error: 'x3' was not declared in this scope
   for(auto[x1,x2,x3] : S2)ans += 1ll * a[x1] * (a[x1] - 1) * a[x3] / 2;
                  ^
0_0_36331134_3198.cpp: In lambda function:
0_0_36331134_3198.cpp:65:22: error: expected '{' before ':' token
   for(auto[x1,x2,x3] : S2)ans += 1ll * a[x1] * (a[x1] - 1) * a[x3] / 2;
                      ^
0_0_36331134_3198.cpp: In function 'void work()':
0_0_36331134_3198.cpp:65:22: error: expected ';' before ':' token
0_0_36331134_3198.cpp:65:22: error: expected primary-expression before ':' token
0_0_36331134_3198.cpp:65:22: error: expected ')' before ':' token
0_0_36331134_3198.cpp:65:22: error: expected primary-expression before ':' token
0_0_36331134_3198.cpp:66:11: error: expected unqualified-id before '[' token
   for(auto[x1,x2,x3] : S3)ans += 1ll * a[x1] * a[x2] * (a[x2] - 1) / 2;
           ^
0_0_36331134_3198.cpp:66:11: error: expected ';' before '[' token
0_0_36331134_3198.cpp:66:12: error: 'x1' was not declared in this scope
   for(auto[x1,x2,x3] : S3)ans += 1ll * a[x1] * a[x2] * (a[x2] - 1) / 2;
            ^
0_0_36331134_3198.cpp:66:15: error: 'x2' was not declared in this scope
   for(auto[x1,x2,x3] : S3)ans += 1ll * a[x1] * a[x2] * (a[x2] - 1) / 2;
               ^
0_0_36331134_3198.cpp:66:18: error: 'x3' was not declared in this scope
   for(auto[x1,x2,x3] : S3)ans += 1ll * a[x1] * a[x2] * (a[x2] - 1) / 2;
                  ^
0_0_36331134_3198.cpp: In lambda function:
0_0_36331134_3198.cpp:66:22: error: expected '{' before ':' token
   for(auto[x1,x2,x3] : S3)ans += 1ll * a[x1] * a[x2] * (a[x2] - 1) / 2;
                      ^
0_0_36331134_3198.cpp: In function 'void work()':
0_0_36331134_3198.cpp:66:22: error: expected ';' before ':' token
0_0_36331134_3198.cpp:66:22: error: expected primary-expression before ':' token
0_0_36331134_3198.cpp:66:22: error: expected ')' before ':' token
0_0_36331134_3198.cpp:66:22: error: expected primary-expression before ':' token
0_0_36331134_3198.cpp:67:11: error: expected unqualified-id before '[' token
   for(auto[x1,x2,x3] : S4)ans += 1ll * a[x1] * a[x2] * a[x3];
           ^
0_0_36331134_3198.cpp:67:11: error: expected ';' before '[' token
0_0_36331134_3198.cpp:67:12: error: 'x1' was not declared in this scope
   for(auto[x1,x2,x3] : S4)ans += 1ll * a[x1] * a[x2] * a[x3];
            ^
0_0_36331134_3198.cpp:67:15: error: 'x2' was not declared in this scope
   for(auto[x1,x2,x3] : S4)ans += 1ll * a[x1] * a[x2] * a[x3];
               ^
0_0_36331134_3198.cpp:67:18: error: 'x3' was not declared in this scope
   for(auto[x1,x2,x3] : S4)ans += 1ll * a[x1] * a[x2] * a[x3];
                  ^
0_0_36331134_3198.cpp: In lambda function:
0_0_36331134_3198.cpp:67:22: error: expected '{' before ':' token
   for(auto[x1,x2,x3] : S4)ans += 1ll * a[x1] * a[x2] * a[x3];
                      ^
0_0_36331134_3198.cpp: In function 'void work()':
0_0_36331134_3198.cpp:67:22: error: expected ';' before ':' token
0_0_36331134_3198.cpp:67:22: error: expected primary-expression before ':' token
0_0_36331134_3198.cpp:67:22: error: expected ')' before ':' token
0_0_36331134_3198.cpp:67:22: error: expected primary-expression before ':' token


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-07-03 07:02:45, Gzip enabled