Submission #2280830


Source Code Expand

#include <iostream>

int main(void){
  int N;
  cin >> N;
  cout << 2 * N << endl;
  return 0;
}

Submission Info

Submission Time
Task A - 流行
User ban
Language C++14 (GCC 5.4.1)
Score 0
Code Size 103 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:5:3: error: ‘cin’ was not declared in this scope
   cin >> N;
   ^
./Main.cpp:5: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:6:3: error: ‘cout’ was not declared in this scope
   cout << 2 * N << endl;
   ^
./Main.cpp:6:3: 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:20: error: ‘endl’ was not declared in this scope
   cout << 2 * N << endl;
                    ^
./Main.cpp:6:20: 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)
     ^