criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <iostream>
#include <cmath>
#include <cstring>
#include <cstdio>
#include <queue>
#include <algorithm>
using namespace std;
#define MAX_L 2005
pair<long long, long long> a[55]; 
int main() {
	int n, kk;
	long long ans = 9223372036854775807;
	cin >> n >> kk;
	for(int i = 1; i <= n; i++)
		cin >> a[i].first >> a[i].second;
	for(int i = 1; i <= n; i++)
		for(int j = 1; j <= n; j++)
			for(int k = 1; k <= n; k++)
				for(int l = 1; l <= n; l++) {
					long long xi = a[i].first, xj = a[j].first, yi = a[k].second, yj = a[l].second;
					if(xi < xj)
						swap(xi, xj);
					if(yi < yj)
						swap(yi, yj);
					int count = 0;
					for(int p = 1; p <= n; p++)
						if(p[i].first <= xi && p[i].first >= xj && p[i].second <= yi && p[i].second >= yj)
							count ++;
					if(count == kk)
						ans = min((xi - xj) * (yi - yj), ans);
				}	
	cout << ans << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:53: error: invalid types 'int[int]' for array subscript
   27 |                                                 if(p[i].first <= xi && p[i].first >= xj && p[i].second <= yi && p[i].second >= yj)
      |                                                     ^
a.cc:27:73: error: invalid types 'int[int]' for array subscript
   27 |                                                 if(p[i].first <= xi && p[i].first >= xj && p[i].second <= yi && p[i].second >= yj)
      |                                                                         ^
a.cc:27:93: error: invalid types 'int[int]' for array subscript
   27 |                                                 if(p[i].first <= xi && p[i].first >= xj && p[i].second <= yi && p[i].second >= yj)
      |                                                                                             ^
a.cc:27:114: error: invalid types 'int[int]' for array subscript
   27 |                                                 if(p[i].first <= xi && p[i].first >= xj && p[i].second <= yi && p[i].second >= yj)
      |                                                                                                                  ^
Language: C++

#include <vector>
#include <queue>
#include <algorithm>
#include <iostream>
#include <string>
#include <ctime>
#include <map>
#include <stack>
#include <sstream>
#include <set>
#include <cmath>
#include <functional>

using namespace std;

bool secondComparison(const pair<long long int, long long int> &a, const pair<long long int, long long int> &b)
{
	return a.second<b.second;
}
int main(void)
{
	vector <pair<long long int,long long int>> cord;
	long long int x, y, res;
	int n, k;
	res = long long int(4*1e18);

	cin >> n >> k;
	for (int i = 0; i < n; i++)
	{
		cin >> x >> y;
		cord.push_back({ x,y });
	}

	sort(cord.begin(), cord.end());

	for (int i = 0; i <= n - k; i++)
	{
		long long maxx, minx, maxy, miny;
		maxx = -1000000000;
		minx = 1000000000;
		maxy = -1000000000;
		miny = 1000000000;
		for (int j = i; j < k + i; j++)
		{
			maxx = max(maxx, cord[j].first);
			minx = min(minx, cord[j].first);
			maxy = max(maxy, cord[j].second);
			miny = min(miny, cord[j].second);
		}
		long long h = abs(maxy - miny);
		long long w = abs(maxx - minx);
		if (h*w < res)
		{
			res = h*w;
		}
	}

	sort(cord.begin(), cord.end(), secondComparison);
	for (int i = 0; i <= n - k; i++)
	{
		long long maxx, minx, maxy, miny;
		maxx = -1000000000;
		minx = 1000000000;
		maxy = -1000000000;
		miny = 1000000000;
		for (int j = i; j < k + i; j++)
		{
			maxx = max(maxx, cord[j].first);
			minx = min(minx, cord[j].first);
			maxy = max(maxy, cord[j].second);
			miny = min(miny, cord[j].second);
		}
		long long h = abs(maxy - miny);
		long long w = abs(maxx - minx);
		if (h*w < res)
		{
			res = h*w;
		}
	}

	cout << res << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:15: error: expected primary-expression before 'long'
   25 |         res = long long int(4*1e18);
      |               ^~~~
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int k = sc.nextInt();
    long[][] arr = new long[n][2];
    for(int i = 0; i < n; i++) {
      long x = sc.nextLong();
      long y = sc.nextLong();
      arr[i] = {x, y};
    }
    Arrays.sort(arr, new Comparator<int[]>() {
      public int compare(int[] o1, int[] o2) {
        return o1[0] - o2[0];
      }
    });
    long ans = Long.MAX_VALUE;
    for(int i = 0; i < n - k + 1; i++) {
      long xmin = arr[i][0];
      long xmax = arr[i + k - 1][0];
      long ymin = arr[i][1];
      long ymax = arr[i][1];
      for(int j = 1; j < k; j++) {
        ymin = Math.min(ymin, arr[i + j][1]);
        ymax = Math.max(ymax, arr[i + j][1]);
      }
      long t = (xmax - xmin) * (ymax - ymin);
      ans = Math.min(ans, t);
    }
    System.out.println(ans);
  }
}

