Submission #168773


Source Code Expand

#define _USE_MATH_DEFINES
#define INF 0x3f3f3f3f
#define MINF 0xc0c0c0c0
 
#include <iostream>
#include <cstdio>
#include <sstream>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <queue>
#include <stack>
#include <limits>
#include <map>
#include <string>
#include <cstring>
#include <set>
#include <deque>
#include <bitset>
#include <list>
#include <cctype>
#include <utility>
 
using namespace std;
 
typedef long long ll;
typedef pair <int,int> P;
typedef pair <int,P> PP;
 
static const double EPS = 1e-8;
 
int tx[] = {0,1,0,-1};
int ty[] = {-1,0,1,0};

int main(){
  while(~scanf("%d %d",&lhs,&rhs)){
    cout << rhs - lhs + 1 << endl;
  }
}

Submission Info

Submission Time
Task A - アルバム
User okaoka
Language C++ (G++ 4.6.4)
Score 0
Code Size 703 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:36:25: error: ‘lhs’ was not declared in this scope
./Main.cpp:36:30: error: ‘rhs’ was not declared in this scope