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

#include<iostream>
#include<string>
using namespace std;
int main(){
  int a,b,c;
  cin >> a >> b;
  if(c =a+b >= 10) cout << "error" << endl;
  else count << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'count' was not declared in this scope
    8 |   else count << c << endl;
      |        ^~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int a,b,c;
  cin >> a >> b;
  if(c =a+b >= 10) cout << “error” << endl;
  else count << c << endl;
}


Compiler output:
a.cc:7:28: error: extended character “ is not valid in an identifier
    7 |   if(c =a+b >= 10) cout << “error” << endl;
      |                            ^
a.cc:7:28: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:28: error: '\U0000201cerror\U0000201d' was not declared in this scope
    7 |   if(c =a+b >= 10) cout << “error” << endl;
      |                            ^~~~~~~
a.cc:8:8: error: 'count' was not declared in this scope
    8 |   else count << c << endl;
      |        ^~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  cout << (a+b >=10? "error":a+b) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: operands to '?:' have different types 'const char*' and 'int'
    7 |   cout << (a+b >=10? "error":a+b) << endl;
      |            ~~~~~~~~^~~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  cout << (a+b >=10? "error" : a+b) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: operands to '?:' have different types 'const char*' and 'int'
    6 |   cout << (a+b >=10? "error" : a+b) << endl;
      |            ~~~~~~~~^~~~~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  cout << (a+b >=10?"error":a+b) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: operands to '?:' have different types 'const char*' and 'int'
    6 |   cout << (a+b >=10?"error":a+b) << endl;
      |            ~~~~~~~~^~~~~~~~~~~~
Language: C++

#include "bits/stdc++.h"
using namespace std;
int main(){
    int A,B;
    cin>>A>>B;
    cout<<(A+B>=10?"error":A+B)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: operands to '?:' have different types 'const char*' and 'int'
    6 |     cout<<(A+B>=10?"error":A+B)<<endl;
      |            ~~~~~~~^~~~~~~~~~~~
Language: C++

#include <bits/std++.h>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	if((a+b)>=10)
		cout<<"error"<<endl;
	else
		cout<<(a+b)<<endl;
	return 0;
}

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

#include <bits/std++.h>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	if((a+b)>=10)
		cout>>"error">>endl;
	else
		cout>>(a+b)>>endl;
	return 0;
}

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

#include <iostream>
#include <algorithm>
#include <cmath>
#include <limits>
#include <vector>
#include <cstdio>
#include <bits/stdc++.h>
#include <set>
#include <map>
#include <stdio.h>
#include <string.h>
#include <stack>
#include <queue>
#include <deque>
#include <numeric>
#include<bits/stdc++.h>
#include <utility>

#define ALL(obj) (obj).begin(), (obj).end()
#define FOR(i,a,b) for(int i = (a); i < (b); i++)
#define RFOR(i,a,b) for(int i = (a); (b) <= i; i--)
#define REP(i,n) for(int i = 0; i < (n); i++)
#define RREP(i,n) for(int i = n; n <= i; i--)
#define ABS(a) ((a < 0) ? ((-1)*(a)) : (a))
#define elif else if
#define MOD 1000000007
#define INF (1<<29)

using namespace std;
using ll = long long;
map <int ,int> mpa,mpb;
typedef pair<ll, ll> P;
priority_queue<P, vector<P>, greater<P>> pque;