Compiler output:
Main.java:12: error: illegal start of expression
      arr[i] = {x, y};
               ^
Main.java:12: error: not a statement
      arr[i] = {x, y};
                ^
Main.java:12: error: ';' expected
      arr[i] = {x, y};
                 ^
Main.java:12: error: not a statement
      arr[i] = {x, y};
                   ^
Main.java:12: error: ';' expected
      arr[i] = {x, y};
                    ^
5 errors
Language: C++

#include <vector>
#include <queue>
#include <algorithm>
#include <iostream>
#include <string>
#include <ctime>
#include <map>
#include <stack>
#include <sstream>
#include <set>
#include <cmath>
#include <functional>
#include <limits>
using namespace std;

bool secondComparison(const pair<long long int, long long int> &a, const pair<long long int, long long int> &b)
{
	return a.second<b.second;
}
int main(void)
{
	vector <pair<long long int,long long int>> cord;
	long long int x, y, res;
	int n, k;
	res = LLONG_MAX;

	cin >> n >> k;
	for (int i = 0; i < n; i++)
	{
		cin >> x >> y;
		cord.push_back({ x,y });
	}

	sort(cord.begin(), cord.end());

	for (int i = 0; i <= n - k; i++)
	{
		long long maxx, minx, maxy, miny;
		maxx = -1000000000;
		minx = 1000000000;
		maxy = -1000000000;
		miny = 1000000000;
		for (int j = i; j < k + i; j++)
		{
			maxx = max(maxx, cord[j].first);
			minx = min(minx, cord[j].first);
			maxy = max(maxy, cord[j].second);
			miny = min(miny, cord[j].second);
		}
		long long h = abs(maxy - miny);
		long long w = abs(maxx - minx);
		if (h*w < res)
		{
			res = h*w;
		}
	}

	sort(cord.begin(), cord.end(), secondComparison);
	for (int i = 0; i <= n - k; i++)
	{
		long long maxx, minx, maxy, miny;
		maxx = -1000000000;
		minx = 1000000000;
		maxy = -1000000000;
		miny = 1000000000;
		for (int j = i; j < k + i; j++)
		{
			maxx = max(maxx, cord[j].first);
			minx = min(minx, cord[j].first);
			maxy = max(maxy, cord[j].second);
			miny = min(miny, cord[j].second);
		}
		long long h = abs(maxy - miny);
		long long w = abs(maxx - minx);
		if (h*w < res)
		{
			res = h*w;
		}
	}

	cout << res << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:15: error: 'LLONG_MAX' was not declared in this scope
   25 |         res = LLONG_MAX;
      |               ^~~~~~~~~
a.cc:13:1: note: 'LLONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
   12 | #include <functional>
  +++ |+#include <climits>
   13 | #include <limits>
Language: C++

#include "bits/stdc++.h"
#define in std::cin
#define out std::cout
#define rep(i, N) for (int i = 0; i < N; ++i)
typedef long long int LL;

LL N, K;
std::vector<std::pair<LL, LL>> xy;
LL ans;

int main()
{
	in >> N >> K;
	rep(i, N)
	{
		LL x, y;
		in >> x >> y;
		xy.push_back(std::make_pair(x, y));
	}

	std::sort(xy.begin(), xy.end());
	rep(i, N - K + 1)
	{
		LL max_x = xy[i].first, max_y = xy[i].second, min_x = xy[i].first, min_y = xy[i].second;
		for (int j = i; j < i + K; ++j)
		{
			max_x = std::max(max_x, xy[j].first);
			max_y = std::max(max_y, xy[j].second);
			min_x = std::min(min_x, xy[j].first);
			min_y = std::min(min_y, xy[j].second);
		}
		auto res = abs(max_x - min_x) * abs(max_y - min_y);
		if (i == 0)
		{
			ans = res;
		}
		ans = std::min(ans, res);
	}

	out << ans << std::endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:31: error: no matching function for call to 'min(LL&, int&)'
   37 |                 ans = std::min(ans, res);
      |                       ~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:37:31: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   37 |                 ans = std::min(ans, res);
      |                       ~~~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:37:31: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   37 |                 ans = std::min(ans, res);
      |                       ~~~~~~~~^~~~~~~~~~
Language: C++

#include<algorithm>
#include<queue>
#include<stdio.h>
#include<stdlib.h>
#include<vector>

using namespace std;

int main(void){
	long long K = 0, N = 0;
	long long x[55] = { 0 }, y[55] = { 0 };
	unsigned long long ans = 9223372036854775807i64;

	scanf("%lld%lld", &N, &K);
	for (int i = 0; i < N; i++){
		scanf("%lld%lld", &x[i], &y[i]);
	}

	for (int i = 0; i < N; i++){
		for (int j = 0; j < N; j++){
			unsigned long long a = 0;
			long long x1 = min(x[i], x[j]);
			long long x2 = max(x[i], x[j]);
			long long y1 = min(y[i], y[j]);
			long long y2 = max(y[i], y[j]);
			for (int k = 0; k < N; k++){
				if ((x1 <= x[k] && x[k] <= x2) && (y1 <= y[k] && y[k] <= y2))
					a++;
			}

			if (a >= K)
				ans = min(ans, (unsigned long long)((x2 - x1) * (y2 - y1)));

		}
	}
	printf("%llu\n", ans);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:34: error: unable to find numeric literal operator 'operator""i64'
   12 |         unsigned long long ans = 9223372036854775807i64;
      |                                  ^~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<algorithm>
#include<queue>
#include<stdio.h>
#include<stdlib.h>
#include<vector>

using namespace std;

int main(void){
	long long K = 0, N = 0;
	long long x[55] = { 0 }, y[55] = { 0 };
	unsigned long long ans = INT_MAX;

	scanf("%lld%lld", &N, &K);
	for (int i = 0; i < N; i++){
		scanf("%lld%lld", &x[i], &y[i]);
	}

	for (int i = 0; i < N; i++){
		for (int j = 0; j < N; j++){
			unsigned long long a = 0;
			long long x1 = min(x[i], x[j]);
			long long x2 = max(x[i], x[j]);
			long long y1 = min(y[i], y[j]);
			long long y2 = max(y[i], y[j]);
			for (int k = 0; k < N; k++){
				if ((x1 <= x[k] && x[k] <= x2) && (y1 <= y[k] && y[k] <= y2))
					a++;
			}

			if (a >= K)
				ans = min(ans, (unsigned long long)((x2 - x1) * (y2 - y1)));

		}
	}
	printf("%llu\n", ans);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:34: error: 'INT_MAX' was not declared in this scope
   12 |         unsigned long long ans = INT_MAX;
      |                                  ^~~~~~~
a.cc:5:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    4 | #include<stdlib.h>
  +++ |+#include <climits>
    5 | #include<vector>
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define x first
#define y second
#define dbg(x) cout << #x << '=' << x << '\n';
#define ll long long
#define pi pair<int,int>
#define pl pair<long long,long long>
#define lg length()
#define pb push_back
#define MAXN 100005
#define INF 1000000005
#define LINF 1000000000000000005

long long n,k,x[55],y[55],x1,y1,x2,y2,t,s=2000000000ll*2000000000ll+5ll;


int32_t main(){
    ios_base :: sync_with_stdio(0); cin.tie(); cout.tie();
    cin >> n >> k;
    for(int i=1;i<=n;i++){
        cin >> x[i] >> y[i];
    }
    for(int i=1;i<=n;i++){
        for(int j=1;j<=n;j++){
            for(int l=1;l<=n;l++){
                for(int r=1;r<=n;r++){
                    x1=min(x[i],x[j]); x2=max(x[i],x[j]);
                    y1=min(y[l],y[r]); y2=max(y[l],y[r]);
                    t=0;
                    for(int h=1;h<=n;h++){
                        if(x[h]>=x1 && x[h]<=x2 && y[h]>=y1 && y[h]<=y2) t++;
                    }
                    //cout << (x2-x1)*(y2-y1) << ' ' << t << '\n';
                    if(t>=k) s=min(s,(x2-x1)*(y2-y1));
                }
            }
        }
    }
    cout << s;
}


Compiler output:
a.cc:15:30: error: 'long long int y1' redeclared as different kind of entity
   15 | long long n,k,x[55],y[55],x1,y1,x2,y2,t,s=2000000000ll*2000000000ll+5ll;
      |                              ^~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:33,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:257:1: note: previous declaration 'double y1(double)'
  257 | __MATHCALL (y1,, (_Mdouble_));
      | ^~~~~~~~~~
a.cc: In function 'int32_t main()':
a.cc:29:23: error: assignment of function 'double y1(double)'
   29 |                     y1=min(y[l],y[r]); y2=max(y[l],y[r]);
      |                     ~~^~~~~~~~~~~~~~~
a.cc:32:56: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   32 |                         if(x[h]>=x1 && x[h]<=x2 && y[h]>=y1 && y[h]<=y2) t++;
      |                                                        ^
a.cc:35:49: error: invalid operands of types 'long long int' and 'double(double) noexcept' to binary 'operator-'
   35 |                     if(t>=k) s=min(s,(x2-x1)*(y2-y1));
      |                                               ~~^~~
      |                                               |  |
      |                                               |  double(double) noexcept
      |                                               long long int
Language: C++

#include<iostream>
using namespace std;
int main(){
  string s; cin >> s;
  reverse(s.begin(),s.end());
  s = s.substr(8);
  reverse(s.begin(),s.end());
  cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'reverse' was not declared in this scope
    5 |   reverse(s.begin(),s.end());
      |   ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  string s; cin >> s;
  s.reverse(s.begin(),s.end());
  s = s.substr(8);
  s.reverse(s.begin(),s.end());
  cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reverse'; did you mean 'reserve'?
    5 |   s.reverse(s.begin(),s.end());
      |     ^~~~~~~
      |     reserve
a.cc:7:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reverse'; did you mean 'reserve'?
    7 |   s.reverse(s.begin(),s.end());
      |     ^~~~~~~
      |     reserve
Language: C++

#include<iostream>
using namespace std;
int main(){
  string s; cin >> s;
  s.reverse();
  s = s.substr(8);
  s.reverse();
  cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reverse'; did you mean 'reserve'?
    5 |   s.reverse();
      |     ^~~~~~~
      |     reserve
a.cc:7:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'reverse'; did you mean 'reserve'?
    7 |   s.reverse();
      |     ^~~~~~~
      |     reserve
Language: C++

#include<iostream>#include<string>using  namespace  std ;int  main ( void )fs t r i n g  s ;cin>>s ;cout<<s . substr (0 ,  s . length ()

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>#include<string>using  namespace  std ;int  main ( void )fs t r i n g  s ;cin>>s ;cout<<s . substr (0 ,  s . length ()
      |                   ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
using namespace std;
string a;
int main()
{
    cin>>a;
    for(int s=0;s<a.size()-8;s++)cout<<a[s];
    cout<<endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before '}' token
    8 |     cout<<endl
      |               ^
      |               ;
    9 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string s; cin >> s; s -= "FESTIVAL";
  cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:25: error: no match for 'operator-=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'const char [9]')
    4 |   string s; cin >> s; s -= "FESTIVAL";
      |                       ~~^~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    string s;cin>>s;for(int i=0;i<s.size()-8;i++)cout<<a[i];cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:56: error: 'a' was not declared in this scope
    5 |     string s;cin>>s;for(int i=0;i<s.size()-8;i++)cout<<a[i];cout<<endl;
      |                                                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    string s;cin>>s;for(int i=0;i<s.size()-8;s++)cout<<a[i];cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:47: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    5 |     string s;cin>>s;for(int i=0;i<s.size()-8;s++)cout<<a[i];cout<<endl;
      |                                              ~^~
a.cc:5:56: error: 'a' was not declared in this scope
    5 |     string s;cin>>s;for(int i=0;i<s.size()-8;s++)cout<<a[i];cout<<endl;
      |                                                        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
char ch;
int main()
{
    cin>>ch;
    ch.erase(ch.length()-8,ch.length()-1);
    cout<<ch<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: request for member 'erase' in 'ch', which is of non-class type 'char'
    7 |     ch.erase(ch.length()-8,ch.length()-1);
      |        ^~~~~
a.cc:7:17: error: request for member 'length' in 'ch', which is of non-class type 'char'
    7 |     ch.erase(ch.length()-8,ch.length()-1);
      |                 ^~~~~~
a.cc:7:31: error: request for member 'length' in 'ch', which is of non-class type 'char'
    7 |     ch.erase(ch.length()-8,ch.length()-1);
      |                               ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string a;
    cin>>a;
    for(i=0;i<a.size()-8;i++)  cout<<a[i];
    cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'i' was not declared in this scope
    7 |     for(i=0;i<a.size()-8;i++)  cout<<a[i];
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,s,n) for(int i = (s); i < (n); i++)
#define all(v) begin(v), end(v)
#define allg(v) begin(v), end(v), greater<int>()



int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  
  string s;
  cin >> s;
  
  s.erase(s.size()-8)
  cout << s << "\n";

}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:22: error: expected ';' before 'cout'
   17 |   s.erase(s.size()-8)
      |                      ^
      |                      ;
   18 |   cout << s << "\n";
      |   ~~~~
Language: C++

#include<bits/stdc++.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long

using namespace std;

int main(){
  string s;cin>>s;
  cout<<s.substr(s.begin(), s.end()-8)<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: cannot convert 'std::__cxx11::basic_string<char>::iterator' to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
   10 |   cout<<s.substr(s.begin(), s.end()-8)<<endl;
      |                  ~~~~~~~^~
      |                         |
      |                         std::__cxx11::basic_string<char>::iterator
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3208:24: note:   initializing argument 1 of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 3208 |       substr(size_type __pos = 0, size_type __n = npos) const
      |              ~~~~~~~~~~^~~~~~~~~
Language: C++

#include<bits/stdc++.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long

using namespace std;

int main(){
  string s;cin>>s;
  cout<<s.substr(s.begin(), s.size()-8)<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: cannot convert 'std::__cxx11::basic_string<char>::iterator' to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
   10 |   cout<<s.substr(s.begin(), s.size()-8)<<endl;
      |                  ~~~~~~~^~
      |                         |
      |                         std::__cxx11::basic_string<char>::iterator
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3208:24: note:   initializing argument 1 of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 3208 |       substr(size_type __pos = 0, size_type __n = npos) const
      |              ~~~~~~~~~~^~~~~~~~~
Language: C++

#include<bits/stdc++.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long

using namespace std;

int main(){
  string s;cin>>s;
  cout<<s.substr(s.begin(), s.size()-8)<<endl
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: cannot convert 'std::__cxx11::basic_string<char>::iterator' to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
   10 |   cout<<s.substr(s.begin(), s.size()-8)<<endl
      |                  ~~~~~~~^~
      |                         |
      |                         std::__cxx11::basic_string<char>::iterator
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3208:24: note:   initializing argument 1 of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 3208 |       substr(size_type __pos = 0, size_type __n = npos) const
      |              ~~~~~~~~~~^~~~~~~~~
Language: C++

#include<bits/stdc++.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long

using namespace std;

int main(){
  string s;cin>>s;
  cout<<s.subbstr(s.begin(), s.size()-8)<<endl
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'subbstr'; did you mean 'substr'?
   10 |   cout<<s.subbstr(s.begin(), s.size()-8)<<endl
      |           ^~~~~~~
      |           substr
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	cin>>s;
  	for(int i=0;i<s.length()-8;i++){
    	
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:14: error: 's' was not declared in this scope
    4 |         cin>>s;
      |              ^
Language: C++

#inculde <iostream>
#include <algorithm>
using namespace std;
string s;
int main(){
  cin>>s;
  int n=s.size()-8;
  for(int i=0;i<n;i++)cout<<s[i];
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde <iostream>
      |  ^~~~~~~
      |  include
a.cc:4:1: error: 'string' does not name a type
    4 | string s;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>s;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <algorithm>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:6:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
a.cc:8:23: error: 'cout' was not declared in this scope
    8 |   for(int i=0;i<n;i++)cout<<s[i];
      |                       ^~~~
a.cc:8:23: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  string s;
  cin >> s;
  cout << s.substr(0,s.size()-8) << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:7:42: error: expected '}' at end of input
    7 |   cout << s.substr(0,s.size()-8) << endl;
      |                                          ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

include<bits/stdc++.h>
using namespace std;

int main(){
  string s;
cin >> s;
cout << s.substr(0,s.size()-7) << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin >> s;
      | ^~~
a.cc:6:8: error: 's' was not declared in this scope
    6 | cin >> s;
      |        ^
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout << s.substr(0,s.size()-7) << endl;
      | ^~~~
a.cc:7:35: error: 'endl' was not declared in this scope
    7 | cout << s.substr(0,s.size()-7) << endl;
      |                                   ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(void){
  string s;
  cin >> s;
  cout << erase(s.size() - 9,8);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'erase' was not declared in this scope
    6 |   cout << erase(s.size() - 9,8);
      |           ^~~~~
Language: C++

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

int int_len(int n) {
  int s=0;
  while(n!=0) s++, n/=10;
  return s;
}

int int_sum(int n) {
  int m=0,s=0,a=n;
  while(a!=0) s++, a/=10;
  for(int i=s-1;i>=0;i--) m+=n/((int)pow(10,i))-(n/((int)pow(10,i+1)))*10;
  return m;
}


int vec_sum(vector<int> v){
  int n=0;
  for(int i=0;i<v.size();i++) n+=v[i];
  return n;
}
/////////////////////////////
int main() {
  string s;
  cin>>s;
  s=substr(0,s.size()-8);
  cout<<s<<endl;
}
/////////////////////////////

Compiler output:
a.cc: In function 'int main()':
a.cc:28:5: error: 'substr' was not declared in this scope; did you mean 'strstr'?
   28 |   s=substr(0,s.size()-8);
      |     ^~~~~~
      |     strstr
Language: C++

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

int int_len(int n) {
  int s=0;
  while(n!=0) s++, n/=10;
  return s;
}

int int_sum(int n) {
  int m=0,s=0,a=n;
  while(a!=0) s++, a/=10;
  for(int i=s-1;i>=0;i--) m+=n/((int)pow(10,i))-(n/((int)pow(10,i+1)))*10;
  return m;
}


int vec_sum(vector<int> v){
  int n=0;
  for(int i=0;i<v.size();i++) n+=v[i];
  return n;
}

int main() {
  string s;
  cin>>s;
  cout<<s[::s.size()-9]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:13: error: '::s' has not been declared
   28 |   cout<<s[::s.size()-9]<<endl;
      |             ^
Language: C++

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

int int_len(int n) {
  int s=0;
  while(n!=0) s++, n/=10;
  return s;
}

int int_sum(int n) {
  int m=0,s=0,a=n;
  while(a!=0) s++, a/=10;
  for(int i=s-1;i>=0;i--) m+=n/((int)pow(10,i))-(n/((int)pow(10,i+1)))*10;
  return m;
}


int vec_sum(vector<int> v){
  int n=0;
  for(int i=0;i<v.size();i++) n+=v[i];
  return n;
}

int main() {
  string s;
  cin>>s;
  cout<<s[::-8]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:13: error: expected id-expression before '-' token
   28 |   cout<<s[::-8]<<endl;
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string s;
  cin>>s;
  for(int i=0;i<s.size()-78i++){
    cout<<s.at(i);
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    7 |   for(int i=0;i<s.size()-78i++){
      |                          ~~~^~
a.cc:7:31: error: expected ';' before ')' token
    7 |   for(int i=0;i<s.size()-78i++){
      |                               ^
      |                               ;
Language: C

#include <stdio.h>
int main(void){
char s[100
       int kokomade,count;
  scanf("%s",s);
  for(count=0;s[count]!='\0';count++){
  if(s[count]=='f'){kokomade=count;}
  }
       printf("%.*s",kokomade,s);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:11: error: expected ']' before 'int'
    3 | char s[100
      |           ^
      |           ]
    4 |        int kokomade,count;
      |        ~~~ 
main.c:11:1: error: expected declaration or statement at end of input
   11 | }
      | ^
Language: C++

#include<iostream> #include<string> int main(){std::string s; std::cin>>s; std::cout<<s.substr(0,s.length()-8);}

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include<iostream> #include<string> int main(){std::string s; std::cin>>s; std::cout<<s.substr(0,s.length()-8);}
      |                    ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>
#include<string>

int main(){
  string s;
  std::cin>>s;
  std::cout<<s.substr(0,s.length()-8);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:13: error: 's' was not declared in this scope
    6 |   std::cin>>s;
      |             ^
Language: C++

#include<iostream>
#include<cmath>
#include<numeric>
#include<functional>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<n;i++)
#define ll long long
#define modbig (10*10*10*10*10*10*10*10*10+7)
using namespace std;

int main(){
  string s;
  cin>>s;
  cout<<substr(0,s.length()-8);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'substr' was not declared in this scope
   18 |   cout<<substr(0,s.length()-8);
      |         ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string a;
  cin >> a;
  for (int i = 0; i < a.sizeof(); i++) {
    if (i == a.sizeof() - 9) {
      a[i] = ' ';
    }
  }
  cout << a;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: expected unqualified-id before 'sizeof'
    6 |   for (int i = 0; i < a.sizeof(); i++) {
      |                         ^~~~~~
a.cc:6:25: error: expected ';' before 'sizeof'
    6 |   for (int i = 0; i < a.sizeof(); i++) {
      |                         ^~~~~~
      |                         ;
a.cc:6:32: error: expected primary-expression before ')' token
    6 |   for (int i = 0; i < a.sizeof(); i++) {
      |                                ^
a.cc:6:33: error: expected ')' before ';' token
    6 |   for (int i = 0; i < a.sizeof(); i++) {
      |       ~                         ^
      |                                 )
a.cc:6:35: error: 'i' was not declared in this scope
    6 |   for (int i = 0; i < a.sizeof(); i++) {
      |                                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	string S; cin >> S; 
	int N = S.size(); 
	cout << substr(S, 0, N - 8) << endl; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'substr' was not declared in this scope; did you mean 'strstr'?
    6 |         cout << substr(S, 0, N - 8) << endl;
      |                 ^~~~~~
      |                 strstr
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <cmath>
using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  string a,b,c;
  cin >> a;
  
  cout << a.substr(0,a.length-9) <<endl;
  
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:24: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   14 |   cout << a.substr(0,a.length-9) <<endl;
      |                      ~~^~~~~~
      |                              ()
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>

#define _CRT_SECURE_NO_WARNINGS
#define TLong long long 

// fact(n)
int fact(int n){
	if(n == 1)	return 1;
	else return (n * fact(n - 1));
}

// combination(n,r)
int combination(int n, int r){
	if(r == 0 || r == n)	return 1;
	else if(r == 1)	return n;
	return (combination(n - 1, r - 1) + combination(n - 1, r));
}

// gcd(a,b)
int gcd(int a,int b){
	int ret;
	ret = (b == 0) ? a : gcd(b, a % b);
	return ret;
}

// lcm(a.b)
int lcm(int a,int b){
	return (a * b) / gcd(a,b);
}

// qsort(array, size, sizeof(int),comp);
int comp(const int *a,const int *b){
	return (*a - *b);
}

// append(array,*size,addNum)
void append(int *array,int *size,int num){
	realloc(array, sizeof(int) * (*size + 1));
	array[(*size)] = num;
	++(*size);
}

// pop(array,*size) & nongetpop(array,*size)
int pop(int *array,int *size){
	int temp = array[(*size - 1)];
	realloc(array,sizeof(int) * (*size - 1));
	--(*size);
	return temp;
}

void nongetpop(int *array,int *size){
	realloc(array,sizeof(int) * (*size - 1));
	--(*size);
}

int main(int argc, char const *argv[])  
	char str[57];
	scanf("%s",str);
	for(int i = 0; i < strlen(str) - 8; ++i){
	printf("%c",str[i]);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:62:9: error: expected declaration specifiers before 'scanf'
   62 |         scanf("%s",str);
      |         ^~~~~
main.c:63:9: error: expected declaration specifiers before 'for'
   63 |         for(int i = 0; i < strlen(str) - 8; ++i){
      |         ^~~
main.c:63:24: error: expected declaration specifiers before 'i'
   63 |         for(int i = 0; i < strlen(str) - 8; ++i){
      |                        ^
main.c:63:45: error: expected declaration specifiers before '++' token
   63 |         for(int i = 0; i < strlen(str) - 8; ++i){
      |                                             ^~
main.c:60:5: error: old-style parameter declarations in prototyped function definition
   60 | int main(int argc, char const *argv[])
      |     ^~~~
main.c:67: error: expected '{' at end of input
main.c: In function 'append':
main.c:42:9: warning: ignoring return value of 'realloc' declared with attribute 'warn_unused_result' [-Wunused-result]
   42 |         realloc(array, sizeof(int) * (*size + 1));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function 'pop':
main.c:50:9: warning: ignoring return value of 'realloc' declared with attribute 'warn_unused_result' [-Wunused-result]
   50 |         realloc(array,sizeof(int) * (*size - 1));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function 'nongetpop':
main.c:56:9: warning: ignoring return value of 'realloc' declared with attribute 'warn_unused_result' [-Wunused-result]
   56 |         realloc(array,sizeof(int) * (*size - 1));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#include <unordered_map>
typedef long long ll;
#define rep(i,m,n) for(ll i = (m); i < (n); i++)
#define rrep(i,m,n) for(ll i = (m); i >= (n); i--)
#define print(x) cout << (x) << endl;
#define print2(x,y) cout << (x) << " " << (y) << endl;
#define printa(x,n) for(ll i = 0; i < n; i++){ cout << (x[i]) << " \n"[i == n-1];}
#define printp(x,n) for(ll i = 0; i < n; i++){ cout << "(" << x[i].first << ", " << x[i].second << ") "; } cout << endl;
#define INF (1e18)
using namespace std;
const ll MOD = 1e9 + 7;
typedef pair<ll, ll> lpair;

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    string s;
    cin >> s;
    print(s.substr(0, s.size()-8);
}


Compiler output:
a.cc:21:2: error: unterminated argument list invoking macro "print"
   21 | }
      |  ^
a.cc: In function 'int main()':
a.cc:20:5: error: 'print' was not declared in this scope
   20 |     print(s.substr(0, s.size()-8);
      |     ^~~~~
a.cc:20:10: error: expected '}' at end of input
   20 |     print(s.substr(0, s.size()-8);
      |          ^
a.cc:15:11: note: to match this '{'
   15 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main() {
	string s; cin >> s;
	cout << s.substr(0, s.size - 8) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:31: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    6 |         cout << s.substr(0, s.size - 8) << endl;
      |                             ~~^~~~
      |                                   ()
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(void){
string s;
cin>>s;
cout<<s.substr(0,s.length()?8)<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: expected ':' before ')' token
    7 | cout<<s.substr(0,s.length()?8)<<endl;
      |                              ^
      |                              :
a.cc:7:30: error: expected primary-expression before ')' token
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  string s;	cin>>s;
  s -= "FESTIVAL"s;
  cout<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: no match for 'operator-=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::__cxx11::basic_string<char>')
    6 |   s -= "FESTIVAL"s;
      |   ~~^~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  string s;	cin>>s;
  s -= "FESTIVAL".c_str();
  cout<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: request for member 'c_str' in '"FESTIVAL"', which is of non-class type 'const char [9]'
    6 |   s -= "FESTIVAL".c_str();
      |                   ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  string s;	cin>>s;
  s -= "FESTIVAL";
  cout<<s<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: no match for 'operator-=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'const char [9]')
    6 |   s -= "FESTIVAL";
      |   ~~^~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;
char a[150];

int main()
{
	cin>>a;
	int xxx=strlen(a);
	for(int i=0;i<xxx-8;i++) cout<<a[i];
	return 0;	
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'strlen' was not declared in this scope
    9 |         int xxx=strlen(a);
      |                 ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <cstdio>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
int mian()
{
	string a;
	cin>>a;
	for(int i=0;i<a.length()-8;i++)
	{
		cout<<a[i];
	}
	return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
using namespace std;
string st;
int main()
{
    cin>>st;
    for(int i=0;i<s.length()-8;i++) cout<<st[i];
    cout<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 's' was not declared in this scope
    7 |     for(int i=0;i<s.length()-8;i++) cout<<st[i];
      |                   ^
Language: C++

#include<cstdio>
#include<cstring>
using namespace std;

int main()
{
    char s[55];
    gets(s);
    int size = strlen(s) - 8;
    for(int i = 0; i ^ size; ++i)
        putc(s[i], stdout);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |     gets(s);
      |     ^~~~
      |     getw
Language: C++

#include <bits/stdc++.h>
#define mod 1000000009
using namespace std;

typedef long long ll;

char s[1000005]
int main()
{
    scanf("%s",s);
    int len=strlen(s);
    for(int i=0;i<len-8;i++)
        printf("%c",s[i]);
    return 0;
}

Compiler output:
a.cc:8:1: error: expected initializer before 'int'
    8 | int main()
      | ^~~
Language: C++

#include<cstdio>
int main()
{
    //fuck you bitch!!!!!!!!!!!!!!!
    char a[51];
    scanf("%s", a);
    for(int i = 0; i < strlen(a) - 8; i ++)
    printf("%c", a[i]);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: 'strlen' was not declared in this scope
    7 |     for(int i = 0; i < strlen(a) - 8; i ++)
      |                        ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<cstdio>
  +++ |+#include <cstring>
    2 | int main()
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
string s;
int main()
{
	getline(cin,s);
	for(int i=0;i<s.size-8;i++)
	{
		cout<<s[i];
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    8 |         for(int i=0;i<s.size-8;i++)
      |                       ~~^~~~
      |                             ()
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
	getline(cin,s);
	for(int i=0;i<s.size-8;i++)
	{
		cout<<s[i];
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    7 |         for(int i=0;i<s.size-8;i++)
      |                       ~~^~~~
      |                             ()
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
	cin>>s;
	for(int i=0;i<s.size-8;i++)
	{
		cout<<s[i];
	}
	cout<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    7 |         for(int i=0;i<s.size-8;i++)
      |                       ~~^~~~
      |                             ()
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
	getline(cin,s);
	for(int i=0;i<s.size-8)
	{
		printf("%s",s[i]);
	}
	printf("\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    7 |         for(int i=0;i<s.size-8)
      |                       ~~^~~~
      |                             ()
a.cc:7:31: error: expected ';' before ')' token
    7 |         for(int i=0;i<s.size-8)
      |                               ^
      |                               ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
	cin>>s;
	for(int i=0;i<s.size-8)
	{
		cout<<s[i];
	}
	cout<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    7 |         for(int i=0;i<s.size-8)
      |                       ~~^~~~
      |                             ()
a.cc:7:31: error: expected ';' before ')' token
    7 |         for(int i=0;i<s.size-8)
      |                               ^
      |                               ;