Submission #1677274


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
int main()
  int n;
  cin >> n;
  cout << n - 1 << endl;
  return 0;
}

Submission Info

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

Compile Error

./Main.cpp:4:3: error: expected initializer before ‘int’
   int n;
   ^
./Main.cpp:5:3: error: ‘cin’ does not name a type
   cin >> n;
   ^
./Main.cpp:6:3: error: ‘cout’ does not name a type
   cout << n - 1 << endl;
   ^
./Main.cpp:7:3: error: expected unqualified-id before ‘return’
   return 0;
   ^
./Main.cpp:8:1: error: expected declaration before ‘}’ token
 }
 ^