int main(){
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int A, B;
  cin >> A >> B;
  cout << (A+B>=10?"error":A+B) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:19: error: operands to '?:' have different types 'const char*' and 'int'
   40 |   cout << (A+B>=10?"error":A+B) << endl;
      |            ~~~~~~~^~~~~~~~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
using namespace std;

#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define REP(i, n) for (int i = 0; i < (n); i++)

int main() {
  int A, B;

  cin >> A >> B;
  if (A + B >= 10) cout << "error" << endl;
  else cout << A + B << endl;
  a
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:3: error: 'a' was not declared in this scope
   29 |   a
      |   ^
Language: C++


#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<math.h>
#include<iomanip>
#include<set>
#include <numeric>
#include<cstring>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define REVERSE(v,n) reverse(v,v+n);
#define VREVERSE(v) reverse(v.begin(), v.end());
#define ll long long
#define pb(a) push_back(a)
#define INF 999999999
#define m0(x) memset(x,0,sizeof(x))
#define fill(x,y) memset(x,y,sizeof(x))

using namespace std;



int dy[4] = { 0,0,1,-1 };
int dx[4] = { 1,-1,0,0 };
int dxx[8] = { 0,0,1,1,1,-1,-1,-1 };
int dyy[8] = { 1,-1,0,1,-1,0,1,-1 };


ll m = 1000000007;

const int MOD = 1000000007;

ll gcd(ll x, ll y) {
	ll m = max(x, y), n = min(x, y);
	if (m%n == 0)return n;
	else return gcd(m%n, n);
}
ll lcm(ll x, ll y) {
	return x / gcd(x, y)*y;
}

ll myPow(ll x, ll n, ll m) {
	if (n == 0)
		return 1;
	if (n % 2 == 0)
		return myPow(x * x % m, n / 2, m);
	else
		return x * myPow(x, n - 1, m) % m;
}

long long nCr(int n, int r) {
	if (r > n / 2) r = n - r; // because C(n, r) == C(n, n - r)
	long long ans = 1;
	int i;

	for (i = 1; i <= r; i++) {
		ans *= n - r + i;
		ans /= i;
	}

	return ans;
}



int main() {
	int A, B;
	cin >> A >> B;
	if (A + B >= 10)cout << "error" << Endl;
	else cout << A + B << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:77:44: error: 'Endl' was not declared in this scope
   77 |         if (A + B >= 10)cout << "error" << Endl;
      |                                            ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define dump(x) cout << (x) << endl
typedef long long ll;
typedef pair<int, int> pi;
typedef vector<int> V;

int main() {
  int a, b;
  cin >> a >> b;
  dump(a+b >= 10 ? "error" : a+b);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: operands to '?:' have different types 'const char*' and 'int'
   11 |   dump(a+b >= 10 ? "error" : a+b);
      |        ~~~~~~~~~~^~~~~~~~~~~~~~~
a.cc:3:26: note: in definition of macro 'dump'
    3 | #define dump(x) cout << (x) << endl
      |                          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define dump(x) cout << (x) << endl
typedef long long ll;
typedef pair<int, int> pi;
typedef vector<int> V;

int main() {
  int a, b;
  cin >> a >> b;
  dump(a+b >= 10 ? "error" : a+b)
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: operands to '?:' have different types 'const char*' and 'int'
   11 |   dump(a+b >= 10 ? "error" : a+b)
      |        ~~~~~~~~~~^~~~~~~~~~~~~~~
a.cc:3:26: note: in definition of macro 'dump'
    3 | #define dump(x) cout << (x) << endl
      |                          ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <stack>
#include <deque>
#include <cmath>
#include <map>
using ll = long long;
using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  cout << (a+b >= 10 ? "error" : a+b ) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:22: error: operands to '?:' have different types 'const char*' and 'int'
   16 |   cout << (a+b >= 10 ? "error" : a+b ) << endl;
      |            ~~~~~~~~~~^~~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <stack>
#include <deque>
#include <cmath>
#include <map>
using ll = long long;
using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  cout << (a+b >= 10 ) ? "error" : a+b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:40: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   16 |   cout << (a+b >= 10 ) ? "error" : a+b << endl;
      |                                    ~~~~^~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<functional>
#include<utility>
#include<stack>
#include<queue>
#include<cmath>
#include<list>
#include<cstdint>
#include<vector>
#include<map>
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define rep(i,rept)	for(ll i = 0; i<rept;i++)
typedef long long ll;

ll nCr(ll n, ll r) {
	if (r > n) { return 0; }
	if (r * 2 > n) r = n - r;
	ll dividend = 1;
	ll divisor = 1;
	for (ll i = 1; i <= r; ++i) {
		dividend *= (n - i + 1);
		divisor *= i;
	}
	return dividend / divisor;
}
ll sumdigit(ll n) {
	ll dig = 0, sum = 0;
	while (n) {
		dig = n % 10;
		sum = sum + dig;
		n = n / 10;
	}
	return sum;
}



int main() {
	int a, b;
	std::cin >> a >> b;
	if (a + b >= 10) {
		std::cout << "error" << std::endl;
		return 0;
	}
	else {
		std::cout << a+b << std::endl:
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:50:46: error: expected ';' before ':' token
   50 |                 std::cout << a+b << std::endl:
      |                                              ^
      |                                              ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rp(i,n) for(int i=0;i<n;i++)
#define rep(i,m,n) for(int i=m;i<=n;i++)
#define lrp(i,n) for(long long i=0;i<n;i++)
#define lrep(i,m,n) for(long long i=m;i<=n;i++)
#define ll long long
#define sort(a) sort(a.begin(),a.end())
#define reverse(a) reverse(a.begin(),a.end())
#define vi vector<int>
#define vl vector<long long>
#define pb push_back
#define abs(a,b) (a-b>0?a-b:b-a)
#define size size()

int main(){
    int n,m;
    cin >> n >> m;
    cout << (n+m>=10?"error":m+n) << endl;

}







Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: operands to '?:' have different types 'const char*' and 'int'
   19 |     cout << (n+m>=10?"error":m+n) << endl;
      |              ~~~~~~~^~~~~~~~~~~~
Language: C++

#include <bits/stdcpp.h>

using namespace std;
int main(){
  int a,b;
  cin >> a;
  cin >> b;
  if(a+b>9) cout << "error" << endl;
  else cout << a+b << endl;
}


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

#include <bits/stdc++.h>

using namespace sdd;
int main(){
  int a,b;
  cin >> a;
  cin >> b;
  if(a+b>9) cout << "error" << endl;
  else cout << a+b << endl;
}


Compiler output:
a.cc:3:17: error: 'sdd' is not a namespace-name
    3 | using namespace sdd;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if(a+b>9) cout << "error" << endl;
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   if(a+b>9) cout << "error" << endl;
      |                                ^~~~
      |                                std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   else cout << a+b << endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   else cout << a+b << endl;
      |                       ^~~~
      |                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define INF 1<<30
#define LINF 1ll<<60ll
#define MOD 1000000007
#define pb(a) push_back(a)
#define vi vector<int>
#define vl vector<long long>
#define vvi vector<vi>
#define P pair<int,int>
#define all(vec) (vec.begin()),(vec.end())
typedef long long ll;
typedef unsigned long long ull;
#define sz(x) ((int)(x).size())
#define in(x) int x;cin>>x
#define bit(n) (1<<(n))

#define REP(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define REPR(i, n) for(int i = n;i >= 0;--i)
#define REP3(i, m, n) for(int i = m, i##_len=(n);i < i##_len;++i)
#define FORVEC(i, v) for(int i = 0;i < sz(v);++i)

template<class T>bool chmax(T &a,const T &b){if(a<b){a=b;return true;}return false;}
template<class T>bool chmin(T &a,const T &b){if(a>b){a=b;return true;}return false;}

#define fil0(i,n) cout<<swet(n)<<setfill('0')<<i<<resetiosflags(ios_base::floatfield)
#define YES(n) cout<<((n)?"YES":"NO")<<endl
#define Yes(n) cout<<((n)?"Yes":"No")<<endl
#define yes(n) cout<<((n)?"yes":"no")<<endl
#define possible(n) cout<<((n)?"possible":"impossible")<<endl
#define Possible(n) cout<<((n)?"Possible":"Impossible")<<endl


int main(){
    int a,b;
    cin>>a>>b;
    cout<<((a+b>=10)?"error":a+b)<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:21: error: operands to '?:' have different types 'const char*' and 'int'
   39 |     cout<<((a+b>=10)?"error":a+b)<<endl;
      |            ~~~~~~~~~^~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(void){
  int a, b;
  cin>>a>>b;
  cout<<((a+b<10)?(a+b):("error"))<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: operands to '?:' have different types 'int' and 'const char*'
    6 |   cout<<((a+b<10)?(a+b):("error"))<<endl;
      |          ~~~~~~~~^~~~~~~~~~~~~~~~
Language: C++

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

int main(void){
  int a, b;  cin>>a>>b;
  cout<<((a+b)<10?(a+b):("error"))<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: operands to '?:' have different types 'int' and 'const char*'
    7 |   cout<<((a+b)<10?(a+b):("error"))<<endl;
      |          ~~~~~~~~^~~~~~~~~~~~~~~~
Language: C++

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

int main(void){
  int a, b;  cin>>a>>b;
  cout<<((a+b<10)?(a+b):("error"))<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: operands to '?:' have different types 'int' and 'const char*'
    7 |   cout<<((a+b<10)?(a+b):("error"))<<endl;
      |          ~~~~~~~~^~~~~~~~~~~~~~~~
Language: C++

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

int main(void){
  int a, b;

  cin >> a >> b;
  
  cout << (((a+b)>=10) ? "error" : a+b) << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: operands to '?:' have different types 'const char*' and 'int'
    9 |   cout << (((a+b)>=10) ? "error" : a+b) << endl;
      |            ~~~~~~~~~~~~^~~~~~~~~~~~~~~
Language: C++

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

int main(void){
  int a, b;

  cin >> a >> b;
  
  cout << ((a+b)>=10) ? "error" : a+b << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:39: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   cout << ((a+b)>=10) ? "error" : a+b << endl;
      |                                   ~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  cin>>x>>y;
if(x+y>9)cout<<"error";
else cout<<x+y;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: 'x' was not declared in this scope
    4 |   cin>>x>>y;
      |        ^
a.cc:4:11: error: 'y' was not declared in this scope; did you mean 'yn'?
    4 |   cin>>x>>y;
      |           ^
      |           yn
Language: C++

#include <iostream>
int main() {
	int a, b;
	std::cin >> a >> b;
	if (a + b < 10) {
		std::cout << a + b << std::endl;
	}
	else {
		std::cout<<"error"<<std::endl;
	}


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

#include<bits/tdc++.h>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	if (a + b >= 10) {
		cout << "error" << endl;
	}
	else {
		cout << a + b << endl;
	}
}

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

using namespace std;

int main()
{
    int a,b,c;
    cin>>a>>b;
    c = a + b;
    if(c<10)
        cout<<c<<endl;
    else
        cout<<"error"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>a>>b;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout<<c<<endl;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:18: error: 'endl' was not declared in this scope
    9 |         cout<<c<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<"error"<<endl;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:24: error: 'endl' was not declared in this scope
   11 |         cout<<"error"<<endl;
      |                        ^~~~
a.cc:11:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
using namespace std;
int main(){
	 int a,b;
	 cin>>a>>b;
	 cout<<a+b<<endl;
	 if(a+b>=10){
	 	cout<<"error"<<endl;
}

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

#include <iostream>
using namespace std;

int main() {
	int a, b;
	cin >> a >> b;
	if(a+b => 10){
		cout << "error" << endl;
	}else{
		cout << a + b << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected primary-expression before '>' token
    7 |         if(a+b => 10){
      |                 ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	int a, b;
	cin >> a >> b;
	if(a+b => 10){
		cout << "error" << endl;
	}else{
		cout << a + b << nedl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected primary-expression before '>' token
    7 |         if(a+b => 10){
      |                 ^
a.cc:10:34: error: 'nedl' was not declared in this scope
   10 |                 cout << a + b << nedl;
      |                                  ^~~~
Language: C++

<?php
# スペース区切りの整数の入力
fscanf(STDIN, "%d %d", $a, $b);

# 出力
$sum = $a + $b;
if ($sum >= 10) {
echo "error\n";
} else {
echo $sum."\n";
}
?>

Compiler output:
a.cc:2:3: error: invalid preprocessing directive #\U000030b9\U000030da\U000030fc\U000030b9\U0000533a\U00005207\U0000308a\U0000306e\U00006574\U00006570\U0000306e\U00005165\U0000529b
    2 | # スペース区切りの整数の入力
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:5:3: error: invalid preprocessing directive #\U000051fa\U0000529b
    5 | # 出力
      |   ^~~~
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:6:1: error: '$sum' does not name a type
    6 | $sum = $a + $b;
      | ^~~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if ($sum >= 10) {
      | ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 | } else {
      |   ^~~~
a.cc:12:1: error: expected unqualified-id before '?' token
   12 | ?>
      | ^
Language: C++

<?php
# スペース区切りの整数の入力
fscanf(STDIN, "%d %d", $a, $b);

# 出力
$sum = $a + $b;
if ($sum >= 10) {
echo "error\n'\";
} else {
echo $sum."\n";
}
?>

Compiler output:
a.cc:2:3: error: invalid preprocessing directive #\U000030b9\U000030da\U000030fc\U000030b9\U0000533a\U00005207\U0000308a\U0000306e\U00006574\U00006570\U0000306e\U00005165\U0000529b
    2 | # スペース区切りの整数の入力
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:5:3: error: invalid preprocessing directive #\U000051fa\U0000529b
    5 | # 出力
      |   ^~~~
a.cc:8:6: warning: missing terminating " character
    8 | echo "error\n'\";
      |      ^
a.cc:8:6: error: missing terminating " character
    8 | echo "error\n'\";
      |      ^~~~~~~~~~~~
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:6:1: error: '$sum' does not name a type
    6 | $sum = $a + $b;
      | ^~~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if ($sum >= 10) {
      | ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 | } else {
      |   ^~~~
a.cc:12:1: error: expected unqualified-id before '?' token
   12 | ?>
      | ^
Language: C++

<?php
# スペース区切りの整数の入力
fscanf(STDIN, "%d %d", $a, $b);

# 出力
$sum = $a + $b;
if ($sum >= 10) {

echo ($a+$b)." ".$s."\n";
?>

Compiler output:
a.cc:2:3: error: invalid preprocessing directive #\U000030b9\U000030da\U000030fc\U000030b9\U0000533a\U00005207\U0000308a\U0000306e\U00006574\U00006570\U0000306e\U00005165\U0000529b
    2 | # スペース区切りの整数の入力
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:5:3: error: invalid preprocessing directive #\U000051fa\U0000529b
    5 | # 出力
      |   ^~~~
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:6:1: error: '$sum' does not name a type
    6 | $sum = $a + $b;
      | ^~~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if ($sum >= 10) {
      | ^~
Language: C++

#include<iostream>

using namespace std;

int main(){
    int A, B;

    int sum;

    cin >> A >> B;

    sum = A+B;

    if(sum>=10){
        cout << "error";
    }else{
        cout << sum;
    }
}
~
~

Compiler output:
a.cc:21:1: error: expected class-name before '~' token
   21 | ~
      | ^
Language: Java

import java.util.Scanner;

public class Restricted {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		a = a + b;
		if(a >= 10)System.out.print("error");
		else System.out.print(a);
	}
}

Compiler output:
Main.java:3: error: class Restricted is public, should be declared in a file named Restricted.java
public class Restricted {
       ^
1 error
Language: C++

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

int main()
{
int A;
int B;

	cin >> A;
	cin >> B;

	if( A + B >= 0 )
		cout << "error" << endl;
	else
		cout << iSum << endl;

	return 0;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: 'iSum' was not declared in this scope
   15 |                 cout << iSum << endl;
      |                         ^~~~
Language: C

#include <stdio.h>

int main{
  int a,b;
  scanf("%d %d",&a,&b);
  if(a+b>=10){
    printf("error¥n");
    }
  else{
  printf("%d¥n",a+b);
  }
  return 0;
}


Compiler output:
main.c:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main{
      |         ^
Language: C

#include <stdio.h>

int main{
  int a,b;
  scanf("%d %d",&a,&b);
  if(a+b>=10){
    printf("error¥n");
    }
  else{
  printf{"%d¥n",a+b};
  }
  return 0;
}

Compiler output:
main.c:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main{
      |         ^
Language: C++

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

typedef long long ll;

int main() {
	ios::sync_with_stdio(0);
	
	int a, b;
	cin >> a >> b;
	cout << (a + b >= 10 ? "error" : a+b);
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: operands to '?:' have different types 'const char*' and 'int'
   11 |         cout << (a + b >= 10 ? "error" : a+b);
      |                  ~~~~~~~~~~~~^~~~~~~~~~~~~~~
Language: C++

#include"bits/stdc++.h"
using namespace std;
 
int main(){
  int a,b;
  cin>>a>>b;
  cout<<((a+b)<10?to_string(a+b):"error")<<endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:7:49: error: expected '}' at end of input
    7 |   cout<<((a+b)<10?to_string(a+b):"error")<<endl;
      |                                                 ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main()
{
    int a,b;
    cin>>a>>b;
    cout<<(a+b >= 10)? "error" : a+b<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:37: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |     cout<<(a+b >= 10)? "error" : a+b<<endl;
      |                                  ~~~^~~~~~
Language: C

#include<stdio.h>
Int main(){
Int A,B;
scanf("%d%d",&A,&B);
A+=B;
if(A>10){
printf("error");
}else{
printf("%d",A);
}
return 0;
}

Compiler output:
main.c:2:1: error: unknown type name 'Int'; did you mean 'int'?
    2 | Int main(){
      | ^~~
      | int
main.c: In function 'main':
main.c:3:1: error: unknown type name 'Int'; did you mean 'int'?
    3 | Int A,B;
      | ^~~
      | int
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int n = a+b;
    if(n < 10){
      System.out.println(n);
    }else(n >= 10){
      System.out.println("error");
    }
  }
}

Compiler output:
Main.java:10: error: not a statement
    }else(n >= 10){
         ^
Main.java:10: error: ';' expected
    }else(n >= 10){
                  ^
2 errors
Language: C++

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

int main(void) {
    int a, b;
    cin >> a >> b;
    cout << (a + b < 10 ? a + b : "error") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: operands to '?:' have different types 'int' and 'const char*'
    7 |     cout << (a + b < 10 ? a + b : "error") << endl;
      |              ~~~~~~~~~~~^~~~~~~~~~~~~~~~~
Language: C++

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

int main{
	int a, b;
	cin >> a >> b;
	if(a + b < 10) cout << a + b << endl;
	else cout << "error" << endl;
	return 0;
}

Compiler output:
a.cc:7:5: error: cannot declare '::main' to be a global variable
    7 | int main{
      |     ^~~~
a.cc:8:9: error: expected primary-expression before 'int'
    8 |         int a, b;
      |         ^~~
a.cc:8:9: error: expected '}' before 'int'
a.cc:7:9: note: to match this '{'
    7 | int main{
      |         ^
a.cc:9:9: error: 'cin' does not name a type
    9 |         cin >> a >> b;
      |         ^~~
a.cc:10:9: error: expected unqualified-id before 'if'
   10 |         if(a + b < 10) cout << a + b << endl;
      |         ^~
a.cc:11:9: error: expected unqualified-id before 'else'
   11 |         else cout << "error" << endl;
      |         ^~~~
a.cc:12:9: error: expected unqualified-id before 'return'
   12 |         return 0;
      |         ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: Java


public class Atcoder_Virtual_A{

    public static void main(String[] args){
        Integer a = Integer.parseInt(args[0]);
        Integer b = Integer.parseInt(args[1]);
        if(a + b < 10){
            System.out.println(a + b);
        }else{
            System.out.println("error");
        }
    }

}


Compiler output:
Main.java:2: error: class Atcoder_Virtual_A is public, should be declared in a file named Atcoder_Virtual_A.java
public class Atcoder_Virtual_A{
       ^
1 error
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <stack>
#include <cmath>
#include <queue>
#include <numeric>


int main()
{
	int n, m;

	std::cin >> n >> m;

	if (n + m >= 10) {
		std::cout << "error" << std::endl;
	}
	else {
		std::cout << a + b << std::endl;
	}
	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:30: error: 'a' was not declared in this scope
   22 |                 std::cout << a + b << std::endl;
      |                              ^
a.cc:22:34: error: 'b' was not declared in this scope
   22 |                 std::cout << a + b << std::endl;
      |                                  ^
Language: C++

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

#define INF 1.1e9
#define LINF 1.1e18
#define FOR(i,a,b) for (int i = (a); i < (b); ++i)
#define REP(i,n) FOR(i,0,n)
#define ALL(v) (v).begin(), (v).end()
#define pb push_back
#define pf push_front
#define fi first
#define se second
#define BIT(x,n) bitset<n>(x)

typedef long long ll;
typedef pair<int,int> P;
typedef pair<P,int> PP;

struct edge {
	int to,cost;
	edge(int t,int c):to(t),cost(c) {}
};

int dx[]={1,-1,0,0},dy[]={0,0,1,-1};
int ddx[]={1,1,1,0,-1,-1,-1,0},ddy[]={1,0,-1,-1,-1,0,1,1};

ll mypow(ll x,ll n,ll m) {	//xのn乗をmで割った余り
	if(n==0) return 1;
	if(n%2==0) return mypow(x*x%m,n/2,m);
	else return x*mypow(x,n-1,m)%m;
}

//-----------------------------------------------------------------------------

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

	int a,b;
	cin>>a>>b;
	cout<<(a+b>=10?"error":a+b)<<endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:44:23: error: operands to '?:' have different types 'const char*' and 'int'
   44 |         cout<<(a+b>=10?"error":a+b)<<endl;
      |                ~~~~~~~^~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
	int a, b;
	cin >> a >> b;
	if(a + b < 10){
		cout << a + b; << endl;
		return 0;
	}else{
		cout << "error" << endl;
		return 0;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected primary-expression before '<<' token
    7 |                 cout << a + b; << endl;
      |                                ^~
Language: C++

#include <iostream>
int main(){
	int a, b;
	cin >> a >> b;
	if(a + b < 10){
		cout << a + b; << endl;
		return 0;
	}else{
		cout << "error" << endl;
		return 0;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         cin >> a >> b;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |                 cout << a + b; << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:32: error: expected primary-expression before '<<' token
    6 |                 cout << a + b; << endl;
      |                                ^~
a.cc:6:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |                 cout << a + b; << endl;
      |                                   ^~~~
      |                                   std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |                 cout << "error" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |                 cout << "error" << endl;
      |                                    ^~~~
      |                                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(void) {
  int a, b;
  cin >> a >> b;
  int sum = a + b;
  cout << (sum < 10 ? sum : "error") << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: operands to '?:' have different types 'int' and 'const char*'
    7 |   cout << (sum < 10 ? sum : "error") << endl;
      |            ~~~~~~~~~^~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
cout<<(a+b>9?"error":a+b)<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: operands to '?:' have different types 'const char*' and 'int'
    6 | cout<<(a+b>9?"error":a+b)<<endl;
      |        ~~~~~^~~~~~~~~~~~
Language: C++

#include<bits/c++.h>

using namespace std;

int main(void){
    int A, B;
    cin >> A >> B;
    if(A+B >= 10) cout << "error" << endl;
    else cout << A+B <<endl;
    return 0;
}

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

#include <stdio.h>
 
int main () {
 int a, b;
 scanf("%d %d" &a, &b);

 int c = 0;
 c = a+b;
 
 if (c>=10) printf("error");
 else printf("%d", a+b);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:16: error: invalid operands to binary & (have 'char *' and 'int')
    5 |  scanf("%d %d" &a, &b);
      |        ~~~~~~~ ^
      |        |
      |        char *
Language: C

#include <stdio.h>
 
int main () {
 int a, b;
 scanf("%d %d" &a, &b);
 
 int c = 0;
 c = a+b;

 if (c>=10) printf("error");
 else printf("%d", a+b);
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:16: error: invalid operands to binary & (have 'char *' and 'int')
    5 |  scanf("%d %d" &a, &b);
      |        ~~~~~~~ ^
      |        |
      |        char *
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <queue>
using namespace std;

const int MAX_N = 10000;
#define ll long long
int N, A, B;
vector<int> h;
bool enough(int T)
{
	ll cnt = 0;
	for (int i = 0; i < N; i++)
	{
		if (h[i] <= B*T) continue;
		cnt += (int)ceil((double)(h[i]-B*T) / (A-B));
	}
	return cnt <= T;
}


int main()
{
	//widespread
	
	cin >> N >> A >> B;
	h.resize(N);
	
	for (int i = 0; i < N; i++)
	{
		cin>>h[i];
	}
	sort(h.begin(), h.end());
	int l = -1;
	int r = h.back() / B + 1;
	while (r-l>1)
	{
		int m = (r+l) / 2;
		(enough(m) ? r : l) = m;
	}
	cout << r << endl;
	return 0;
}

Compiler output:
a.cc: In function 'bool enough(int)':
a.cc:18:29: error: 'ceil' was not declared in this scope
   18 |                 cnt += (int)ceil((double)(h[i]-B*T) / (A-B));
      |                             ^~~~
Language: C++

#include <iostream>
#include <math.h>
#include <algorithm>
#include <vector>
#include <numeric>
using namespace std;
const double PI = acos(-1.0);
const string ALP = "abcdefghijklmnopqrstuvwxyz";
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
int main(){
  int a,b;
  cin >> a >> b;
  cout << ((a+b<10)?a+b:"error") << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:20: error: operands to '?:' have different types 'int' and 'const char*'
   16 |   cout << ((a+b<10)?a+b:"error") << endl;
      |            ~~~~~~~~^~~~~~~~~~~~
Language: C++

g#include <bits/stdc++.h>

#define REP(i, n) for(int i = 0; i < (int)(n); ++i)
#define FOR(i, m, n) for(int i = (m); i < (int)(n); ++i)
#define ALL(x) (x).begin(), (x).end()
#define INF 2000000000

#ifdef LOCAL
  #define eprintf(...) fprintf(stdout, __VA_ARGS__)
#else
  #define eprintf(...) 0
#endif

using namespace std;

typedef long long LL;
typedef unsigned long long ULL;
typedef unsigned int uint;

int main() {
  string s;
  cin >> s;
  map<char, int> mp;

  REP(i, s.size()) {
    char c = s[i];
    if(mp[c] == 1) {
      cout << "no" << endl;
      return 0;
    }
    mp[c]++;
  }
  cout << "yes" << endl;
  return 0;

  return 0;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | g#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'g' does not name a type
    1 | g#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:21:3: error: 'string' was not declared in this scope
   21 |   string s;
      |   ^~~~~~
a.cc:22:3: error: 'cin' was not declared in this scope
   22 |   cin >> s;
      |   ^~~
a.cc:22:10: error: 's' was not declared in this scope
   22 |   cin >> s;
      |          ^
a.cc:23:3: error: 'map' was not declared in this scope
   23 |   map<char, int> mp;
      |   ^~~
a.cc:23:7: error: expected primary-expression before 'char'
   23 |   map<char, int> mp;
      |       ^~~~
a.cc:27:8: error: 'mp' was not declared in this scope
   27 |     if(mp[c] == 1) {
      |        ^~
a.cc:28:7: error: 'cout' was not declared in this scope
   28 |       cout << "no" << endl;
      |       ^~~~
a.cc:28:23: error: 'endl' was not declared in this scope
   28 |       cout << "no" << endl;
      |                       ^~~~
a.cc:31:5: error: 'mp' was not declared in this scope
   31 |     mp[c]++;
      |     ^~
a.cc:33:3: error: 'cout' was not declared in this scope
   33 |   cout << "yes" << endl;
      |   ^~~~
a.cc:33:20: error: 'endl' was not declared in this scope
   33 |   cout << "yes" << endl;
      |                    ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define FOR(i, n) for(int i = 0; i < (n); i++)
#define MEM(a, x) memset(a, x, sizeof(a))
#define ALL(a) a.begin(), a.end()
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end())
typedef long long ll;

int a, b;

int main(int argc, char const *argv[]) {
	ios_base::sync_with_stdio(false);
	cin >> a >> b;
	cout << (a+b >= 10 ? "error" : a+b) << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:14:28: error: operands to '?:' have different types 'const char*' and 'int'
   14 |         cout << (a+b >= 10 ? "error" : a+b) << endl;
      |                  ~~~~~~~~~~^~~~~~~~~~~~~~~
Language: C

#include<stdio.h>
int main(void){
        int A,B;
        scanf("%d %d",&A,&B);
        if(A+B>=10){
          printf(error\n);
        }
        else{
          printf("%d\n",A+B);
        }
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:23: error: stray '\' in program
    6 |           printf(error\n);
      |                       ^
main.c:6:18: error: 'error' undeclared (first use in this function); did you mean 'perror'?
    6 |           printf(error\n);
      |                  ^~~~~
      |                  perror
main.c:6:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:23: error: expected ')' before 'n'
    6 |           printf(error\n);
      |                 ~     ^~
      |                       )
Language: C++

A, B = map(int, input().split())

print(A+B if A+B < 10 else 'error')

Compiler output:
a.cc:3:28: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    3 | print(A+B if A+B < 10 else 'error')
      |                            ^~~~~~~
a.cc:1:1: error: 'A' does not name a type
    1 | A, B = map(int, input().split())
      | ^
Language: C

#include <stdio.h>
#include <string.h>
int main(void){
char a[26];
int  len, i,j;
scanf("%s"&a[]);
len = strlen(a);
for(i=0;i+1<len;i++){
for(j=i+1;j<len;j++){
if(a[i]==a[j]){
printf("no");
return 0;
}
}
}
printf("yes");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected expression before ']' token
    6 | scanf("%s"&a[]);
      |              ^
Language: C++

#include<cstdio>
#include<iostream>
using namespace std;
int main(void){
	int a,b;
	sin>>a>>b;
	if(a+b>=10) cout<<"error"<<endl;
	else cout<<a+b<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'sin' was not declared in this scope
    6 |         sin>>a>>b;
      |         ^~~
Language: C++

#include<stdio.h>
int main(void)
{
	int a,b;
	scanf("%d %d",&a,&b);
	a=a+b;
	if(a>9)	printf("error\n");
	else    printf("%d",a);
	retrn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'retrn' was not declared in this scope
    9 |         retrn 0;
      |         ^~~~~
Language: C++

#include<cstdio>
#includee<iostream>
using namespace std;
int main(void){
	int a,b;
	sin>>a>>b;
	if(a+b>=10) cout<<"error"<<endl;
	else cout<<a+b<<endl;
	return 0;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #includee; did you mean #include?
    2 | #includee<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: error: 'sin' was not declared in this scope; did you mean 'stdin'?
    6 |         sin>>a>>b;
      |         ^~~
      |         stdin
a.cc:7:21: error: 'cout' was not declared in this scope
    7 |         if(a+b>=10) cout<<"error"<<endl;
      |                     ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | #includee<iostream>
a.cc:7:36: error: 'endl' was not declared in this scope
    7 |         if(a+b>=10) cout<<"error"<<endl;
      |                                    ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<cstdio>
  +++ |+#include <ostream>
    2 | #includee<iostream>
a.cc:8:14: error: 'cout' was not declared in this scope
    8 |         else cout<<a+b<<endl;
      |              ^~~~
a.cc:8:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:25: error: 'endl' was not declared in this scope
    8 |         else cout<<a+b<<endl;
      |                         ^~~~
a.cc:8:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

int main(void){
 int x,y; cin >> x >> y;
 cout << (x+y < 10) ? (x+y) : "error" << endl; 
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:39: error: invalid operands of types 'const char [6]' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |  cout << (x+y < 10) ? (x+y) : "error" << endl;
      |                               ~~~~~~~~^~~~~~~
Language: C++

#include"bits/stdc++.h"

#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)

using namespace std;
using ll = long long;
using pos = pair<ll, ll>;

ll a,b;
void solve();

int main() {

   solve();
   return 0;

}

void solve() {
	cin >>a>>b;
	if (a+b<10){
		cout << a+b;
	else{
		cout << "error";
	}
	cout << endl;
	

}

Compiler output:
a.cc: In function 'void solve()':
a.cc:29:9: error: expected '}' before 'else'
   29 |         else{
      |         ^~~~
a.cc:27:20: note: to match this '{'
   27 |         if (a+b<10){
      |                    ^
Language: C++

#include"bits/stdc++.h"

#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)

using namespace std;
using ll = long long;
using pos = pair<ll, ll>;

ll a,b;
void solve();

int main() {

   solve();
   return 0;

}

void solve() {
	cin >>a>>b;
	cout << (a+b<10?a+b:"error") << endl;

}

Compiler output:
a.cc: In function 'void solve()':
a.cc:27:24: error: operands to '?:' have different types 'll' {aka 'long long int'} and 'const char*'
   27 |         cout << (a+b<10?a+b:"error") << endl;
      |                  ~~~~~~^~~~~~~~~~~~
Language: Java

import java.util.*;
public class Restricted {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		
		if(A+B >= 10)
			System.out.println("error");
		else
			System.out.println(A+B);
	}
}

Compiler output:
Main.java:2: error: class Restricted is public, should be declared in a file named Restricted.java
public class Restricted {
       ^
1 error
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
	int a;
	cin >> a;
	int b;
	cin >> b;


		int c;
		cin >> c;
		int a;
		cin >> a;
		int b;
		cin >> b;

		if (a + b >= 10)
		cout << "error" << endl;
		else 
		cout << a + b << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: redeclaration of 'int a'
   14 |                 int a;
      |                     ^
a.cc:6:13: note: 'int a' previously declared here
    6 |         int a;
      |             ^
a.cc:16:21: error: redeclaration of 'int b'
   16 |                 int b;
      |                     ^
a.cc:8:13: note: 'int b' previously declared here
    8 |         int b;
      |             ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int x, y;
  cin >> x >> y;
  if(a + b >= 10) {
    cout << "error" << endl;
  } else {
    cout << a + b << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'a' was not declared in this scope
    7 |   if(a + b >= 10) {
      |      ^
a.cc:7:10: error: 'b' was not declared in this scope
    7 |   if(a + b >= 10) {
      |          ^