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

#include<iostream>
using namespace std;
int main()
{
	int l;
	char a[1000];
	cin>>a;
	l=strlen(a);
	for(int i=0;i<l-8;i++)
	{
		cout<<a[i];
	}
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int a[100000],i,k;
int main()
{scanf("%s",a);
 k=strlen(a);
 k=k-8;
 for(i=0;i<k;i++)
  cout<<a[i];
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: cannot convert 'int*' to 'const char*'
    6 |  k=strlen(a);
      |           ^
      |           |
      |           int*
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C

//入出力等基本
#include <iostream>
#include <vector>
#include <map>
#include <string>

#define 中心() main()
#define 返 return
#define 入力(a) cin >> a
#define 出力(a) cout << a << endl
#define 再帰(s,t) for(整数 s = 0; s<整数(t);s += 1)
#define 如果(a) if(a)
#define 他 else
#define 場合(a) while(a)
#define 先(a) a.first
#define 後(a) a.second
#define 自動 auto
#define 定数 const
#define 部分文字列(m,s,t) m.substr(s,t)
#define 測長(a) a.length()
#define 大小(a) a.size()
#define 付加(a,b) a.push_back(b)
#define 真 true
#define 偽 false

using namespace std;

typedef int 整;
typedef void 無;
typedef long long 整数;
typedef vector<整数> 整数配列;
typedef map<整数,整数> 整辞書;
typedef string 文字列;
typedef vector<整数配列> 二次元整数配列;
typedef bool 真偽;

整数 頂点数, 辺数;
二次元整数配列 図(100010,整数配列());
整数配列 色色(100010);

真偽 二部図判定(整数 頂点,整数 色){
    色色[頂点]=色;
    再帰(a,大小(図[頂点])){
        如果(色色[図[頂点][a]] == 色) 返 偽;
        如果(色色[図[頂点][a]] == 0 && !二部図判定(図[頂点][a],-色)) 返 偽;
    }
    返 真;
}

整 中心(){
    入力(頂点数);
    入力(辺数);
    
    再帰(a,辺数){
        整数 始点, 終点;
        入力(始点);
        入力(終点);
        始点--;
        終点--;
        付加(図[始点],終点);
        付加(図[終点],始点);
    }
     
    整数 答;
    如果(二部図判定(0,1)){
        整数 数=0;
        再帰(a,頂点数){
            如果(色色[a]==1) 数++;
        }
        答=数*(頂点数-数)-辺数;
    }
    他{
        答=(頂点数*(頂点数-1))/2-辺数;
    }
    
    出力(答);
    返 0;
}

Compiler output:
main.c:2:10: fatal error: iostream: No such file or directory
    2 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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

string s;
void festival(){
  cin>>s;
  for(int i=0;i<s.size()-8;i++){
    cout<<s[i];
  }
  cout<<endl;
}

int main(){
  festival();
}

Compiler output:
a.cc:1:10: fatal error: bits/stdc++/h: No such file or directory
    1 | #include <bits/stdc++/h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

//cout << ans << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:39: error: expected ';' before 'cout'
    9 |         rep(i,s.size()-8) cout << s[i]
      |                                       ^
      |                                       ;
   10 |         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;i++)cout<<s[i];
  cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: 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++)cout<<s[i];
      |                 ~~^~~~
      |                       ()
Language: C++

