Language: C++

#include <bits/stdc++.h>
using namespace std;
 
// 型名の省略
typedef unsigned int uint;
typedef long long lint;
typedef unsigned long long ulint;
 
const int MOD = 1000000007;
const lint INF = 1LL << 60;
const double PI=acos(-1.0);
 
// cinとcoutの高速化
#define endl "\n"
struct cinacc{cinacc(){cin.tie(0);ios::sync_with_stdio(false);}}cinaccc;
struct coutacc{coutacc(){cout.setf(ios::fixed);cout.precision(12);}}coutaccc;
 
// 繰り返し
#define rep(i,n) for(lint i=0;i<(lint)(n);i++)
#define reps(i,n) for(lint i=0;i<=(lint)(n);i++)
#define rrep(i,n) for(lint i=(lint)(n)-1;i>0;i--)
#define rreps(i,n) for(lint i=(lint)(n)-1;i>=0;i--)

#define pb push_back

#define p pair<int, int>
#define plint pair<lint, lint>

#define ALL(s) (s.begin(), s.end())
#define SZ(s) (s.size())

template<class T>bool chmax(T&a,const T&b){if(a<b){a=b;return true;}return false;}
template<class T>bool chmin(T&a,const T&b){if(b<a){a=b;return true;}return false;}

// Union-Find-Tree
class UnionFind {
    vector<int> par;
    UnionFind(int n):par(n){rep(i,n)par[i]=i;}
    int root(int x){if(par[x]==x)return x;return par[x]=root(par[x]);}
    void unite(int x,int y){int rx=root(x);int ry=root(y);if(rx==ry)return;par[rx]=ry;}
    bool same(int x,int y){return root(x)==root(y);}
};

// Final Weapon!
// #define int lint
#include <bits/stdc++.h>
using namespace std;
 
// 型名の省略
typedef unsigned int uint;
typedef long long lint;
typedef unsigned long long ulint;
 
const int MOD = 1000000007;
const lint INF = 1LL << 60;
const double PI=acos(-1.0);
 
// cinとcoutの高速化
#define endl "\n"
struct cinacc{cinacc(){cin.tie(0);ios::sync_with_stdio(false);}}cinaccc;
struct coutacc{coutacc(){cout.setf(ios::fixed);cout.precision(12);}}coutaccc;
 
// 繰り返し
#define rep(i,n) for(lint i=0;i<(lint)(n);i++)
#define reps(i,n) for(lint i=0;i<=(lint)(n);i++)
#define rrep(i,n) for(lint i=(lint)(n)-1;i>0;i--)
#define rreps(i,n) for(lint i=(lint)(n)-1;i>=0;i--)

#define pb push_back

#define p pair<int, int>
#define plint pair<lint, lint>

#define ALL(s) (s.begin(), s.end())
#define SZ(s) (s.size())

template<class T>bool chmax(T&a,const T&b){if(a<b){a=b;return true;}return false;}
template<class T>bool chmin(T&a,const T&b){if(b<a){a=b;return true;}return false;}

// Union-Find-Tree
class UnionFind {
    vector<int> par;
    UnionFind(int n):par(n){rep(i,n)par[i]=i;}
    int root(int x){if(par[x]==x)return x;return par[x]=root(par[x]);}
    void unite(int x,int y){int rx=root(x);int ry=root(y);if(rx==ry)return;par[rx]=ry;}
    bool same(int x,int y){return root(x)==root(y);}
};

// Final Weapon!
// #define int lint

#define MAX_N 100000
lint dp[MAX_N+1];

int main(void) {
    int n, r;
    cin >> n >> r;
    
    cout << (n < 10 ? r + (100 * (10 - n)) : r);
    
    return 0;
}

#define MAX_N 100000
lint dp[MAX_N+1];

int main(void) {
    int n, r;
    cin >> n >> r;
    
    cout << (n < 10 ? r + (100 * (10 - n)) : r);
    
    return 0;
}


Compiler output:
a.cc:54:11: error: redefinition of 'const int MOD'
   54 | const int MOD = 1000000007;
      |           ^~~
