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

306698_0_5874.cpp:1: error: expected constructor, destructor, or type conversion before "a"
306698_0_5874.cpp:1: error: expected `,' or `;' before "a"
306698_0_5874.cpp:1: error: invalid token
In file included from GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/cmath:49,
                 from 306698_0_5874.cpp:2:
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/c++config.h:61: error: expected namespace-name before ';' token
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/c++config.h:61: error: `<type error>' is not a namespace
306698_0_5874.cpp: In function `int main()':
306698_0_5874.cpp:10: error: `cin' undeclared (first use this function)
306698_0_5874.cpp:10: error: (Each undeclared identifier is reported only once for each function it appears in.)
306698_0_5874.cpp:22: error: call of overloaded `abs(int&)' is ambiguous
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/cmath:89: note: candidates are: double std::abs(double)
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/cmath:93: note:                 float std::abs(float)
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/cmath:97: note:                 long double std::abs(long double)
306698_0_5874.cpp:22: error: call of overloaded `abs(int&)' is ambiguous
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/cmath:89: note: candidates are: double std::abs(double)
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/cmath:93: note:                 float std::abs(float)
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/cmath:97: note:                 long double std::abs(long double)
306698_0_5874.cpp:30: error: `cout' undeclared (first use this function)
306698_0_5874.cpp:32: error: `endl' undeclared (first use this function)


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-01 17:31:15, Gzip enabled