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_15640841_31274.cpp: In function 'bool check(std::vector<int>)':
0_0_15640841_31274.cpp:35:1: error: expected primary-expression before '?' token
 ?   foreach (u, v0) {   
 ^
0_0_15640841_31274.cpp:5:23: error: expected primary-expression before 'for'
 #define foreach(i, v) for (__typeof((v).begin()) i = (v).begin(); i != (v).end(); ++ i)
                       ^
0_0_15640841_31274.cpp:35:5: note: in expansion of macro 'foreach'
 ?   foreach (u, v0) {   
     ^
0_0_15640841_31274.cpp:5:23: error: expected ':' before 'for'
 #define foreach(i, v) for (__typeof((v).begin()) i = (v).begin(); i != (v).end(); ++ i)
                       ^
0_0_15640841_31274.cpp:35:5: note: in expansion of macro 'foreach'
 ?   foreach (u, v0) {   
     ^
0_0_15640841_31274.cpp:5:23: error: expected primary-expression before 'for'
 #define foreach(i, v) for (__typeof((v).begin()) i = (v).begin(); i != (v).end(); ++ i)
                       ^
0_0_15640841_31274.cpp:35:5: note: in expansion of macro 'foreach'
 ?   foreach (u, v0) {   
     ^
0_0_15640841_31274.cpp:35:14: error: 'u' was not declared in this scope
 ?   foreach (u, v0) {   
              ^
0_0_15640841_31274.cpp:5:67: note: in definition of macro 'foreach'
 #define foreach(i, v) for (__typeof((v).begin()) i = (v).begin(); i != (v).end(); ++ i)
                                                                   ^


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:11:29, Gzip enabled