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_23211303_9660.cpp:17:2: error: expected unqualified-id before 'for'
  for ( int i = 0; i < (n); i++ )
  ^
0_0_23211303_9660.cpp:17:19: error: 'i' does not name a type
  for ( int i = 0; i < (n); i++ )
                   ^
0_0_23211303_9660.cpp:17:28: error: 'i' does not name a type
  for ( int i = 0; i < (n); i++ )
                            ^
0_0_23211303_9660.cpp:21:25: error: 'i' does not name a type
  for ( int i = (n) - 1; i >= 0; i-- )
                         ^
0_0_23211303_9660.cpp:21:33: error: 'i' does not name a type
  for ( int i = (n) - 1; i >= 0; i-- )
                                 ^
0_0_23211303_9660.cpp:31:11: error: 'MAXN' was not declared in this scope
 char expr[MAXN];
           ^
0_0_23211303_9660.cpp:33:10: error: 'MAXN' was not declared in this scope
 string S[MAXN];
          ^
0_0_23211303_9660.cpp: In function 'void solve(int)':
0_0_23211303_9660.cpp:43:2: error: 'S' was not declared in this scope
  S[idx] += expr[pos];
  ^
0_0_23211303_9660.cpp:43:12: error: 'expr' was not declared in this scope
  S[idx] += expr[pos];
            ^
0_0_23211303_9660.cpp: In function 'int main()':
0_0_23211303_9660.cpp:63:17: error: 'expr' was not declared in this scope
   scanf( "%s", &expr );
                 ^
0_0_23211303_9660.cpp:69:9: error: 'S' was not declared in this scope
   fill( S, S + pos, "" );
         ^
0_0_23211303_9660.cpp:75:20: error: 'i' was not declared in this scope
    printf( "%s", S[i].c_str() );
                    ^


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 18:03:13, Gzip enabled