Submission #1675695
Source Code Expand
#include <bits/stdc++.h> using namespace std; #define DEBUG(x) cerr << #x << ": " << x << endl; #define ll long long int main() { int a; cin >> a; //cout << a / 2 + a % 2 << endl; //cout << (a + 1) / 2 << endl; if (a % 2 == 0) { cout << n / 2 << endl; } else { cout << (n - 1) / 2 << endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 引越し作業 |
User | nomi |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 374 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:14:17: error: ‘n’ was not declared in this scope cout << n / 2 << endl; ^ ./Main.cpp:16:18: error: ‘n’ was not declared in this scope cout << (n - 1) / 2 << endl; ^