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_25449852_318.cpp: In function 'int main()':
0_0_25449852_318.cpp:33:24: error: 'class std::stack<char>' has no member named 'length'
    for(int i = 0;i < l.length(); i++){
                        ^
0_0_25449852_318.cpp:34:27: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator=='
     if(!l.empty()&&l.top=='('&&s[i]==')'){
                           ^
0_0_25449852_318.cpp:44:6: error: 'a' was not declared in this scope
      a[k].l++;
      ^
0_0_25449852_318.cpp:47:6: error: 'a' was not declared in this scope
      a[k].r++;
      ^
0_0_25449852_318.cpp:51:8: error: 'a' was not declared in this scope
   sort(a,a+k,cmp);
        ^
0_0_25449852_318.cpp:51:12: error: 'k' was not declared in this scope
   sort(a,a+k,cmp);
            ^


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-06 03:51:38, Gzip enabled