Submission #1401447
Source Code Expand
#include <iostream> int main(){ int n,m; std::cin>>n>>m; cout<<max(n,m)<<endl; }
Submission Info
Submission Time | |
---|---|
Task | A - 正直者 |
User | plcherrim |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 90 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:6:2: error: ‘cout’ was not declared in this scope cout<<max(n,m)<<endl; ^ ./Main.cpp:6:2: note: suggested alternative: In file included from ./Main.cpp:1:0: /usr/include/c++/5/iostream:61:18: note: ‘std::cout’ extern ostream cout; /// Linked to standard output ^ ./Main.cpp:6:15: error: ‘max’ was not declared in this scope cout<<max(n,m)<<endl; ^ ./Main.cpp:6:15: note: suggested alternative: In file included from /usr/include/c++/5/bits/char_traits.h:39:0, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from ./Main.cpp:1: /usr/include/c++/5/bits/stl_algobase.h:265:5: note: ‘std::max’ max(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ ./Main.cpp:6:18: error: ‘endl’ was not declared in this scope cout<<max(n,m)<<endl; ^ ./Main.cpp:6:18: note: suggested altern...