Submission #1368540
Source Code Expand
#include<iostream> int main(){ int x,y; std::cin>>x>>y; std::cout<<x+max(0, y - x)<<"\n"; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 正直者 |
User | kcvlex |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 109 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:4:27: error: ‘max’ was not declared in this scope std::cout<<x+max(0, y - x)<<"\n"; ^ ./Main.cpp:4:27: 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) ^