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_26594504_19243.cpp:2:9: error: expected unqualified-id before 'for'
         for (i = 0; i < n; i++){
         ^
0_0_26594504_19243.cpp:2:21: error: 'i' does not name a type
         for (i = 0; i < n; i++){
                     ^
0_0_26594504_19243.cpp:2:28: error: 'i' does not name a type
         for (i = 0; i < n; i++){
                            ^
0_0_26594504_19243.cpp:13:9: error: 'j' does not name a type
         j = -1;
         ^
0_0_26594504_19243.cpp:14:9: error: 'cout' does not name a type
         cout << "Top sticks: ";
         ^
0_0_26594504_19243.cpp:15:9: error: expected unqualified-id before 'for'
         for (i = 0; i < n; i++){
         ^
0_0_26594504_19243.cpp:15:21: error: 'i' does not name a type
         for (i = 0; i < n; i++){
                     ^
0_0_26594504_19243.cpp:15:28: error: 'i' does not name a type
         for (i = 0; i < n; i++){
                            ^
0_0_26594504_19243.cpp:25:9: error: 'cout' does not name a type
         cout << j + 1 << "." << endl;
         ^
0_0_26594504_19243.cpp:26:5: 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-11-30 05:15:35, Gzip enabled