Submission #186913
Source Code Expand
#include <iostream> int main() { int m; cin >> m; if(m == 12) m = 1; else m++; cout << m << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - 来月は何月? |
User | aoisensi |
Language | C++11 (GCC 4.8.1) |
Score | 0 |
Code Size | 113 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:5:2: error: ‘cin’ was not declared in this scope cin >> m; ^ ./Main.cpp:5:2: note: suggested alternative: In file included from ./Main.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: ‘std::cin’ extern istream cin; /// Linked to standard input ^ ./Main.cpp:8:2: error: ‘cout’ was not declared in this scope cout << m << endl; ^ ./Main.cpp:8:2: note: suggested alternative: In file included from ./Main.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: ‘std::cout’ extern ostream cout; /// Linked to standard output ^ ./Main.cpp:8:15: error: ‘endl’ was not declared in this scope cout << m << endl; ^ ./Main.cpp:8:15: note: suggested alternative: In file included from /usr/include/c++/4.8/iostream:39:0, from ./Main.cpp:1: /usr/include/c++/4.8/ostream:564:5: note: ‘std::endl’ endl(basic_ostream<_CharT, _Traits>& __os) ^