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_38199614_7419.cpp: In function 'int main()':
0_0_38199614_7419.cpp:69:50: error: expected '}' before ')' token
             st.push(abs({2 * a[id] * newx + b[id]), id});
                                                  ^
0_0_38199614_7419.cpp:69:55: error: expected ')' before '}' token
             st.push(abs({2 * a[id] * newx + b[id]), id});
                                                       ^
0_0_38199614_7419.cpp:69:56: error: expected primary-expression before ')' token
             st.push(abs({2 * a[id] * newx + b[id]), id});
                                                        ^
0_0_38199614_7419.cpp: At global scope:
0_0_38199614_7419.cpp:73:5: error: expected unqualified-id before 'while'
     while (!st.empty()) {
     ^
0_0_38199614_7419.cpp:79:5: error: expected unqualified-id before 'for'
     for (int i = 1; i <= n; i++)
     ^
0_0_38199614_7419.cpp:79:21: error: 'i' does not name a type
     for (int i = 1; i <= n; i++)
                     ^
0_0_38199614_7419.cpp:79:29: error: 'i' does not name a type
     for (int i = 1; i <= n; i++)
                             ^
0_0_38199614_7419.cpp:81:5: error: 'cout' does not name a type
     cout << endl;
     ^
0_0_38199614_7419.cpp:82:5: error: 'cout' does not name a type
     cout << sum << endl;
     ^
0_0_38199614_7419.cpp:83:5: error: expected unqualified-id before 'return'
     return 0;
     ^
0_0_38199614_7419.cpp:84:1: error: expected declaration 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 08:34:16, Gzip enabled