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_39555755_25134.cpp:88:2: error: stray '#' in program
   88 | }#include<iostream>
      |  ^
0_0_39555755_25134.cpp:88:3: error: 'include' does not name a type
   88 | }#include<iostream>
      |   ^~~~~~~
0_0_39555755_25134.cpp:93:7: error: redefinition of 'class Stack<T>'
   93 | class Stack {
      |       ^~~~~
0_0_39555755_25134.cpp:6:7: note: previous definition of 'class Stack<T>'
    6 | class Stack {
      |       ^~~~~
0_0_39555755_25134.cpp:114:1: error: redefinition of 'Stack<T>::~Stack()'
  114 | Stack<T>::~Stack() {
      | ^~~~~~~~
0_0_39555755_25134.cpp:27:1: note: 'Stack<T>::~Stack()' previously declared here
   27 | Stack<T>::~Stack() {
      | ^~~~~~~~
0_0_39555755_25134.cpp:124:6: error: redefinition of 'void Stack<T>::push(T)'
  124 | void Stack<T>::push(T element) {
      |      ^~~~~~~~
0_0_39555755_25134.cpp:37:6: note: 'void Stack<T>::push(T)' previously declared here
   37 | void Stack<T>::push(T element) {
      |      ^~~~~~~~
0_0_39555755_25134.cpp:132:3: error: redefinition of 'T Stack<T>::pop()'
  132 | T Stack<T>::pop() {
      |   ^~~~~~~~
0_0_39555755_25134.cpp:45:3: note: 'T Stack<T>::pop()' previously declared here
   45 | T Stack<T>::pop() {
      |   ^~~~~~~~
0_0_39555755_25134.cpp:146:3: error: redefinition of 'T Stack<T>::top() const'
  146 | T Stack<T>::top() const {
      |   ^~~~~~~~
0_0_39555755_25134.cpp:59:3: note: 'T Stack<T>::top() const' previously declared here
   59 | T Stack<T>::top() const {
      |   ^~~~~~~~
0_0_39555755_25134.cpp:155:5: error: redefinition of 'int Stack<T>::getSize() const'
  155 | int Stack<T>::getSize() const {
      |     ^~~~~~~~
0_0_39555755_25134.cpp:68:5: note: 'int Stack<T>::getSize() const' previously declared here
   68 | int Stack<T>::getSize() const {
      |     ^~~~~~~~
0_0_39555755_25134.cpp:159:5: error: redefinition of 'int main()'
  159 | int main()
      |     ^~~~
0_0_39555755_25134.cpp:72:5: note: 'int main()' previously defined here
   72 | 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-09-27 23:24:51, Gzip enabled