Language: C++

x#include <bits/stdc++.h>
typedef long long ll;
#define rep(i, a, b) for (ll i = a; i < (ll)b; ++i)
#define digit(a) to_string(a).size()
#define INF 10e12
#define MAX 51000
#define all(x) (x).begin(), (x).end()
#define MX(x) *max_element(all(x))
#define MN(x) *min_element(all(x))
using namespace std;
int main(void)

{
    cin.tie(0);
    ios::sync_with_stdio(false);
    string s;
    cin >> s;
    int ans = (int)INF;
    rep(i, 0, s.length() - 2) ans = min(ans, abs(753 - stoi(s.substr(i, 3))));
    cout << ans << endl;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | x#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'x' does not name a type
    1 | x#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:14:5: error: 'cin' was not declared in this scope
   14 |     cin.tie(0);
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | x#include <bits/stdc++.h>
a.cc:15:5: error: 'ios' has not been declared
   15 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:16:5: error: 'string' was not declared in this scope
   16 |     string s;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | x#include <bits/stdc++.h>
a.cc:17:12: error: 's' was not declared in this scope
   17 |     cin >> s;
      |            ^
a.cc:3:27: error: 'll' was not declared in this scope; did you mean 'all'?
    3 | #define rep(i, a, b) for (ll i = a; i < (ll)b; ++i)
      |                           ^~
a.cc:19:5: note: in expansion of macro 'rep'
   19 |     rep(i, 0, s.length() - 2) ans = min(ans, abs(753 - stoi(s.substr(i, 3))));
      |     ^~~
a.cc:19:9: error: 'i' was not declared in this scope
   19 |     rep(i, 0, s.length() - 2) ans = min(ans, abs(753 - stoi(s.substr(i, 3))));
      |         ^
a.cc:3:37: note: in definition of macro 'rep'
    3 | #define rep(i, a, b) for (ll i = a; i < (ll)b; ++i)
      |                                     ^
a.cc:19:15: error: expected ';' before 's'
   19 |     rep(i, 0, s.length() - 2) ans = min(ans, abs(753 - stoi(s.substr(i, 3))));
      |               ^
a.cc:3:45: note: in definition of macro 'rep'
    3 | #define rep(i, a, b) for (ll i = a; i < (ll)b; ++i)
      |                                             ^
a.cc:3:46: error: expected ')' before ';' token
    3 | #define rep(i, a, b) for (ll i = a; i < (ll)b; ++i)
      |                          ~                   ^
a.cc:19:5: note: in expansion of macro 'rep'
   19 |     rep(i, 0, s.length() - 2) ans = min(ans, abs(753 - stoi(s.substr(i, 3))));
      |     ^~~
a.cc:19:9: error: 'i' was not declared in this scope
   19 |     rep(i, 0, s.length() - 2) ans = min(ans, abs(753 - stoi(s.substr(i, 3))));
      |         ^
a.cc:3:50: note: in definition of macro 'rep'
    3 | #define rep(i, a, b) for (ll i = a; i < (ll)b; ++i)
      |                                                  ^
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout << ans << endl;
      |     ^~~~
a.cc:20:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:20: error: 'endl' was not declared in this scope
   20 |     cout << ans << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | x#include <bits/stdc++.h>