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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected primary-expression before '>' token
    8 |         if(a+b=>10||a>10||b>10) cout<<"error"<<endl;
      |                ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'error' was not declared in this scope; did you mean 'perror'?
   11 |     cout <<error <<endl;
      |            ^~~~~
      |            perror
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected '(' before '{' token
   10 |   else if{
      |          ^
      |          (
Language: C++

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

int main() {
  string s;
  char jubge = 'z';
  bool a = true;
  cin >> s;
  sort(s.begin(),s.end());
  for(int i = 0; i < s.size(); i++){
    if(z == s.at(i)){
      a = false;
      break;
    }else{
      jubge = s.at(i);
    }
  }
  if(a)
    cout << "yes" << endl;
  else
    cout << "no" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 'z' was not declared in this scope
   11 |     if(z == s.at(i)){
      |        ^
Language: C++

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

int main(){
    int A, B;
    cin >> A >> B;
    
    cout << (A + B < 10 ? A + B : "error") << endl;
}

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABCtest
{
    delegate void Signal();
    class Program
    {
        static void Main(string[] args)
        {
            int A, B ,Ans;         
            string[] value = Console.ReadLine().Split(' ');

            if (value.Length == 1) return;
            
            if (!int.TryParse(value[0], out A) || !int.TryParse(value[1], out B)) return;
            if (A <= 1 || (B >= 9)) return;

            Ans = A + B;
            if(Ans >= 10) Console.WriteLine("erroe");
            else  Console.WriteLine(Ans);

            Console.ReadLine();


        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:9:5: error: 'delegate' does not name a type
    9 |     delegate void Signal();
      |     ^~~~~~~~
a.cc:12:26: error: 'string' has not been declared
   12 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:12:35: error: expected ',' or '...' before 'args'
   12 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:30:6: error: expected ';' after class definition
   30 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABCtest::Program::Main(int*)':
a.cc:15:13: error: 'string' was not declared in this scope
   15 |             string[] value = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:15:20: error: expected primary-expression before ']' token
   15 |             string[] value = Console.ReadLine().Split(' ');
      |                    ^
a.cc:17:17: error: 'value' was not declared in this scope
   17 |             if (value.Length == 1) return;
      |                 ^~~~~
a.cc:19:18: error: expected primary-expression before 'int'
   19 |             if (!int.TryParse(value[0], out A) || !int.TryParse(value[1], out B)) return;
      |                  ^~~
a.cc:19:18: error: expected ')' before 'int'
a.cc:19:16: note: to match this '('
   19 |             if (!int.TryParse(value[0], out A) || !int.TryParse(value[1], out B)) return;
      |                ^
a.cc:23:27: error: 'Console' was not declared in this scope
   23 |             if(Ans >= 10) Console.WriteLine("erroe");
      |                           ^~~~~~~
a.cc:24:19: error: 'Console' was not declared in this scope
   24 |             else  Console.WriteLine(Ans);
      |                   ^~~~~~~
a.cc:26:13: error: 'Console' was not declared in this scope
   26 |             Console.ReadLine();
      |             ^~~~~~~
Language: C++

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

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

}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'cotu' was not declared in this scope
   11 |     cotu <<A+B;
      |     ^~~~
Language: C++

A,B = list(map(int,input().split(' ')))
#print(n,m)
c = A+B           
ans = 'error' if c >=10 else c   
print(ans)

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #print
    2 | #print(n,m)
      |  ^~~~~
a.cc:4:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    4 | ans = 'error' if c >=10 else c
      |       ^~~~~~~
a.cc:1:1: error: 'A' does not name a type
    1 | A,B = list(map(int,input().split(' ')))
      | ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define rep1(i,n) for (int i = 1; i <= (n); i++)
#define repi(i,a,b) for (int i = (a); i < (b); i++)
#define all(x) (x).begin(),(x).end()
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using pii = pair<int, int>;
using vc = vector<char>;
using vvc = vector<vc>;
using vs = vector<string>;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:24:11: error: expected '(' before '{' token
   24 |   else if {
      |           ^
      |           (
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define rep1(i,n) for (int i = 1; i <= (n); i++)
#define repi(i,a,b) for (int i = (a); i < (b); i++)
#define all(x) (x).begin(),(x).end()
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using pii = pair<int, int>;
using vc = vector<char>;
using vvc = vector<vc>;
using vs = vector<string>;

int main() {
  int A, B;
  cin >> A >> B;
  
  cout << (A+B<=9 ? A+B : "error") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:19: error: operands to '?:' have different types 'int' and 'const char*'
   21 |   cout << (A+B<=9 ? A+B : "error") << 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;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: 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 <= 9 ? a+b : "error");
  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 << (a+b <= 9 ? a+b : "error");
      |            ~~~~~~~~~^~~~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
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:8:24: error: operands to '?:' have different types 'const char*' and 'int'
    8 |   cout << (a + b >= 10 ? "error": a + b) << endl;
      |            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
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:9:22: error: operands to '?:' have different types 'const char*' and 'int'
    9 |     cout << (a+b>=10 ? "error" : a+b) << endl;
      |              ~~~~~~~~^~~~~~~~~~~~~~~
Language: C++

#inlcude<iostream>
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:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:12: error: 'cin' was not declared in this scope
    5 |   int a,b; 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 | #inlcude<iostream>
a.cc:6:14: error: 'cout' was not declared in this scope
    6 |   if(a+b<10) cout<<a+b<<endl;
      |              ^~~~
a.cc:6:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:25: error: 'endl' was not declared in this scope
    6 |   if(a+b<10) cout<<a+b<<endl;
      |                         ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude<iostream>
a.cc:7:8: error: 'cout' was not declared in this scope
    7 |   else cout<<"error"<<endl;
      |        ^~~~
a.cc:7:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:23: error: 'endl' was not declared in this scope
    7 |   else cout<<"error"<<endl;
      |                       ^~~~
a.cc:7:23: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#inlcude<iostream>
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:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:12: error: 'cin' was not declared in this scope
    5 |   int a,b; 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 | #inlcude<iostream>
a.cc:6:8: error: 'B' was not declared in this scope
    6 |   if(a+B<10) cout<<a+b<<endl;
      |        ^
a.cc:6:14: error: 'cout' was not declared in this scope
    6 |   if(a+B<10) cout<<a+b<<endl;
      |              ^~~~
a.cc:6:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:25: error: 'endl' was not declared in this scope
    6 |   if(a+B<10) cout<<a+b<<endl;
      |                         ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude<iostream>
a.cc:7:8: error: 'cout' was not declared in this scope
    7 |   else cout<<"error"<<endl;
      |        ^~~~
a.cc:7:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:23: error: 'endl' was not declared in this scope
    7 |   else cout<<"error"<<endl;
      |                       ^~~~
a.cc:7:23: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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


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

#include <cstdio>

int main(){
    int A, B;
    scanf("%d%d", &A, &B);
    if(X+Y<10) printf("%d\n", X+Y);
    else printf("error\n");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'X' was not declared in this scope
    6 |     if(X+Y<10) printf("%d\n", X+Y);
      |        ^
a.cc:6:10: error: 'Y' was not declared in this scope
    6 |     if(X+Y<10) printf("%d\n", X+Y);
      |          ^
Language: C

#include <stdio.h>

int main() {
  int number_x, number_y;
  scanf("%d %d", &number_x, &number_y);
  if(number_x + number_y < 10) {
    printf("%d\n"number_x + number_y);
  } else {
    printf("error\n");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected ')' before 'number_x'
    7 |     printf("%d\n"number_x + number_y);
      |           ~      ^~~~~~~~
      |                  )
Language: C++

#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <numeric>
#include <tuple>
#include <stack>

#define rep(i,n) for (int i = 0; i < (n); ++i)
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
#define print(s) cout << s << endl
typedef long long ll;
using namespace std;

int ctoi(char c) {
	if (c >= '0' && c <= '9') {
		return c - '0';
	}
	return 0;
}

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:27:27: error: operands to '?:' have different types 'const char*' and 'int'
   27 |         cout << (a+b >= 10? "error" : a+b) << endl;
      |                  ~~~~~~~~~^~~~~~~~~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'ina' was not declared in this scope; did you mean 'int'?
    4 |   ina a,b;
      |   ^~~
      |   int
a.cc:5:10: error: 'a' was not declared in this scope
    5 |   cin >> a >> b;
      |          ^
a.cc:5:15: error: 'b' was not declared in this scope
    5 |   cin >> a >> b;
      |               ^
Language: C++

#include <iostream>
#include <math.h>
#include <algorithm>
#include <string>
#include <string.h>
#include <queue>
using namespace std;

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

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

#include <iostream>
#include <math.h>
#include <algorithm>
#include <string>
#include <string.h>
#include <queue>
using namespace std;

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected primary-expression before ',' token
   10 |     cout<<"error"<,endl;
      |                   ^
Language: C++

#include<bits/stdc++.h>
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: In function 'int main()':
a.cc:14:12: error: expected '}' at end of input
   14 |   return 0;
      |            ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iosteam>
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: iosteam: No such file or directory
    1 | #include<iosteam>
      |         ^~~~~~~~~
compilation terminated.
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:21: 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(void){

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


Compiler output:
a.cc:9:3: error: extended character 　 is not valid in an identifier
    9 |   　cout<<"error"<<endl;
      |   ^
a.cc: In function 'int main()':
a.cc:9:3: error: '\U00003000cout' was not declared in this scope
    9 |   　cout<<"error"<<endl;
      |   ^~~~~~
Language: C++

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

int main(void){

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


Compiler output:
a.cc:9:3: error: extended character 　 is not valid in an identifier
    9 |   　cout<<"error"<<endl;
      |   ^
a.cc: In function 'int main()':
a.cc:9:3: error: '\U00003000cout' was not declared in this scope
    9 |   　cout<<"error"<<endl;
      |   ^~~~~~
Language: C++

#include<bits/stdc++.h>

int main(void){

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

Compiler output:
a.cc:8:3: error: extended character 　 is not valid in an identifier
    8 |   　cout<<"error"<<endl;
      |   ^
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>>b;
      |   ^~~
      |   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:3: error: '\U00003000cout' was not declared in this scope
    8 |   　cout<<"error"<<endl;
      |   ^~~~~~
a.cc:8:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   　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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     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:11:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     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>
#include <numeric>
#include<iostream>
#include<vector>
#include<algorithm>
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:11:21: error: operands to '?:' have different types 'const char*' and 'int'
   11 |     cout << (a+b>=10?"error":a+b) << endl;
      |              ~~~~~~~^~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#include <numeric>
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

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


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

#include <iostream>

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

Compiler output:
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 >> 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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     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:10:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << "error" << 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:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   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:13:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   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 <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:21: error: operands to '?:' have different types 'const char*' and 'int'
    6 |   cout << (a+b > 10 ? "error" : a+b) << endl;
      |            ~~~~~~~~~^~~~~~~~~~~~~~~
Language: Java

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

Compiler output:
Main.java:3: error: invalid method declaration; return type required
  public static main(String[] args){
                ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'X' was not declared in this scope
    6 |   cin>>X>>A>>B;
      |        ^
Language: C++

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

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

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

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

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

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

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

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

#include<iostream>
#include<stdio.h>
#include<string.h>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<set>
#include<iomanip>



#define REP(i,n) for (int i = 0; (i) < (n); ++ (i))

using namespace std;
int a,b;

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



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

#include<iostream>
using namespace std;

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

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

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

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

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

#include<bits/stdc++.h>
#include<algorithm>
using namespace std;
#define str string
#define rep(x,y) for(int i=x;i<y;i++)
#define REP(x,y) for(int j=x;j<y;j++)
#define all(x) x.begin(),x.end()
#define int long long
signed  main(){
  int N,K,B;
  vector<int>a={0,1,3,1,2,1,2,1,1,2,1,2,1};
  str S1,S2,S3;
  cin>>N>>K;
  cout<<(N+K<=10?N+K:"error");
}


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

#include<bits/stdc++.h>
#include<algorithm>
using namespace std;
#define str string
#define rep(x,y) for(int i=x;i<y;i++)
#define REP(x,y) for(int j=x;j<y;j++)
#define all(x) x.begin(),x.end()
#define int long long
signed  main(){
  double N,K,B;
  vector<int>a={0,1,3,1,2,1,2,1,1,2,1,2,1};
  str S1,S2,S3;
  cin>>N>>K;
  cout<<(N+K<=10?N+K:"error");
}


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

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

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

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

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


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

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


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

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


Compiler output:
a.cc: In function 'int maiN()':
a.cc:6:21: error: operands to '?:' have different types 'int' and 'const char*'
    6 |         cout<<(a+b>9?a+b:"error")<<endl;
      |                ~~~~~^~~~~~~~~~~~
a.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
    7 | }
      | ^
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int maiN()':
a.cc:6:22: error: expected primary-expression before ')' token
    6 |         cout<<(a+b>9?)a+b:"error"<<endl;
      |                      ^
a.cc:6:22: error: expected ':' before ')' token
    6 |         cout<<(a+b>9?)a+b:"error"<<endl;
      |                      ^
      |                      :
a.cc:6:22: error: expected primary-expression before ')' token
a.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
    7 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int maiN()':
a.cc:6:21: error: operands to '?:' have different types 'int' and 'const char*'
    6 |         cout<<(a+b>9?a+b:"error")<<endl;
      |                ~~~~~^~~~~~~~~~~~
a.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
    7 | }
      | ^
Language: C++

#include <iostream>
 
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:19: error: operands to '?:' have different types 'const char*' and 'int'
    8 |   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;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: 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;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: 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>9?"error":a+b)<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: operands to '?:' have different types 'const char*' and 'int'
    6 |   cout<<(a+b>9?"error":a+b)<<endl;
      |          ~~~~~^~~~~~~~~~~~
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:6:16: error: expected primary-expression before '>' token
    6 |         if(a+b=>10)cout<<"error"<<endl;
      |                ^
Language: C++

#include <cmath>
#include <iostream>
#include <stdio.h>
#include <string>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <set>
#include <limits.h>
#include <map>
#include <numeric>

namespace test {
	std::string to_string (char val) {
		return std::string (1, val);
		// return std::string{val};
	}
	//if( str.find ("r") != string::npos)
}

using namespace std;
typedef long long int llint;

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:27:31: error: operands to '?:' have different types 'const char*' and 'int'
   27 |         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)>=){
        cout << "error" << endl;
    }else{
        cout << a+b << endl;
    }
}

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

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

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





Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'a'
    6 |   cin a >> b;
      |      ^~
      |      ;
Language: C++

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

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





Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'a'
    6 |   cin a>>b;
      |      ^~
      |      ;
Language: C++

using namespace std;
#include<bits/stdc++.h>
#define BEGIN ios_base::sync_with_stdio(0);cin.tie(0);
#define END return EXIT_SUCCESS;
#define FOR(I,A,B) for((I)=(A);(I)<(B);(I)++)
#define REP(I,N) FOR((I),0,(N))
#define UP(I,A,B) for((I)=(A);(I)<=(B);(I)++)
#define DW(I,A,B) for((I)=(A);(I)>=(B);(I)--)
#define IN(P) cin>>(P)
#define IN2(P1,P2) cin>>(P1)>>(P2)
#define IN3(P1,P2,P3) cin>>(P1)>>(P2)>>(P3)
#define INS(I,N,V) REP((I),(N)) cin>>(V[I])
#define INS2(I,N,V1,V2) REP((I),(N)) cin>>(V1[I])>>(V2[I]);
#define INS3(I,N,V1,V2,V3) REP((I),(N)) cin>>(V1[I])>>(V2[I])>>(V3[I]);
#define OUT(P) cout<<(P)<<endl
#define OUT2(P1,P2) cout<<(P1)<<" "<<(P2)<<endl
#define OUT3(P1,P2,P3) cout<<(P1)<<" "<<(P2)<<" "<<(P3)<<endl
#define OUTS(I,N,V) REP((I),(N)) cout<<(V[i])<<endl
#define ALL(C) (C).begin(),(C).end()
#define RALL(C) (C).rbegin(),(C).rend()
#define mp make_pair
#define pb push_back
#define lb lower_bound
#define ub upper_bound
template<class T>inline bool chmax(T& a,T b){if(a<b){a=b;return true;}return false;}
template<class T>inline bool chmin(T& a,T b){if(a>b){a=b;return true;}return false;}

int A,B;
inline void solve(){
  IN2(A,B);
  OUT(A+B>9?"error":A+B);
}

int main(int argc,char**argv){
  BEGIN
  solve();
  END
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:31:12: error: operands to '?:' have different types 'const char*' and 'int'
   31 |   OUT(A+B>9?"error":A+B);
      |       ~~~~~^~~~~~~~~~~~
a.cc:15:23: note: in definition of macro 'OUT'
   15 | #define OUT(P) cout<<(P)<<endl
      |                       ^
Language: C++

#include "stdafx.h"
#include <algorithm>
#include <array>
#include <vector>
#include <iostream>
#include <fstream>
#include <string>
#include <cmath>
#include <functional>
#include <queue>

//AtCoderC++.cpp

using namespace std;

template<typename T> void Show(vector<vector<T>> v) {
	for (int i = 0; i < v.size(); i++) {
		for (int j = 0; j < v[i].size(); j++) {
			cout << v[i][j];
			if (j != v[i].size() - 1) {
				cout << " ";
			} else {
				cout << endl;
			}
		}
	}
}
template<typename T> void Show(vector<T> v) {
	for (int i = 0; i < v.size(); i++) {
		cout << v[i];
		if (i != v.size() - 1) {
			cout << " ";
		} else {
			cout << endl;
		}
	}
}

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


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

#include "stdafx.h"
#include <algorithm>
#include <array>
#include <vector>
#include <iostream>
#include <fstream>
#include <string>
#include <cmath>
#include <functional>
#include <queue>

//AtCoderC++.cpp

using namespace std;

template<typename T> void Show(vector<vector<T>> v) {
	for (int i = 0; i < v.size(); i++) {
		for (int j = 0; j < v[i].size(); j++) {
			cout << v[i][j];
			if (j != v[i].size() - 1) {
				cout << " ";
			} else {
				cout << endl;
			}
		}
	}
}
template<typename T> void Show(vector<T> v) {
	for (int i = 0; i < v.size(); i++) {
		cout << v[i];
		if (i != v.size() - 1) {
			cout << " ";
		} else {
			cout << endl;
		}
	}
}

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


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

#include "stdafx.h"
#include <algorithm>
#include <array>
#include <vector>
#include <iostream>
#include <fstream>
#include <string>
#include <cmath>
#include <functional>
#include <queue>

//AtCoderC++.cpp

using namespace std;

template<typename T> void Show(vector<vector<T>> v) {
	for (int i = 0; i < v.size(); i++) {
		for (int j = 0; j < v[i].size(); j++) {
			cout << v[i][j];
			if (j != v[i].size() - 1) {
				cout << " ";
			} else {
				cout << endl;
			}
		}
	}
}
template<typename T> void Show(vector<T> v) {
	for (int i = 0; i < v.size(); i++) {
		cout << v[i];
		if (i != v.size() - 1) {
			cout << " ";
		} else {
			cout << endl;
		}
	}
}

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


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

#include <iostream>
using namespace std;

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

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

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

int main(int argc, char const *argv[])
{
	int a,b,c;
	cin >> a >> b;
	c = a + b;
	if(c < 10)	cout << c <, endl;
	else cout <<"error" << endl;

	return 0;
}

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

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#define For(i, n) for(int i = 0; i < (n); i ++)
#define Range(c) c.begin(), c.end()
#define RevRange(c) c.begin(), c.end()
#define Cin(T, x) T x; cin >> x;
#define Cins(T, n, xs) vector<T> xs(n); For(i, n) cin >> xs[i];
#define Cout(val) cout << (val) << "\n";
#define Sort(a) sort(Range(a));
#define DeSort(a) sort(RevRange(a));

using namespace std;
using ll = long long;

int main(void){
    Cin(int, a);
    Cin(int, b);
    if(a+b >= 10) Cout("error");
  else Cout(a+b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:3: error: 'else' without a previous 'if'
   21 |   else Cout(a+b);
      |   ^~~~
Language: C++

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

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

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


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

#include <iostream>
using namespace std;
 
int main(){
  int a, b;
  cin >> a >> b;
  cout << (a+b<10?(a+b):"error") << '\n';
  
  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") << '\n';
      |            ~~~~~~^~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
 
int main(){
  int a, b;
  cin >> a >> b;
  cout << (a+b<10?a+b:"error") << '\n';
  
  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") << '\n';
      |            ~~~~~~^~~~~~~~~~~~
Language: C++

#include <iostream>
#include <cstdio>

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:8:26: error: operands to '?:' have different types 'const char*' and 'int'
    8 |   cout << ((a + b >= 10) ? "error" : a + b) << endl;
      |            ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <cstdio>

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:8:24: error: operands to '?:' have different types 'const char*' and 'int'
    8 |   cout << (a + b >= 10 ? "error" : a + b) << endl;
      |            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
    int a,b;
    cin >> a >> b;
    if(a+b<10){
      cout << a+b;
    }else{
      cout <<error;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: 'error' was not declared in this scope; did you mean 'perror'?
   17 |       cout <<error;
      |              ^~~~~
      |              perror
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:11: error: expected expression before '%' token
    4 |     scanf(%d%d,&a,&b);
      |           ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <array>
#include <tuple>
#include <random>

using namespace std;
typedef long long int ll;

#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for(int i = int(a); i < int(b); i++)
#define rep(...) _overload3(__VA_ARGS__, repi, _rep,)(__VA_ARGS__)
#define all(x) (x).begin(), (x).end()

#define inf 10000000000

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

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


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

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <array>
#include <tuple>
#include <random>

using namespace std;
typedef long long int ll;

#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for(int i = int(a); i < int(b); i++)
#define rep(...) _overload3(__VA_ARGS__, repi, _rep,)(__VA_ARGS__)
#define all(x) (x).begin(), (x).end()

#define inf 10000000000

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

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


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

#include <iostream>

using namespace std;

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

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

#include <iostream>

using namespace std;

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

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

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

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

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

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

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

#include<Stdio.h>

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

Compiler output:
main.c:1:9: fatal error: Stdio.h: No such file or directory
    1 | #include<Stdio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C

#include<Stdio.h>

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

Compiler output:
main.c:1:9: fatal error: Stdio.h: No such file or directory
    1 | #include<Stdio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C

#include<Stdio.h>

int main(){
  int a, b;
  
  if(a + b < 10){
    printf("%d", a + b);
} else {
    printf("error\n");
  }
  
  return 0;
}

Compiler output:
main.c:1:9: fatal error: Stdio.h: No such file or directory
    1 | #include<Stdio.h>
      |         ^~~~~~~~~
compilation terminated.