Submission #163169


Source Code Expand

#include<iostream>
int main(){
int n;
cin >> n;
cout << n-1 << endl;
}

Submission Info

Submission Time
Task A - 植木算
User tkzw_21
Language C++ (G++ 4.6.4)
Score 0
Code Size 75 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:4:1: error: ‘cin’ was not declared in this scope
./Main.cpp:4:1: note: suggested alternative:
/usr/include/c++/4.6/iostream:61:18: note:   ‘std::cin’
./Main.cpp:5:1: error: ‘cout’ was not declared in this scope
./Main.cpp:5:1: note: suggested alternative:
/usr/include/c++/4.6/iostream:62:18: note:   ‘std::cout’
./Main.cpp:5:16: error: ‘endl’ was not declared in this scope
./Main.cpp:5:16: note: suggested alternative:
/usr/include/c++/4.6/ostream:543:5: note:   ‘std::endl’