Language: C++

#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;

typedef int_fast64_t ll;
typedef int_fast32_t intt;
typedef int_fast32_t tmp_m;
#define deb(x) cout << #x << ' ' << x << endl
#define rep(i, a, b) for (tmp_m i = a; i < b; ++i)
#define repp(i, a, b) for (tmp_m i = a; i >= b; --i)
#define pb push_back
#define st stack
#define pa pair
#define vc vector
#define qu queue
#define pq priority_queue
#define fr first
#define sc second
#define mp map
const intt mod = 1e9 + 7;

struct pr {
  intt x;
  intt y;
  intt dst;
  pr() {}
  pr(intt x, intt y, intt dst) : x(x), y(y), dst(dst) {}
  inline bool operator<(const pr& b) const {
    if (dst != b.dst) return dst > b.dst;
    if (x != b.x) return x > b.x;
    return y > b.y;
  }
};

struct point {
  intt x;
  intt y;
  point() {}
  point(intt x, intt y) : x(x), y(y) {}
  inline bool operator<(const point& b) const {
    if (x != b.x) return x > b.x;
    return y > b.y;
  }
};

inline bool spoint(point a, point b) {
  if (a.x != b.x) return a.x < b.x;
  return a.y < b.y;
}

inline bool spr(pr a, pr b) {
  if (a.dst != b.dst) return a.dst < b.dst;
  if (a.x != b.x) return a.x < b.x;
  return a.y < b.y;
}



void solve() {
  string s;
  cin >> s;
  for(auto i : s){
    if(i == '7'){puts("YES");return 0;}
  }
  puts("NO");
}

int main() {
  // remove if interactive
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  solve();
  return 0;
}


Compiler output:
a.cc:19:9: error: 'int_fast64_t' does not name a type
   19 | typedef int_fast64_t ll;
      |         ^~~~~~~~~~~~
a.cc:20:9: error: 'int_fast32_t' does not name a type
   20 | typedef int_fast32_t intt;
      |         ^~~~~~~~~~~~
a.cc:21:9: error: 'int_fast32_t' does not name a type
   21 | typedef int_fast32_t tmp_m;
      |         ^~~~~~~~~~~~
a.cc:34:7: error: 'intt' does not name a type; did you mean 'int'?
   34 | const intt mod = 1e9 + 7;
      |       ^~~~
      |       int
a.cc:37:3: error: 'intt' does not name a type; did you mean 'int'?
   37 |   intt x;
      |   ^~~~
      |   int
a.cc:38:3: error: 'intt' does not name a type; did you mean 'int'?
   38 |   intt y;
      |   ^~~~
      |   int
a.cc:39:3: error: 'intt' does not name a type; did you mean 'int'?
   39 |   intt dst;
      |   ^~~~
      |   int
a.cc:41:10: error: expected ')' before 'x'
   41 |   pr(intt x, intt y, intt dst) : x(x), y(y), dst(dst) {}
      |     ~    ^~
      |          )
a.cc: In member function 'bool pr::operator<(const pr&) const':
a.cc:43:9: error: 'dst' was not declared in this scope; did you mean 'st'?
   43 |     if (dst != b.dst) return dst > b.dst;
      |         ^~~
      |         st
a.cc:43:18: error: 'const struct pr' has no member named 'dst'
   43 |     if (dst != b.dst) return dst > b.dst;
      |                  ^~~
a.cc:43:38: error: 'const struct pr' has no member named 'dst'
   43 |     if (dst != b.dst) return dst > b.dst;
      |                                      ^~~
a.cc:44:9: error: 'x' was not declared in this scope
   44 |     if (x != b.x) return x > b.x;
      |         ^
a.cc:44:16: error: 'const struct pr' has no member named 'x'
   44 |     if (x != b.x) return x > b.x;
      |                ^
a.cc:44:32: error: 'const struct pr' has no member named 'x'
   44 |     if (x != b.x) return x > b.x;
      |                                ^
a.cc:45:12: error: 'y' was not declared in this scope; did you mean 'yn'?
   45 |     return y > b.y;
      |            ^
      |            yn
