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_22139087_6008.cpp: In function 'void getfail(char*, int*)':
0_0_22139087_6008.cpp:10:17: error: 'imaxlen' was not declared in this scope
     for(int i=1;imaxlen){
                 ^
0_0_22139087_6008.cpp:10:24: error: expected ';' before ')' token
     for(int i=1;imaxlen){
                        ^
0_0_22139087_6008.cpp:11:11: error: 'maxlen' was not declared in this scope
           maxlen=strlen(s);
           ^
0_0_22139087_6008.cpp:12:12: error: invalid conversion from 'int' to 'char*' [-fpermissive]
           p=i;
            ^
0_0_22139087_6008.cpp: At global scope:
0_0_22139087_6008.cpp:17:9: error: expected unqualified-id before 'for'
         for(int i=1;i<=n;i++)
         ^
0_0_22139087_6008.cpp:17:21: error: 'i' does not name a type
         for(int i=1;i<=n;i++)
                     ^
0_0_22139087_6008.cpp:17:26: error: 'i' does not name a type
         for(int i=1;i<=n;i++)
                          ^
0_0_22139087_6008.cpp:23:9: error: expected unqualified-id before 'if'
         if(ans==n)
         ^
0_0_22139087_6008.cpp:27:3: error: expected unqualified-id before 'else'
   else puts("No");
   ^
0_0_22139087_6008.cpp:28: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-17 08:38:55, Gzip enabled