a.cc:9:11: note: 'const int MOD' previously defined here
    9 | const int MOD = 1000000007;
      |           ^~~
a.cc:55:12: error: redefinition of 'const lint INF'
   55 | const lint INF = 1LL << 60;
      |            ^~~
a.cc:10:12: note: 'const lint INF' previously defined here
   10 | const lint INF = 1LL << 60;
      |            ^~~
a.cc:56:14: error: redefinition of 'const double PI'
   56 | const double PI=acos(-1.0);
      |              ^~
a.cc:11:14: note: 'const double PI' previously defined here
   11 | const double PI=acos(-1.0);
      |              ^~
a.cc:60:8: error: redefinition of 'struct cinacc'
   60 | struct cinacc{cinacc(){cin.tie(0);ios::sync_with_stdio(false);}}cinaccc;
      |        ^~~~~~
a.cc:15:8: note: previous definition of 'struct cinacc'
   15 | struct cinacc{cinacc(){cin.tie(0);ios::sync_with_stdio(false);}}cinaccc;
      |        ^~~~~~
a.cc:60:65: error: conflicting declaration 'int cinaccc'
   60 | struct cinacc{cinacc(){cin.tie(0);ios::sync_with_stdio(false);}}cinaccc;
      |                                                                 ^~~~~~~
a.cc:15:65: note: previous declaration as 'cinacc cinaccc'
   15 | struct cinacc{cinacc(){cin.tie(0);ios::sync_with_stdio(false);}}cinaccc;
      |                                                                 ^~~~~~~
a.cc:61:8: error: redefinition of 'struct coutacc'
   61 | struct coutacc{coutacc(){cout.setf(ios::fixed);cout.precision(12);}}coutaccc;
      |        ^~~~~~~
a.cc:16:8: note: previous definition of 'struct coutacc'
   16 | struct coutacc{coutacc(){cout.setf(ios::fixed);cout.precision(12);}}coutaccc;
      |        ^~~~~~~
a.cc:61:69: error: conflicting declaration 'int coutaccc'
   61 | struct coutacc{coutacc(){cout.setf(ios::fixed);cout.precision(12);}}coutaccc;
      |                                                                     ^~~~~~~~
a.cc:16:69: note: previous declaration as 'coutacc coutaccc'
   16 | struct coutacc{coutacc(){cout.setf(ios::fixed);cout.precision(12);}}coutaccc;
      |                                                                     ^~~~~~~~
a.cc:77:23: error: redefinition of 'template<class T> bool chmax(T&, const T&)'
   77 | template<class T>bool chmax(T&a,const T&b){if(a<b){a=b;return true;}return false;}
      |                       ^~~~~
a.cc:32:23: note: 'template<class T> bool chmax(T&, const T&)' previously declared here
   32 | template<class T>bool chmax(T&a,const T&b){if(a<b){a=b;return true;}return false;}
      |                       ^~~~~
a.cc:78:23: error: redefinition of 'template<class T> bool chmin(T&, const T&)'
   78 | template<class T>bool chmin(T&a,const T&b){if(b<a){a=b;return true;}return false;}
      |                       ^~~~~
a.cc:33:23: note: 'template<class T> bool chmin(T&, const T&)' previously declared here
   33 | template<class T>bool chmin(T&a,const T&b){if(b<a){a=b;return true;}return false;}
      |                       ^~~~~
a.cc:81:7: error: redefinition of 'class UnionFind'
   81 | class UnionFind {
      |       ^~~~~~~~~
a.cc:36:7: note: previous definition of 'class UnionFind'
   36 | class UnionFind {
      |       ^~~~~~~~~
a.cc:105:6: error: redefinition of 'lint dp [100001]'
  105 | lint dp[MAX_N+1];
      |      ^~
a.cc:93:6: note: 'lint dp [100001]' previously declared here
   93 | lint dp[MAX_N+1];
      |      ^~
a.cc:107:5: error: redefinition of 'int main()'
  107 | int main(void) {
      |     ^~~~
a.cc:95:5: note: 'int main()' previously defined here
   95 | int main(void) {
      |     ^~~~