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_18831709_18655.cpp: In function 'int main()':
0_0_18831709_18655.cpp:7:5: error: 'cin' was not declared in this scope
     cin>>t;
     ^
0_0_18831709_18655.cpp:11:9: error: 'cout' was not declared in this scope
         cout<<a+b+max(a,b)<<endl;
         ^
0_0_18831709_18655.cpp:11:26: error: 'max' was not declared in this scope
         cout<<a+b+max(a,b)<<endl;
                          ^
0_0_18831709_18655.cpp:11:26: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_18831709_18655.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note:   'std::max'
     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
     ^
0_0_18831709_18655.cpp:11:29: error: 'endl' was not declared in this scope
         cout<<a+b+max(a,b)<<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-17 00:19:33, Gzip enabled