Submission #1308175


Source Code Expand

#include <bits/stdc++.h>

int main()
{
    int n;
    cin >> n;
    cout << n - 1 << endl;
    return 0;
}

Submission Info

Submission Time
Task A - 植木算
User masao718
Language C++14 (GCC 5.4.1)
Score 0
Code Size 116 Byte
Status CE

Compile Error

./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 /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:74:0,
                 from ./Main.cpp:1:
/usr/include/c++/5/iostream:60:18: note:   ‘std::cin’
   extern istream cin;  /// Linked to standard input
                  ^
./Main.cpp:7:5: error: ‘cout’ was not declared in this scope
     cout << n - 1 << endl;
     ^
./Main.cpp:7:5: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:74:0,
                 from ./Main.cpp:1:
/usr/include/c++/5/iostream:61:18: note:   ‘std::cout’
   extern ostream cout;  /// Linked to standard output
                  ^
./Main.cpp:7:22: error: ‘endl’ was not declared in this scope
     cout << n - 1 << endl;
                      ^
./Main.cpp:7:22: note: suggested alternative:
In file included from /usr/include/c++/5/istream:39:0,
               ...