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_36787324_23145.cpp:1:1: error: 'include' does not name a type
 include<iostream>
 ^
0_0_36787324_23145.cpp: In function 'int round(double)':
0_0_36787324_23145.cpp:6:19: error: ambiguating new declaration of 'int round(double)'
 int round(double a){
                   ^
In file included from 0_0_36787324_23145.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:874:25: note: old declaration 'double round(double)'
   extern double __cdecl round (double);
                         ^
0_0_36787324_23145.cpp: In function 'int main()':
0_0_36787324_23145.cpp:19:5: error: 'cin' was not declared in this scope
     cin>>n1>>n3;//n1是接力人数,n3是公里数
     ^
0_0_36787324_23145.cpp:22:9: error: 'cout' was not declared in this scope
         cout.width(3);
         ^
0_0_36787324_23145.cpp:35:28: error: 'endl' was not declared in this scope
                 cout<<"-"<<endl;
                            ^
0_0_36787324_23145.cpp:78:26: error: 'endl' was not declared in this scope
         cout<<" min/km"<<endl;
                          ^


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-25 17:44:57, Gzip enabled