#include <iostream>
#include <string>
int main() {
std::string S;
std::cin >> S;
for(int i=0;i<S.size()-8;i++)
 std::cout << S[i];
std::cout << std:endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: found ':' in nested-name-specifier, expected '::'
    8 | std::cout << std:endl;
      |                 ^
      |                 ::
Language: C++

#include <iostream>
#include <string>
int main() {
std::string S;
std::cin >> S;
for(int i=0;i<S.size()-8;i++)
 std::cout << S[i];
std::cout << std:endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: found ':' in nested-name-specifier, expected '::'
    8 | std::cout << std:endl;
      |                 ^
      |                 ::
a.cc:8:23: error: expected '}' at end of input
    8 | std::cout << std:endl;
      |                       ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include<cstdio>
#include<math.h>
#include<map>
#include<set>
#include<queue>
#include<vector>
using namespace std;

int main() {
	string s;
	cin >> s;
	s.erase(s.size() - 8);
	cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'string' was not declared in this scope
   10 |         string s;
      |         ^~~~~~
a.cc:6:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    5 | #include<queue>
  +++ |+#include <string>
    6 | #include<vector>
a.cc:11:9: error: 'cin' was not declared in this scope
   11 |         cin >> s;
      |         ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include<queue>
  +++ |+#include <iostream>
    6 | #include<vector>
a.cc:11:16: error: 's' was not declared in this scope
   11 |         cin >> s;
      |                ^
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << s << endl;
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:22: error: 'endl' was not declared in this scope
   13 |         cout << s << endl;
      |                      ^~~~
a.cc:6:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    5 | #include<queue>
  +++ |+#include <ostream>
    6 | #include<vector>
Language: C++

#DDCC -> Yes , else No

#reference:
#https://beta.atcoder.jp/contests/ddcc2017-qual/submissions/1661752
(a,b,c,d) = input()
print(['No','Yes'][a==b!=c==d])

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #DDCC
    1 | #DDCC -> Yes , else No
      |  ^~~~
a.cc:3:2: error: invalid preprocessing directive #reference
    3 | #reference:
      |  ^~~~~~~~~
a.cc:4:2: error: invalid preprocessing directive #https
    4 | #https://beta.atcoder.jp/contests/ddcc2017-qual/submissions/1661752
      |  ^~~~~
a.cc:6:8: warning: multi-character character constant [-Wmultichar]
    6 | print(['No','Yes'][a==b!=c==d])
      |        ^~~~
a.cc:6:13: warning: multi-character character constant [-Wmultichar]
    6 | print(['No','Yes'][a==b!=c==d])
      |             ^~~~~
a.cc:5:3: error: expected ')' before ',' token
    5 | (a,b,c,d) = input()
      | ~ ^
      |   )
a.cc:5:5: error: expected constructor, destructor, or type conversion before ',' token
    5 | (a,b,c,d) = input()
      |     ^
a.cc:5:7: error: expected constructor, destructor, or type conversion before ',' token
    5 | (a,b,c,d) = input()
      |       ^
a.cc:5:9: error: expected constructor, destructor, or type conversion before ')' token
    5 | (a,b,c,d) = input()
      |         ^
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main()
{
  int n;
  cin >> n;
  int d[n-1];
  bool flag[n-1];
  bool ans = true;
  for(int i = 0;i < n;i++){
    cin >> d[i];
    flag[i] = true
  } 
  int m;
  cin >> m;
  int t[m-1];
  for(int j = 0;j < m;j++){
    cin >> t[j];
    for(int k = 0;k < n;k++){
      if(t[j] == d[k]){
        flag[k] = false;
      }else{
        ans = false;
      }
    }
  }
  if (ans){
    cout << "YES\n";
  }else{
    cout << "NO\n";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: expected ';' before '}' token
   14 |     flag[i] = true
      |                   ^
      |                   ;
   15 |   }
      |   ~
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main()
{
  string str = "FESTIVAL";
  string ret;
  cin >> ret;
  string ans = ret - str;
  cout << ans << "\n";
  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   10 |   string ans = ret - str;
      |                ~~~ ^ ~~~
      |                |     |
      |                |     basic_string<[...]>
      |                basic_string<[...]>
In file included from /usr/include/c++/14/string:48,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:618:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__y.base() - __x.base())) std::operator-(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
  618 |     operator-(const reverse_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:618:5: note:   template argument deduction/substitution failed:
a.cc:10:22: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
   10 |   string ans = ret - str;
      |                      ^~~
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__x.base() - __y.base())) std::operator-(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
 1790 |     operator-(const move_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note:   template argument deduction/substitution failed:
a.cc:10:22: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
   10 |   string ans = ret - str;
      |                      ^~~
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main()
{
  string str = "FESTIVAL";
  string ret;
  cin >> ret;
  cout << ret - str << "\n";
  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   10 |   cout << ret - str << "\n";
      |           ~~~ ^ ~~~
      |           |     |
      |           |     basic_string<[...]>
      |           basic_string<[...]>
In file included from /usr/include/c++/14/string:48,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:618:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__y.base() - __x.base())) std::operator-(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
  618 |     operator-(const reverse_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:618:5: note:   template argument deduction/substitution failed:
a.cc:10:17: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>'
   10 |   cout << ret - str << "\n";
      |                 ^~~
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__x.base() - __y.base())) std::operator-(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
 1790 |     operator-(const move_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note:   template argument deduction/substitution failed:
a.cc:10:17: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>'
   10 |   cout << ret - str << "\n";
      |                 ^~~
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main()
{
  string str = "FESTIVAL"
  string ret;
  cin >> ret;
  cout << ret - str << "\n";
  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'string'
    8 |   string ret;
      |   ^~~~~~
a.cc:9:10: error: 'ret' was not declared in this scope
    9 |   cin >> ret;
      |          ^~~
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main()
{
  string str = "FESTIVAL"
  string ret;
  cin >> ret;
  cout << ret - str << \n;
  return 0;

}

Compiler output:
a.cc:10:24: error: stray '\' in program
   10 |   cout << ret - str << \n;
      |                        ^
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'string'
    8 |   string ret;
      |   ^~~~~~
a.cc:9:10: error: 'ret' was not declared in this scope
    9 |   cin >> ret;
      |          ^~~
a.cc:10:25: error: 'n' was not declared in this scope
   10 |   cout << ret - str << \n;
      |                         ^
Language: C++

#include <iostraem>
#include <string>
using namespace std;

int main()
{
  string str = "FESTIVAL"
  string ret;
  cin >> ret;
  cout << ret - str << \n;
  return 0;

}

Compiler output:
a.cc:1:10: fatal error: iostraem: No such file or directory
    1 | #include <iostraem>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

/*Saidur Rahman Sajol:A weirdo*/
  /*Dept. of CSE,IUBAT(162)*/
/*---------------------------*/

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

#define PI 2*acos(0.0)
#define l long long
#define ll long long 
#define ul unsigned long
#define ull unsigned long long

ull minimum(ull a,ull b){
  return (a<b)?a:b;
}
ull maximum(ull a,ull b){
  return (a>b)?a:b;
}
ull great(ull a,ull b){
	if(b==0) return a;
  return great(b,a%b);
}

int main(){
	char s[101];
	gets(s);
	int len=strlen(s);
	vector<char>pb;
	vector<char>::iterator ps;
	for(int i=len-9;i>=0;i--){
		pb.push_back(s[i]);
	}
	reverse(pb.begin(),pb.end());
	for(ps=pb.begin();ps!=pb.end();ps++){
		cout<<*ps;
	}
	return 0;
}


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

#include<cstdio>
struct edge{
	int to,next;
}e[999999999];
int fa[999999999],k=1,color[999999999],head[999999999];
int bw[3];
inline void addedge(int u,int v){
	e[k]=(edge){v,head[u]};
	head[u]=k++;
}
inline void add(int u,int v){
	addedge(u,v); addedge(v,u);
}
bool tu(int p){
	for(int i=head[p];i!=0;i=e[i].next){
        int v=e[i].to;
        if(color[v]==color[p]) return false;
        if(color[v]==0){
        	color[v]=3-color[p];
        	bw[color[v]]++;
        	if(!tu(v)) return false;
		}
    }
    return true;
}
int main(){
	int n,m;
	scanf("%d%d",&n,&m);
	for(int i=0;i<m;i++){
		int a,b;
		scanf("%d%d",&a,&b);
		add(a,b);
	}
	color[1]=1;
	bw[1]++;
	if(tu(1)) printf("%d",bw[1]*bw[2]-m);
	else printf("%d",n*(n-1)/2-m);
}

Compiler output:
/tmp/ccD2j9zp.o: in function `tu(int)':
a.cc:(.text+0x1b): relocation truncated to fit: R_X86_64_PC32 against symbol `head' defined in .bss section in /tmp/ccD2j9zp.o
a.cc:(.text+0x54): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccD2j9zp.o
a.cc:(.text+0x6b): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccD2j9zp.o
a.cc:(.text+0x90): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccD2j9zp.o
a.cc:(.text+0xaf): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccD2j9zp.o
a.cc:(.text+0xcf): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccD2j9zp.o
a.cc:(.text+0xe6): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccD2j9zp.o
a.cc:(.text+0xfb): relocation truncated to fit: R_X86_64_PC32 against symbol `bw' defined in .bss section in /tmp/ccD2j9zp.o
a.cc:(.text+0x112): relocation truncated to fit: R_X86_64_PC32 against symbol `bw' defined in .bss section in /tmp/ccD2j9zp.o
/tmp/ccD2j9zp.o: in function `main':
a.cc:(.text+0x1c8): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccD2j9zp.o
a.cc:(.text+0x1d2): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
Language: C++

#include<cstdio>
typedef unsigned long long ull;
struct edge{
	unsigned long long to,next;
}e[999999999];
unsigned long long fa[999999999],k=1,color[999999999],head[999999999];
unsigned long long bw[3];
inline void addedge(unsigned long long u,unsigned long long v){
	e[k]=(edge){v,head[u]};
	head[u]=k++;
}
inline void add(unsigned long long u,unsigned long long v){
	addedge(u,v); addedge(v,u);
}
bool tu(unsigned long long p){
	for(unsigned long long i=head[p];i!=0;i=e[i].next){
        unsigned long long v=e[i].to;
        if(color[v]==color[p]) return false;
        if(color[v]==0){
        	color[v]=3-color[p];
        	bw[color[v]]++;
        	if(!tu(v)) return false;
		}
    }
    return true;
}
int main(){
	freopen("data.txt","r",stdin);
	unsigned long long n,m;
	scanf("llud%llud",&n,&m);
	for(unsigned long long i=0;i<m;i++){
		unsigned long long a,b;
		scanf("%llud%llud",&a,&b);
		add(a,b);
	}
	color[1]=1;
	bw[1]++;
	if(tu(1)) printf("%llud",bw[1]*bw[2]-m);
	else printf("%llud",n*(n-1)/2-m);
	fclose(stdin);
}


Compiler output:
/tmp/ccpsOmsW.o: in function `tu(unsigned long long)':
a.cc:(.text+0x1b): relocation truncated to fit: R_X86_64_PC32 against symbol `head' defined in .bss section in /tmp/ccpsOmsW.o
a.cc:(.text+0x55): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccpsOmsW.o
a.cc:(.text+0x6c): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccpsOmsW.o
a.cc:(.text+0x92): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccpsOmsW.o
a.cc:(.text+0xb2): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccpsOmsW.o
a.cc:(.text+0xd4): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccpsOmsW.o
a.cc:(.text+0xeb): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccpsOmsW.o
a.cc:(.text+0xfe): relocation truncated to fit: R_X86_64_PC32 against symbol `bw' defined in .bss section in /tmp/ccpsOmsW.o
a.cc:(.text+0x115): relocation truncated to fit: R_X86_64_PC32 against symbol `bw' defined in .bss section in /tmp/ccpsOmsW.o
/tmp/ccpsOmsW.o: in function `main':
a.cc:(.text+0x1fb): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccpsOmsW.o
a.cc:(.text+0x206): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
Language: C++

#include<cstdio>
struct edge{
	unsigned long long to,next;
}e[999999999];
unsigned long long fa[999999999],k=1,color[999999999],head[999999999];
unsigned long long bw[3];
inline void addedge(unsigned long long u,unsigned long long v){
	e[k]=(edge){v,head[u]};
	head[u]=k++;
}
inline void add(unsigned long long u,unsigned long long v){
	addedge(u,v); addedge(v,u);
}
bool tu(unsigned long long p){
	for(unsigned long long i=head[p];i!=0;i=e[i].next){
        unsigned long long v=e[i].to;
        if(color[v]==color[p]) return false;
        if(color[v]==0){
        	color[v]=3-color[p];
        	bw[color[v]]++;
        	if(!tu(v)) return false;
		}
    }
    return true;
}
int main(){
	freopen("data.txt","r",stdin);
	unsigned long long n,m;
	scanf("%d%d",&n,&m);
	for(unsigned long long i=0;i<m;i++){
		unsigned long long a,b;
		scanf("%d%d",&a,&b);
		add(a,b);
	}
	color[1]=1;
	bw[1]++;
	if(tu(1)) printf("%d",bw[1]*bw[2]-m);
	else printf("%d",n*(n-1)/2-m);
	fclose(stdin);
}


Compiler output:
/tmp/ccOMld6I.o: in function `tu(unsigned long long)':
a.cc:(.text+0x1b): relocation truncated to fit: R_X86_64_PC32 against symbol `head' defined in .bss section in /tmp/ccOMld6I.o
a.cc:(.text+0x55): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccOMld6I.o
a.cc:(.text+0x6c): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccOMld6I.o
a.cc:(.text+0x92): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccOMld6I.o
a.cc:(.text+0xb2): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccOMld6I.o
a.cc:(.text+0xd4): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccOMld6I.o
a.cc:(.text+0xeb): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccOMld6I.o
a.cc:(.text+0xfe): relocation truncated to fit: R_X86_64_PC32 against symbol `bw' defined in .bss section in /tmp/ccOMld6I.o
a.cc:(.text+0x115): relocation truncated to fit: R_X86_64_PC32 against symbol `bw' defined in .bss section in /tmp/ccOMld6I.o
/tmp/ccOMld6I.o: in function `main':
a.cc:(.text+0x1fb): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccOMld6I.o
a.cc:(.text+0x206): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
typedef pair<ll, P> PP;

static const double EPS = 1e-8;
static const double PI = 4.0 * atan(1.0);
static const ll INF = 1023456789;

#define REP(i,n)	for(int i=0;i<n;++i)
#define REPR(i,n)	for(int i=n-1;i>=0;--i)
#define FOR(i,s,n)	for(int i=s;i<n;++i)
#define FORR(i,s,n)	for(int i=n-1;i>=s;--i)
#define ALL(c)		(c).begin(),(c).end()
#define CLEAR(v)	memset(v,0,sizeof(v))
#define MP(a,b)		make_pair((a),(b))
#define ABS(a)		((a)>0?(a):-(a))
#define F			first
#define S			second

int main(int argc, char **argv) {
	string s;
	cin >> s;
	cout << s.substring(0, s.length() - 8) << endl;
	return 0;
}


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

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


int main(){
	int i,j;
	int m,n;
	ll a[100010],b[100010];
	map<int,int>mpa,mpb;
	scanf("%d",&m);
	rep(i,0,m){
		scanf("%d",&a[i]);
	}
	scanf("%d",&n);
	rep(j,0,n){
		scanf("%d",&b[j]);
	}
	rep(i,0,m){
		mpa[a[i]]++;
	}
	rep(j,0,n){
		mpb[b[j]]++;
	}
	rep(i,0,n){
		int x=b[i];
		if(mpb[x]>mpa[x]){
			printf("NO\n");
			return 0;
		}
	}
	printf("YES\n");
	return 0;
}





Compiler output:
a.cc:7:5: error: expected initializer before 'main'
    7 | int main(){
      |     ^~~~
Language: C

#include <stdio.h>
int main(void){
    int n,m;
    int i,j,k=0;
    int d[200000]={},t[200000]={};
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf("%d",&d[i]);
    }
    scanf("%d",&m);
    for(j=0;j<m;j++){
        scanf("%d",&t[j]);
    }
    if(n<m){
        printf("NO\n");
        return 0;
    }
    i=0;
    while(k==i){
    for(;i<m;i++){
        for(j=0;j<n;j++){
            if(t[i]==d[j]){
               k++;
               d[j]=0;
               break;
            }
        }
    }
    if(k==m){
        printf("YES\n");
        return 0;
    }
    }
    else printf("NO\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:34:5: error: 'else' without a previous 'if'
   34 |     else printf("NO\n");
      |     ^~~~
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int N;
int D[200001];
int M;
int T[200001];
int T;
int binarySearch(int i) {
	int left = 1;
	int right = N;
	while (left < right) {
		int mid = (left + right) / 2;
			while(D[mid] == 0){
				mid--;
				if (mid < 1) {
					while (D[mid] == 0) {
						mid++;
					}
				}
			}
		if (D[mid] == T[i]) {
			return mid;
		}
			else if(T[i] < D[mid]) {
				right = mid;
			}
			else {
				left = mid + 1;
			}
	}
	return 0;
}


int main() {
	cin >> N;
	for (int i = 1; i <= N; i++) {
		cin >> D[i];
	}
	cin >> M;
	for (int i = 1; i <= M; i++) {
		cin >> T[i];
	}
	sort(D, D + N - 1);
	for (int i = 1; i <= M; i++) {
		int pos = binarySearch(i);
		if (pos == 0) {
			cout << "NO" << endl;
			return 0;
		}
		else {
			D[pos] = 0;
		}
	}
	cout << "YES" << endl;
	return 0;
}

Compiler output:
a.cc:8:5: error: conflicting declaration 'int T'
    8 | int T;
      |     ^
a.cc:7:5: note: previous declaration as 'int T [200001]'
    7 | int T[200001];
      |     ^
Language: C++

#include<stdio.h>
#include<string.h>
int main() {
	char s[50];
	gets(s);
	for(int i=0;i<strlen(s)-8;i++){
		printf("%c",s[i]);
	} 
	printf("\n");
	return 0;
}

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

#include<bits/stdc++.h>
int main() {
	char s[50];
	gets(s);
	for(int i=0;i<strlen(s)-8;i++){
		printf("%c",s[i]);
	} 
	printf("\n");
	return 0;
}

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

#include<stdio.h>
int main()
{
    int i,n;
    char m;
    char a[100];

    while(gets(a)!=EOF)
    {

        n=0;
        for(i=50; i>=1; i--)
        {
            if('F'==a[i])
            {
                n=i+1;
                break;
            }
        }

        for(i=0; i<=n-2; i++)
            printf("%c",a[i]);
            printf("\n");
             memset(a, '0', strlen(a));
    }

    return 0;

}










Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |     while(gets(a)!=EOF)
      |           ^~~~
      |           getw
a.cc:24:29: error: 'strlen' was not declared in this scope
   24 |              memset(a, '0', strlen(a));
      |                             ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<stdio.h>
  +++ |+#include <cstring>
    2 | int main()
a.cc:24:14: error: 'memset' was not declared in this scope
   24 |              memset(a, '0', strlen(a));
      |              ^~~~~~
a.cc:24:14: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#include<cstdio>
#include<cstring>
using namespace std;
int main()
{
	char s[1000];
	gets(s);
	int len=strlen(s);
	s[len-8]='\0';
	puts(s);
	return 0;	
}

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

#include <iostream>
#include <string>
using namespace std;

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

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

int main() {
char buf[100];
scanf("%s",buf);
int i=0;
while (buf[i] != NULL) {
 i=i+1;
}
i=i-1;
int j;
for (j=0;j<=i;j++) {
 printf("%c",buf[j-8]);
}
printf("\n");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | scanf("%s",buf);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main() {
main.c:3:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | scanf("%s",buf);
      | ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:18: error: 'NULL' undeclared (first use in this function)
    5 | while (buf[i] != NULL) {
      |                  ^~~~
main.c:1:1: note: 'NULL' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
  +++ |+#include <stddef.h>
    1 | int main() {
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
    5 | while (buf[i] != NULL) {
      |                  ^~~~
main.c:11:2: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |  printf("%c",buf[j-8]);
      |  ^~~~~~
main.c:11:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:2: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:2: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 | printf("\n");
      | ^~~~~~
main.c:13:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

int main()
{
	char c[50];
	int i;
	int t;
	for(i=1;i<=50;i++) cin>>c[i];
	for(i=1;i<=50;i++){if ((c[i]<'A')||(c[i])>'Z'){t=i-9;break;}}
	for(i=1;i<=t;i++) cout<<c[i];
	cout<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: 'cin' was not declared in this scope
    6 |         for(i=1;i<=50;i++) cin>>c[i];
      |                            ^~~
a.cc:8:27: error: 'cout' was not declared in this scope
    8 |         for(i=1;i<=t;i++) cout<<c[i];
      |                           ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout<<endl;
      |         ^~~~
a.cc:9:15: error: 'endl' was not declared in this scope
    9 |         cout<<endl;
      |               ^~~~
Language: C++

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        String input = scanner.next();
        int index = input.lastIndexOf("FESTIVAL");
        System.out.println(input.substring(0, index));
    }

}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include<bits/stdc++. h>
using namespace std
int main() 
{
string s;
cin>>s;
string sr="FESTIVAL ";
int ind=s.rfind(sr);
cout<<s.substr(0,ind);
} 

Compiler output:
a.cc:1:9: fatal error: bits/stdc++. h: No such file or directory
    1 | #include<bits/stdc++. h>
      |         ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;
char s[100];
int main(){
	scanf("%s", s);
	int n = strlen(s);
	s[n - 8] = '\0';
	printf("%s\n", s);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'strlen' was not declared in this scope
    7 |         int n = strlen(s);
      |                 ^~~~~~
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: Java

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String n = scanner.nextLine();
        String fes = "FESTIVAL";
        System.out.println(n.substring(0, n.length() - fes.length()));
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
using namespace std;

int main()
{
	char s[50];
	cin >> s;
	int nagasa = strlen(s);
	for (int i = 0; i < nagasa - 8; i++) {
		cout << s[i];
	}
	cout << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: 'strlen' was not declared in this scope
   10 |         int nagasa = strlen(s);
      |                      ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <algorithm>
  +++ |+#include <cstring>
    3 | #include <string>
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;
int main(int argc, char *argv[])
{
	char sh[55],str[10]="FESTIVAL";
	scanf("%s",sh);
	int l=strlen(sh);
	sh[l-8]='\0';
	printf("%s\n",sh);
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:8:15: error: 'strlen' was not declared in this scope
    8 |         int l=strlen(sh);
      |               ^~~~~~
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 <stdio.h>
#include <stdlib.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
char festival[500];
char curr;
int init()
{
int i;
i=0;
	while(curr != "\n")
	{
		scanf("%c",&curr);
		festival[i]=curr;
		i++;
	}
return i;
}

int output(int i)
{
int j;
for(j=0;j<i-8;j++)
	printf("%c",festival[j]);
return 0;
}

int main(int argc, char *argv[]) 
{
int i;
i = init();
output(i);
return 0;
}

Compiler output:
a.cc: In function 'int init()':
a.cc:11:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         while(curr != "\n")
      |               ~~~~~^~~~~~~
Language: C++

#include <stdio.h>
#include <stdlib.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
char festival[500];
char curr;
int init()
{
int i;
i=0;
	while(curr!="\n")
	{
		scanf("%c",&curr);
		festival[i]=curr;
		i++;
	}
return i;
}

int output(int i)
{
int j;
for(j=0;j<i-8;j++)
	printf("%c",&festival[j]);
return 0;
}

int main(int argc, char *argv[]) 
{
int i;
i = init();
output(i);
return 0;
}

Compiler output:
a.cc: In function 'int init()':
a.cc:11:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         while(curr!="\n")
      |               ~~~~^~~~~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	char a[100001];
	scanf("%s",a+1);
	for(int i=1;i<=strlen(a+1)-8;i++)
	{
		cout<<a[i];
	}
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: 'strlen' was not declared in this scope
    8 |         for(int i=1;i<=strlen(a+1)-8;i++)
      |                        ^~~~~~
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<bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
for(int i=0;i<s.length()-8;i++){cout<<s[i;}
cout<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:42: error: expected ']' before ';' token
    7 | for(int i=0;i<s.length()-8;i++){cout<<s[i;}
      |                                          ^
      |                                          ]
Language: C++

#include <iostream>
using namespace std;

int main(){
string s,a;
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:8:13: error: expected ';' before ':' token
    8 | cout << s[i]:
      |             ^
      |             ;
Language: Java

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) throws Exception {
		String str=sc.nextLine();
		System.out.println(str.substring(0,str.length()-8));
	}
}

Compiler output:
Main.java:2: error: cannot find symbol
	static Scanner sc = new Scanner(System.in);
	       ^
  symbol:   class Scanner
  location: class Main
Main.java:2: error: cannot find symbol
	static Scanner sc = new Scanner(System.in);
	                        ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<queue>
#include<cstring>
using namespace std;
char s[100005];
int main(){
    gets(s);
    int l=strlen(s);
    for(int i=0;i<l-8;i++)
        printf("%c",s[i]);
    printf("\n");
}


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

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

Compiler output:
a.cc:1:9: fatal error: bits//sedc++.h: No such file or directory
    1 | #include<bits//sedc++.h>
      |         ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
#include<string.h>
int main(){
    char str[50];
    scanf("%s",str);
    str[strsize(str)-1]='\0';
    printf("%s",str);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'strsize' [-Wimplicit-function-declaration]
    6 |     str[strsize(str)-1]='\0';
      |         ^~~~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <cstdio>
using namespace std;
int main(void){
   char s[51];
   scanf("%s",s);
   for(int i=0;i<strlen(s)-8;i++){
       cout<<s[i];
   }
   cout<<endl;
}


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

#include "stdafx.h"
#include <iostream>
#include <string>
#include <algorithm>
#include <functional>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <cassert>
using namespace std;

signed main()
{
	string s;
	cin >> s;

	for (int i = 0; i < s.length() - 8; i++) cout << s[i];
	cout << endl;
	return 0;
}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define REP(i, n) for(long long i = 0; i < (long long)(n); i++)
using namespace std;
using ll = long long;
const int MOD = 1e9 + 7;
int main(){
    int N, D, M, T;
    cin >> N;
    multiset <int> S;
    while(N-- && cin >> D){
        S.insert(D);
    }
    cin >> M;
    while(cin >> T){
        if(!S.count(T)){
            cout << "NO" << endl;
            return 0;
        S.erase(S.find(T));
    }
    cout << "YES" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define REP(i, n) for(long long i = 0; i < (long long)(n); i++)
using namespace std;
using ll = long long;
const int MOD = 1e9 + 7;
int main()　{
    int N, D, M, T;
    cin >> N;
    multiset <int> S;
    while(N-- && cin >> D){
        S.insert(D);
    }
    cin >> M;
    while(cin >> T){
        if(!S.count(T)){
            cout << "NO" << endl;
            return 0;
        S.erase(S.find(T));
    }
    cout << "YES" << endl;
}

Compiler output:
a.cc:7:11: error: extended character 　 is not valid in an identifier
    7 | int main()　{
      |           ^
a.cc:7:11: error: expected initializer before '\U00003000'
    7 | int main()　{
      |           ^~
Language: C++

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

#ifdef LOCAL
#define debug(var) cerr << (#var) << " = " << (var) << endl;
#else
#define debug(var)
#endif

void init() {
  ios_base::sync_with_stdio(0);
  cin.tie(0); cout.tie(0);
}

map<int, int> mp;

void solve() {
  int n; scanf("%d", &n);
  for (int x, i = 0; i < n; ++i) {
    scanf("%d", &x);
    ++mp[d];
  }
  int m; scanf("%d", &m);
  for (int t, i = 0; i < m; ++i) {
    scanf("%d", &t);
    if (mp[t] > 0) {
      --mp[t];
    } else {
      puts("NO");
      return;
    }
  }
  puts("YES");
}

int main() {
  init();
  int t = 1; //scanf("%d", &t);
  while (t--) {
    solve();
  }
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:21:10: error: 'd' was not declared in this scope
   21 |     ++mp[d];
      |          ^
Language: C++

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using ll = int64_t;
#define rep(i,n) for(int i = 0; i < ((int)(n)); i++)   // 0-indexed昇順

int main() {
    int N; cin >> N;
    map<int,int> DM;
    rep(i,N) {
        int d; cin >> d;
        DM[d]++;
    }

    int M; cin >> M;
    vector<int> T(M);
    rep(i,M) {
        cin >> T.at(i);
        if (DM[T[i]] > 0) DM[T[i]]--;
        else {
            cout << "NO" << endl;
            return 0;
        }
    }
    cout << "YES" << endl;
}


Compiler output:
a.cc:2:10: fatal error: atcoder/all: No such file or directory
    2 | #include <atcoder/all>
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#i n cl u d e <i o s t re am>
#i n cl u d e <map>
u si n g namespace s t d ;
i n t A;
i n t a [ 1 0 0 0 1 0 ] ;
i n t B;
i n t b [ 1 0 0 0 1 0 ] ;
map <i n t , i n t> mpa,mpb;
i n t main ( v oid ){
i n t i ;
ci n >> A;
f o r ( i =0; i<A; i++) s c a n f (”%d ” , &a [ i ] ) ;
ci n >> B;
f o r ( i =0; i<B; i++) s c a n f (”%d ” , &b [ i ] ) ;
f o r ( i =0; i<A; i++) mpa[ a [ i ]]++;
f o r ( i =0; i<B; i++) mpb[ b [ i ]]++;
f o r ( i =0; i<B; i ++){
i n t x = b [ i ] ;
i f (mpb[ x ] > mpa[ x ] ) {
c ou t << ”NO” << e n dl ;
r e t u r n 0 ;
}
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i n cl u d e <i o s t re am>
      |  ^
      |  if
a.cc:2:2: error: invalid preprocessing directive #i; did you mean #if?
    2 | #i n cl u d e <map>
      |  ^
      |  if
a.cc:12:36: error: extended character ” is not valid in an identifier
   12 | f o r ( i =0; i<A; i++) s c a n f (”%d ” , &a [ i ] ) ;
      |                                    ^
a.cc:12:40: error: extended character ” is not valid in an identifier
   12 | f o r ( i =0; i<A; i++) s c a n f (”%d ” , &a [ i ] ) ;
      |                                        ^
a.cc:14:36: error: extended character ” is not valid in an identifier
   14 | f o r ( i =0; i<B; i++) s c a n f (”%d ” , &b [ i ] ) ;
      |                                    ^
a.cc:14:40: error: extended character ” is not valid in an identifier
   14 | f o r ( i =0; i<B; i++) s c a n f (”%d ” , &b [ i ] ) ;
      |                                        ^
a.cc:20:11: error: extended character ” is not valid in an identifier
   20 | c ou t << ”NO” << e n dl ;
      |           ^
a.cc:20:11: error: extended character ” is not valid in an identifier
a.cc:3:1: error: 'u' does not name a type
    3 | u si n g namespace s t d ;
      | ^
a.cc:4:1: error: 'i' does not name a type
    4 | i n t A;
      | ^
a.cc:5:1: error: 'i' does not name a type
    5 | i n t a [ 1 0 0 0 1 0 ] ;
      | ^
a.cc:6:1: error: 'i' does not name a type
    6 | i n t B;
      | ^
a.cc:7:1: error: 'i' does not name a type
    7 | i n t b [ 1 0 0 0 1 0 ] ;
      | ^
a.cc:8:1: error: 'map' does not name a type
    8 | map <i n t , i n t> mpa,mpb;
      | ^~~
a.cc:9:1: error: 'i' does not name a type
    9 | i n t main ( v oid ){
      | ^
Language: C++

#define _GLIBCXX_DEBUG
#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<deque>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define rep2(i,s,n) for(int i=s;i< (int)n; i++)
#define ll long long 
#define all(v) v.begin(),v.end()
using namespace std;
int main(){
  int n,m; 
  cin>>n;
  vector<int> d(n);
  rep(i,n)cin >>d[i];
  cin >>m;
  vector<int> t(m);
  rep(i,m)cin >>t[i];
  sort(all(d));
  sort(all(t));
  map<ll,ll> mpd;
  map<ll,ll> mpt;
  rep(i,n) mpd[d[i]]++;
  rep(i,m) mpt[t[i]]++;
  rep(i,m){
    if(mpt[t[i]]>mpd[t[i]]){
      cout <<"NO"<<endl;
      return;
    }
  }
  cout <<"YES"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   37 |       return;
      |       ^~~~~~