Submission #5497667
Source Code Expand
#include <iostream> using namespece std; int main() { int h1, h2; cin h1 >> h2; count << h2 - h1 << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - 積雪深差 |
User | tak_ |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 122 Byte |
Status | CE |
Compile Error
./Main.cpp:2:7: error: expected nested-name-specifier before ‘namespece’ using namespece std; ^ ./Main.cpp: In function ‘int main()’: ./Main.cpp:7:3: error: ‘cin’ was not declared in this scope cin h1 >> h2; ^ ./Main.cpp:7: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:8:3: error: ‘count’ was not declared in this scope count << h2 - h1 << endl; ^ ./Main.cpp:8:23: error: ‘endl’ was not declared in this scope count << h2 - h1 << endl; ^ ./Main.cpp:8:23: note: suggested alternative: In file included from /usr/include/c++/5/iostream:39:0, from ./Main.cpp:1: /usr/include/c++/5/ostream:590:5: note: ‘std::endl’ endl(basic_ostream<_CharT, _Traits>& __os) ^