Submission #2825078


Source Code Expand

#include<iostream>
#include<string>
using namespase std;
int main(){
    int N,x;
    cin>>N;
    x=2*N
    cout<<x<<endl;
}

Submission Info

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

Compile Error

./Main.cpp:3:7: error: expected nested-name-specifier before ‘namespase’
 using namespase std;
       ^
./Main.cpp: In function ‘int main()’:
./Main.cpp:6:5: error: ‘cin’ was not declared in this scope
     cin>>N;
     ^
./Main.cpp:6:5: 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:5: error: expected ‘;’ before ‘cout’
     cout<<x<<endl;
     ^