a.cc:45:18: error: 'const struct pr' has no member named 'y'
   45 |     return y > b.y;
      |                  ^
a.cc: At global scope:
a.cc:50:3: error: 'intt' does not name a type; did you mean 'int'?
   50 |   intt x;
      |   ^~~~
      |   int
a.cc:51:3: error: 'intt' does not name a type; did you mean 'int'?
   51 |   intt y;
      |   ^~~~
      |   int
a.cc:53:13: error: expected ')' before 'x'
   53 |   point(intt x, intt y) : x(x), y(y) {}
      |        ~    ^~
      |             )
a.cc: In member function 'bool point::operator<(const point&) const':
a.cc:55:9: error: 'x' was not declared in this scope
   55 |     if (x != b.x) return x > b.x;
      |         ^
a.cc:55:16: error: 'const struct point' has no member named 'x'
   55 |     if (x != b.x) return x > b.x;
      |                ^
a.cc:55:32: error: 'const struct point' has no member named 'x'
   55 |     if (x != b.x) return x > b.x;
      |                                ^
a.cc:56:12: error: 'y' was not declared in this scope; did you mean 'yn'?
   56 |     return y > b.y;
      |            ^
      |            yn
a.cc:56:18: error: 'const struct point' has no member named 'y'
   56 |     return y > b.y;
      |                  ^
a.cc: In function 'bool spoint(point, point)':
a.cc:61:9: error: 'struct point' has no member named 'x'
   61 |   if (a.x != b.x) return a.x < b.x;
      |         ^
a.cc:61:16: error: 'struct point' has no member named 'x'
   61 |   if (a.x != b.x) return a.x < b.x;
      |                ^
a.cc:61:28: error: 'struct point' has no member named 'x'
   61 |   if (a.x != b.x) return a.x < b.x;
      |                            ^
a.cc:61:34: error: 'struct point' has no member named 'x'
   61 |   if (a.x != b.x) return a.x < b.x;
      |                                  ^
a.cc:62:12: error: 'struct point' has no member named 'y'
   62 |   return a.y < b.y;
      |            ^
a.cc:62:18: error: 'struct point' has no member named 'y'
   62 |   return a.y < b.y;
      |                  ^
a.cc: In function 'bool spr(pr, pr)':
a.cc:66:9: error: 'struct pr' has no member named 'dst'
   66 |   if (a.dst != b.dst) return a.dst < b.dst;
      |         ^~~
a.cc:66:18: error: 'struct pr' has no member named 'dst'
   66 |   if (a.dst != b.dst) return a.dst < b.dst;
      |                  ^~~
a.cc:66:32: error: 'struct pr' has no member named 'dst'
   66 |   if (a.dst != b.dst) return a.dst < b.dst;
      |                                ^~~
a.cc:66:40: error: 'struct pr' has no member named 'dst'
   66 |   if (a.dst != b.dst) return a.dst < b.dst;
      |                                        ^~~
a.cc:67:9: error: 'struct pr' has no member named 'x'
   67 |   if (a.x != b.x) return a.x < b.x;
      |         ^
a.cc:67:16: error: 'struct pr' has no member named 'x'
   67 |   if (a.x != b.x) return a.x < b.x;
      |                ^
a.cc:67:28: error: 'struct pr' has no member named 'x'
   67 |   if (a.x != b.x) return a.x < b.x;
      |                            ^
a.cc:67:34: error: 'struct pr' has no member named 'x'
   67 |   if (a.x != b.x) return a.x < b.x;
      |                                  ^
a.cc:68:12: error: 'struct pr' has no member named 'y'
   68 |   return a.y < b.y;
      |            ^
a.cc:68:18: error: 'struct pr' has no member named 'y'
   68 |   return a.y < b.y;
      |                  ^
a.cc: In function 'void solve()':
a.cc:77:37: error: return-statement with a value, in function returning 'void' [-fpermissive]
   77 |     if(i == '7'){puts("YES");return 0;}
      |                                     ^