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_33378181_8453.cpp:7:18: error: conflicting declaration 'std::stack<long long int> s'
 stack<long long> s;
                  ^
0_0_33378181_8453.cpp:6:6: note: previous declaration as 'char s [10]'
 char s[10];
      ^
0_0_33378181_8453.cpp: In function 'int main()':
0_0_33378181_8453.cpp:21:7: error: request for member 'push' in 's', which is of non-class type 'char [10]'
     s.push(x);
       ^
0_0_33378181_8453.cpp:55:19: error: request for member 'top' in 's', which is of non-class type 'char [10]'
     long long x=s.top(),l=1,r=m+1,mid;
                   ^
0_0_33378181_8453.cpp:56:12: error: 'r' was not declared in this scope
     while((r-l)>1)
            ^
0_0_33378181_8453.cpp:56:14: error: 'l' was not declared in this scope
     while((r-l)>1)
              ^
0_0_33378181_8453.cpp:58:6: error: 'mid' was not declared in this scope
      mid=(l+r)>>1;
      ^
0_0_33378181_8453.cpp:68:21: error: 'l' was not declared in this scope
     for(long long j=l;j<m;j++)
                     ^
0_0_33378181_8453.cpp:72:7: error: request for member 'pop' in 's', which is of non-class type 'char [10]'
     s.pop();
       ^


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-25 22:24:22, Gzip enabled