Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < n; ++i)
using namespace std;

int main() {
  int n, x, y, h;
  cin >> n;
  vector<tuple<int, int, int>> v(n);
  rep(i, n){
    int p, q, r;
    cin >> p >> q >> r;
    v[i] = make_tuple(a, b, c);
  }
  sort(v.begin(), v.end());
  rep(i, 101){
    rep(j, 101){
      x = i; y = j; h = abs(v[0].first-x)+abs(v[0].second-y)+v[0].third;
      bool b = 1;
      rep(k, n-1){
        if(abs(v[k+1].first-x)+abs(v[k+1].second-y)+v[k+1].third != h && v[k+1].third != 0){
          b = 0;
          break;
        }
      }
      if(b) break;
    }
  }
  cout << x << " " << y << " " << h << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: 'a' was not declared in this scope
   12 |     v[i] = make_tuple(a, b, c);
      |                       ^
a.cc:12:26: error: 'b' was not declared in this scope
   12 |     v[i] = make_tuple(a, b, c);
      |                          ^
a.cc:12:29: error: 'c' was not declared in this scope
   12 |     v[i] = make_tuple(a, b, c);
      |                             ^
a.cc:17:34: error: '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int> >, std::tuple<int, int, int> >::value_type' {aka 'class std::tuple<int, int, int>'} has no member named 'first'
   17 |       x = i; y = j; h = abs(v[0].first-x)+abs(v[0].second-y)+v[0].third;
      |                                  ^~~~~
a.cc:17:52: error: '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int> >, std::tuple<int, int, int> >::value_type' {aka 'class std::tuple<int, int, int>'} has no member named 'second'
   17 |       x = i; y = j; h = abs(v[0].first-x)+abs(v[0].second-y)+v[0].third;
      |                                                    ^~~~~~
a.cc:17:67: error: '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int> >, std::tuple<int, int, int> >::value_type' {aka 'class std::tuple<int, int, int>'} has no member named 'third'
   17 |       x = i; y = j; h = abs(v[0].first-x)+abs(v[0].second-y)+v[0].third;
      |                                                                   ^~~~~
a.cc:20:23: error: '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int> >, std::tuple<int, int, int> >::value_type' {aka 'class std::tuple<int, int, int>'} has no member named 'first'
   20 |         if(abs(v[k+1].first-x)+abs(v[k+1].second-y)+v[k+1].third != h && v[k+1].third != 0){
      |                       ^~~~~
a.cc:20:43: error: '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int> >, std::tuple<int, int, int> >::value_type' {aka 'class std::tuple<int, int, int>'} has no member named 'second'
   20 |         if(abs(v[k+1].first-x)+abs(v[k+1].second-y)+v[k+1].third != h && v[k+1].third != 0){
      |                                           ^~~~~~
a.cc:20:60: error: '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int> >, std::tuple<int, int, int> >::value_type' {aka 'class std::tuple<int, int, int>'} has no member named 'third'
   20 |         if(abs(v[k+1].first-x)+abs(v[k+1].second-y)+v[k+1].third != h && v[k+1].third != 0){
      |                                                            ^~~~~
a.cc:20:81: error: '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int> >, std::tuple<int, int, int> >::value_type' {aka 'class std::tuple<int, int, int>'} has no member named 'third'
   20 |         if(abs(v[k+1].first-x)+abs(v[k+1].second-y)+v[k+1].third != h && v[k+1].third != 0){
      |                                                                                 ^~~~~