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_26520882_9692.cpp:7:9: error: expected initializer before 'char'
         char temp; int i, j; for (j = 0, i = len - 1; j < i; --i, ++j) { temp = word[i]; word[i] = word[j]; word[j] = temp; } } int check(int a[],int num) //褰掓暣 { 
         ^
0_0_26520882_9692.cpp:7:30: error: expected unqualified-id before 'for'
         char temp; int i, j; for (j = 0, i = len - 1; j < i; --i, ++j) { temp = word[i]; word[i] = word[j]; word[j] = temp; } } int check(int a[],int num) //褰掓暣 { 
                              ^
0_0_26520882_9692.cpp:7:55: error: 'j' does not name a type
         char temp; int i, j; for (j = 0, i = len - 1; j < i; --i, ++j) { temp = word[i]; word[i] = word[j]; word[j] = temp; } } int check(int a[],int num) //褰掓暣 { 
                                                       ^
0_0_26520882_9692.cpp:7:62: error: expected unqualified-id before '--' token
         char temp; int i, j; for (j = 0, i = len - 1; j < i; --i, ++j) { temp = word[i]; word[i] = word[j]; word[j] = temp; } } int check(int a[],int num) //褰掓暣 { 
                                                              ^
0_0_26520882_9692.cpp:7:127: error: expected declaration before '}' token
         char temp; int i, j; for (j = 0, i = len - 1; j < i; --i, ++j) { temp = word[i]; word[i] = word[j]; word[j] = temp; } } int check(int a[],int num) //褰掓暣 { 
                                                                                                                               ^


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-07 10:04:38, Gzip enabled