Submission #4989366
Source Code Expand
#include <iostream> using namaspace std; int main(void){ cin >> a >> b; if (a<b){ cout << b <<endl; } else cout << a <<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 正直者 |
User | bobeel |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 159 Byte |
Status | CE |
Compile Error
./Main.cpp:2:7: error: expected nested-name-specifier before ‘namaspace’ using namaspace std; ^ ./Main.cpp: In function ‘int main()’: ./Main.cpp:4:3: error: ‘cin’ was not declared in this scope cin >> a >> b; ^ ./Main.cpp:4:3: note: suggested alternative: In file included from ./Main.cpp:1:0: /usr/include/c++/5/iostream:60:18: note: ‘std::cin’ extern istream cin; /// Linked to standard input ^ ./Main.cpp:4:10: error: ‘a’ was not declared in this scope cin >> a >> b; ^ ./Main.cpp:4:15: error: ‘b’ was not declared in this scope cin >> a >> b; ^ ./Main.cpp:6:5: error: ‘cout’ was not declared in this scope cout << b <<endl; ^ ./Main.cpp:6:5: 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:17: error: ‘endl’ was not declared in this scope cout << b <<endl; ...