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_18053884_9449.cpp: In function 'int main()':
0_0_18053884_9449.cpp:12:16: error: conflicting declaration 'char s [100005]'
   char s[100005];
                ^
0_0_18053884_9449.cpp:9:14: note: previous declaration as 'std::stack<char> s'
   stack<char>s;
              ^
0_0_18053884_9449.cpp:13:15: error: cannot pass objects of non-trivially-copyable type 'class std::stack<char>' through '...'
   scanf("%s",s);
               ^
0_0_18053884_9449.cpp:19:7: error: no match for 'operator[]' (operand types are 'std::stack<char>' and 'int')
    x=s[0];
       ^
0_0_18053884_9449.cpp:20:7: error: no match for 'operator[]' (operand types are 'std::stack<char>' and 'int')
    y=s[1];
       ^
0_0_18053884_9449.cpp:34:8: error: 'str' was not declared in this scope
     ch=str[i++];
        ^


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-12-03 20:49:31, Gzip enabled