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_32722545_20336.cpp:1:17: error: missing terminating > character
 #include <string
                 ^
0_0_32722545_20336.cpp:2:2: error: stray '#' in program
 >#include <iostream> 
  ^
0_0_32722545_20336.cpp:2:1: error: expected unqualified-id before '>' token
 >#include <iostream> 
 ^
0_0_32722545_20336.cpp:4:18: error: 'string' does not name a type
 struct Node {    string head,cont,tail;}; 
                  ^
0_0_32722545_20336.cpp:5:20: error: 'string' does not name a type
 int matching(const string& s,int sta,int des) {    
                    ^
0_0_32722545_20336.cpp: In function 'int matching(const int&, int, int)':
0_0_32722545_20336.cpp:8:9: error: invalid types 'const int[int]' for array subscript
 if(s[sta]=='(')            ++cnt;        
         ^
0_0_32722545_20336.cpp:9:14: error: invalid types 'const int[int]' for array subscript
 else if(s[sta]==')') {            --cnt;            
              ^
0_0_32722545_20336.cpp: At global scope:
0_0_32722545_20336.cpp:11:1: error: 'string' does not name a type
 string solve(const string& s,int sta,int des) {    if(sta>des)        return "";    
 ^


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-06-29 06:00:37, Gzip enabled