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

360718_0_3029.cpp:3: error: `main' must return `int'
360718_0_3029.cpp: In function `int main(...)':
360718_0_3029.cpp:5: error: `cout' undeclared (first use this function)
360718_0_3029.cpp:5: error: (Each undeclared identifier is reported only once for each function it appears in.)
360718_0_3029.cpp:6: error: `cin' undeclared (first use this function)
360718_0_3029.cpp:19: error: `endl' undeclared (first use this function)
In file included from 360718_0_3029.cpp:22:
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/iostream.h: At global scope:
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/iostream.h:40: error: `cout' is already declared in this scope
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/iostream.h:41: error: `cin' is already declared in this scope
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/iostream.h:52: error: `endl' is already declared in this scope
360718_0_3029.cpp: In function `int main()':
360718_0_3029.cpp:34: error: declaration of C function `int main()' conflicts with
360718_0_3029.cpp:3: error: previous declaration `int main(...)' here


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-29 11:00:24, Gzip enabled