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_32593713_22051.cpp: In function 'int match(int, int)':
0_0_32593713_22051.cpp:11:15: error: 'cnt' was not declared in this scope
             ++cnt;
               ^
0_0_32593713_22051.cpp:15:16: error: 'cnt' was not declared in this scope
             if(cnt==0)
                ^
0_0_32593713_22051.cpp: In function 'std::string sol(int, int)':
0_0_32593713_22051.cpp:28:33: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'int' for argument '1' to 'std::string sol(int, int)'
         return sol(s,sta+1,end-1)+sol(end+1,des);
                                 ^
0_0_32593713_22051.cpp:30:42: error: redeclaration of 'std::string contain'
     string name,id,cla,contain,t,ss,head,contain,tail;
                                          ^
0_0_32593713_22051.cpp:30:24: note: 'std::string contain' previously declared here
     string name,id,cla,contain,t,ss,head,contain,tail;
                        ^
0_0_32593713_22051.cpp:32:91: error: expected ')' before ';' token
     for(;(i<=des&&(('a'<=s[i]&&s[i]<='z')||('A'<=s[i]&&s[i]<='Z')||('0'<=s[i]&&s[i]<='9'));i++)
                                                                                           ^
0_0_32593713_22051.cpp:60:8: error: 'clas' was not declared in this scope
     if(clas.size()>0)
        ^
0_0_32593713_22051.cpp:63:28: error: 'solve' was not declared in this scope
     contain=solve(s,i+1,des);
                            ^
0_0_32593713_22051.cpp:68:13: error: 'tmp' was not declared in this scope
         ss+=tmp;
             ^
0_0_32593713_22051.cpp: In function 'int main()':
0_0_32593713_22051.cpp:79:35: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'int' for argument '1' to 'std::string sol(int, int)'
         cout<<sol(s,0,s.length()-1)<<endl;
                                   ^


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