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_39310834_4952.cpp:91:7: error: redefinition of 'class Stack<T>'
   91 | class Stack{
      |       ^~~~~
0_0_39310834_4952.cpp:7:7: note: previous definition of 'class Stack<T>'
    7 | class Stack{
      |       ^~~~~
0_0_39310834_4952.cpp:110:1: error: redefinition of 'Stack<T>::~Stack()'
  110 | Stack<T>::~Stack() {
      | ^~~~~~~~
0_0_39310834_4952.cpp:35:1: note: 'Stack<T>::~Stack()' previously declared here
   35 | Stack<T>::~Stack() {
      | ^~~~~~~~
0_0_39310834_4952.cpp:119:6: error: redefinition of 'void Stack<T>::push(T)'
  119 | void Stack<T>::push(T element) {
      |      ^~~~~~~~
0_0_39310834_4952.cpp:40:6: note: 'void Stack<T>::push(T)' previously declared here
   40 | void Stack<T>::push(T element) {
      |      ^~~~~~~~
0_0_39310834_4952.cpp:127:3: error: redefinition of 'T Stack<T>::pop()'
  127 | T Stack<T>::pop() {
      |   ^~~~~~~~
0_0_39310834_4952.cpp:48:3: note: 'T Stack<T>::pop()' previously declared here
   48 | T Stack<T>::pop() {
      |   ^~~~~~~~
0_0_39310834_4952.cpp:140:3: error: redefinition of 'T Stack<T>::top() const'
  140 | T Stack<T>::top() const {
      |   ^~~~~~~~
0_0_39310834_4952.cpp:56:3: note: 'T Stack<T>::top() const' previously declared here
   56 | T Stack<T>::top() const {
      |   ^~~~~~~~
0_0_39310834_4952.cpp:148:5: error: redefinition of 'int Stack<T>::getSize() const'
  148 | int Stack<T>::getSize() const {
      |     ^~~~~~~~
0_0_39310834_4952.cpp:64:5: note: 'int Stack<T>::getSize() const' previously declared here
   64 | int Stack<T>::getSize() const {
      |     ^~~~~~~~
0_0_39310834_4952.cpp:152:5: error: redefinition of 'int main()'
  152 | int main() {
      |     ^~~~
0_0_39310834_4952.cpp:68:5: note: 'int main()' previously defined here
   68 | int main() {
      |     ^~~~


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-16 19:32:43, Gzip enabled