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

#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <stack>
#include <iomanip>
#include <queue>
#include <deque>
#include <sstream>
#include <stdio.h>
#include <string>
#include <cmath>
#include <map>
#include <utility>
using namespace std;

#define s(n) scanf("%d",&n)
#define sc(n) scanf("%c",&n)
#define ss(n) scanf("%s",&n)
#define MOD 1000000007
#define ll long long int
#define vi vector<int>
#define vii vector< vector<int> >
#define PI 3.1415926535897932384626433832795

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



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

#include <stdio.h>

int main() {
  
  int i, j;
  int tmp =0;
  
  char str[26];
  
  scanf("%s", str);
  
  for(i = 0; < strlen(str); i++) {
     for(j = i + 1; j < strlen(str); j++) {
     
     if(str[i] == str[j]) {
     
     tmp = 1;
  }
  
  }
  
  }
  
  if (tmp == 1) {
    printf("no\n");
    
  } else {
    printf("yes\n");
    
  }
  
    return 0;
  }
  
  

Compiler output:
main.c: In function 'main':
main.c:12:14: error: expected expression before '<' token
   12 |   for(i = 0; < strlen(str); i++) {
      |              ^
main.c:13:25: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   13 |      for(j = i + 1; j < strlen(str); j++) {
      |                         ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:13:25: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   13 |      for(j = i + 1; j < strlen(str); j++) {
      |                         ^~~~~~
main.c:13:25: note: include '<string.h>' or provide a declaration of 'strlen'
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
int main(){
    int a,b;
    cin>>a>>b;

    sum = a+b;
    if(sum>9){
        cout<<"error";
    }else{
        cout<<sum;
    }
    
}

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

#include <bits/stdc++.h>
 
using namespace std;
 
int main(){
    int a,b;
    cin>>a>>b;

    sum = a+b;
    if(sum>=10){
        cout<<"error";
    }

cout<<sum;
}

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

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

    return 0;
}


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

#include <stdio.h>

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

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

#include <iostream.h>

using namespace std

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

Compiler output:
a.cc:1:10: fatal error: iostream.h: No such file or directory
    1 | #include <iostream.h>
      |          ^~~~~~~~~~~~
compilation terminated.
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: Java

class Main {
  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:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
import java.util.Random;
import java.util.Arrays;


public class Main {
    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:16: error: reached end of file while parsing
    }
     ^
1 error
Language: C++

#include <iostream>
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:9:12: error: expected ';' before 'cout'
    9 |  if( (C<10) cout << C<<endl;
      |            ^~~~~
      |            ;
a.cc:10:1: error: expected primary-expression before 'else'
   10 | else cout <<"error"<<endl;
      | ^~~~
a.cc:9:29: error: expected ')' before 'else'
    9 |  if( (C<10) cout << C<<endl;
      |    ~                        ^
      |                             )
   10 | else cout <<"error"<<endl;
      | ~~~~
Language: C++

#include<stdio.h>

void main(){
  int a, b;

  scanf("%d %d", &a, &b);

  if(a+b>=10) printf("%s\n", "Error");

  else printf("%d\n", a+b);
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
Language: C

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <stdio.h>

int main(){
	int A,B,num;

	scanf("%d", &A);
	scanf("%d", &B);

	num = A + B;

	if(num >= 10){
		printf("error\n");
	}else{
		printf("%d"\n,num);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:28: error: stray '\' in program
   14 |                 printf("%d"\n,num);
      |                            ^
main.c:14:28: error: expected ')' before 'n'
   14 |                 printf("%d"\n,num);
      |                       ~    ^~
      |                            )
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",sum);
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:31: error: 'sum' undeclared (first use in this function)
    8 |                 printf("%d\n",sum);
      |                               ^~~
main.c:8:31: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sum'
    3 |                 int a, b sum;
      |                          ^~~
main.c:4:37: error: 'b' undeclared (first use in this function)
    4 |                 scanf("%d %d", &a, &b);
      |                                     ^
main.c:4:37: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:17: error: 'sum' undeclared (first use in this function)
    9 |                 sum = a + b;
      |                 ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'result'
    3 |                 int a, b result;
      |                          ^~~~~~
main.c:4:37: error: 'b' undeclared (first use in this function)
    4 |                 scanf("%d %d", &a, &b);
      |                                     ^
main.c:4:37: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:17: error: 'result' undeclared (first use in this function)
    9 |                 result = a + b;
      |                 ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'result'
    3 |                 int a, b result, n;
      |                          ^~~~~~
main.c:4:17: error: 'n' undeclared (first use in this function)
    4 |                 n = scanf("%d %d", &a, &b);
      |                 ^
main.c:4:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:41: error: 'b' undeclared (first use in this function)
    4 |                 n = scanf("%d %d", &a, &b);
      |                                         ^
main.c:9:17: error: 'result' undeclared (first use in this function)
    9 |                 result = a + b;
      |                 ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:25: error: expected initializer before 'result'
    3 |                 int A,B result, n;
      |                         ^~~~~~
a.cc:4:17: error: 'n' was not declared in this scope
    4 |                 n = scanf("%d %d", &A, &B);
      |                 ^
a.cc:4:41: error: 'B' was not declared in this scope
    4 |                 n = scanf("%d %d", &A, &B);
      |                                         ^
a.cc:9:17: error: 'result' was not declared in this scope
    9 |                 result = A + B;
      |                 ^~~~~~
Language: C++

#include <stdio.h>

void main(){
	char buf[10];
	int num1;
	int num2;
	int sum;
	
		fgets(buf,10,stdin);
		sscanf(buf,"%d %d",&num1,&num2);
	
		sum = num1 + num2;
	//}while(num1 <= 1 || num2 >= 9);
	
	if(sum < 10)
		printf("%d \n",sum);
	else
		printf("error\n");
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
Language: C++

#include <stdio.h>

void main(){
	char buf[10];
	int num1;
	int num2;
	int sum;
	
	do{
		fgets(buf,10,stdin);
		sscanf(buf,"%d %d",&num1,&num2);
	
		sum = num1 + num2;
	}while(num1 <= 1 || num2 >= 9);
	
	if(sum < 10)
		printf("%d \n",sum);
	else
		printf("error\n");
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
Language: C

#include <stdio.h>
   
int Main(void) {
          int A;
          int B;
          int C;
          char buf[128];
          fgets(buf, 128, stdin);
          sscanf(buf, "%d", &A);
          fgets(buf, 128, stdin);
          sscanf(buf, "%d", &B);
          C = A + B;
          if(C >= 10) {
          printf("error");
          printf("\n");
          } else {
          printf("%d",  C);
          printf("\n");
          return 0;
      }     
  }

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

#include<stdio.h>

int main() {
  int A,B;
  scanf("%d", &a);
  scanf("%d", &b);
  printf("%d", a + b);
  return 0;
}
 
  


Compiler output:
main.c: In function 'main':
main.c:5:16: error: 'a' undeclared (first use in this function)
    5 |   scanf("%d", &a);
      |                ^
main.c:5:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:16: error: 'b' undeclared (first use in this function)
    6 |   scanf("%d", &b);
      |                ^
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;
}
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: expected '}' before 'else'
   10 | else{
      | ^~~~
a.cc:8:16: note: to match this '{'
    8 | if((A+B) >= 10){
      |                ^
a.cc: At global scope:
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

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

bool checks(string s){
for(int I=0;i<=s.length()-1;i++){
for(int j=0;j<=s.length()-1;j++){
if(s[i]==s[j]) return 1;
}
}
return 0;
}

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

if(checks(s)==1) cout<<"no"<<endl;
if(checks(s)==0) cout<<"yes"<<endl;

return 0;
}

Compiler output:
a.cc: In function 'bool checks(std::string)':
a.cc:6:13: error: 'i' was not declared in this scope
    6 | for(int I=0;i<=s.length()-1;i++){
      |             ^
Language: C++

#include <iostream>
using namespace std;

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

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespae'
    2 | using namespae std ;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | int a , b;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:7:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | if(a + b >= 10) cout << "error\n";
      |                 ^~~~
      |                 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:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | 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:8:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | else cout << a + b << 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)
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespae'
    2 | using namespae std ;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | int a , b;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:7:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | if(a + b >= 10) cout << "error\n";
      |                 ^~~~
      |                 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:5: error: expected statement at end of input
    8 | else
      |     ^
a.cc:8:5: error: expected '}' at end of input
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

int main()
{
int a , b;cin >> a >> b;
if(a + b >= 10)

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespae'
    2 | using namespae std ;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | int a , b;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:7:16: error: expected statement at end of input
    7 | if(a + b >= 10)
      |                ^
a.cc:7:16: error: expected '}' at end of input
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:10:3: error: expected declaration or statement at end of input
   10 |   }
      |   ^
Language: C++

#include <stdio.h>
 #include <iostream> 
using namespace std; 

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

Compiler output:
a.cc:5:1: error: 'lnt' does not name a type; did you mean 'int'?
    5 | lnt main(){
      | ^~~
      | int
Language: C++

#include <stdio.h>
 #include <iostream> 
using namespace std; 

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

Compiler output:
a.cc:5:1: error: 'lnt' does not name a type; did you mean 'int'?
    5 | lnt main(){
      | ^~~
      | int
Language: Java

import java.util.Scanner;

public class A {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		System.out.println(a+b >= 10 ? "error" : a+b);
		scanner.close();
	}
}


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

# -*- coding: utf-8 -*-

import sys
import subprocess
import json
import time
import math
import re
import sqlite3

A, B = map(int, input().split())
if A + B >= 10: print("error")
else print(A+B)

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:3:1: error: 'import' does not name a type
    3 | import sys
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <bits/stdc++.h>

#define p(x) cout << x << endl
#define rep(i, first, to) for(ll i = first; i < to; ++i)

using namespace std;
typedef long long ll;

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

int main() {
	solve();
	return 0;
}

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

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

if A + B >10:
    print('error')
else:
    print(A+B)


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

A, B = input().split()

if A + B >10:
    print('error')
else
    print('A+B')


Compiler output:
a.cc:4:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    4 |     print('error')
      |           ^~~~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('A+B')
      |           ^~~~~
a.cc:1:1: error: 'A' does not name a type
    1 | A, B = input().split()
      | ^
Language: C++

# -*- coding:utf-8 -*-

n = input()
n = n.split(' ')
res = int(n[0]) + int(n[1])
if res > 9:
    print('error')
else:
    print(res)


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding:utf-8 -*-
      |   ^
a.cc:7:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    7 |     print('error')
      |           ^~~~~~~
a.cc:3:1: error: 'n' does not name a type
    3 | n = input()
      | ^
Language: C++

#include <iostream>

class TaskA {
public:
	void solve(std::istream& in, std::ostream& out) {
		int a,b;in>>a>>b;
		if(a+b>=10)out<<"error\n";
		else out<<a+b<<'\n';
	}
};


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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException{


		// 読み込み
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		String[] temp;

		line=br.readLine();
		temp=line.split(" ");

		int a = Integer.valueOf(temp[0]);
		int b = Integer.valueOf(temp[1]);


		if (a+b>=10){
			System.out.println("error");
		}else{
			System.out.println(a+b);
		}

	}
}


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

public class Main {
	public static void main(String[] args) throws IOException{


		// 読み込み
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		String[] temp;

		line=br.readLine();
		temp=line.split(" ");

		int a = Integer.valueOf(temp[0]);
		int b = Integer.valueOf(temp[1]);


		if (a+b>=10){
			System.out.println("error");
		}else{
			System.out.println(a+b);
		}

	}
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'public'
    1 | public class Main {
      | ^~~~~~
Language: C++

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

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++

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

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:21: error: expected ')' before ':' token
    9 |     cout << (a+b>=10 : "error" : a+b) << endl;
      |             ~       ^~
      |                     )
Language: C++

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();

		String[] ana = new String[3];
		ana = line.split(" ");
		int jal[] = new int[3];
		int t = 0;
		for (int i = 0; i < ana.length; i++)
			jal[i] = Integer.parseInt(ana[i]);
		t=jal[0]+jal[1];
		if(t<10)
			System.out.println(t);
		else
			System.out.println("error");
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class 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: In function 'main':
main.c:10:26: error: expected ')' before 'return'
   10 |         printf("%d\n",a+b
      |               ~          ^
      |                          )
   11 |                return 0;
      |                ~~~~~~     
main.c:11:25: error: expected ';' before '}' token
   11 |                return 0;
      |                         ^
      |                         ;
   12 |    }
      |    ~
Language: C++

import java.io.IOException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		if (a + b < 10) {

			System.out.print(a + b);
			System.out.print(" ");
		} else

		{
			System.out.print("error");
			System.out.print(" ");
		}

	}

}

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

package java0614;

import java.io.IOException;
import java.util.Scanner;

public class A063 {

	public static void main(String[] args) throws IOException {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		if (a + b < 10) {

			System.out.print(a + b);
			System.out.print(" ");
		} else

		{
			System.out.print("error");
			System.out.print(" ");
		}

	}

}

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

#include <stdio.h>

int main(int argc, char const *argv[]){

  int m,n;

  scanf("%d %d", &m, &n);

  if (m+n < 10) {
    printf("%d\n", m+n);
  } else {
    printf("error\n", );
  }

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:23: error: expected expression before ')' token
   12 |     printf("error\n", );
      |                       ^
Language: C++

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

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

import java.io.IOException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		if (a + b < 10) {

			System.out.print(a + b);
		} else

		{
			System.out.print("error");
		}

	}

}

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

import java.io.IOException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		if (a+b<10){

		 System.out.print(a+b);
	}else

	{
		   System.out.print("error");}



	}

}

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

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

#include <cstdio>
#include <iostream>

using namespace std;

int main(){
int a,b;
cin >> a >> b ;

int x = a + b;

cout << (x<10)? x : "error" <<endls; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:31: error: 'endls' was not declared in this scope
   12 | cout << (x<10)? x : "error" <<endls;
      |                               ^~~~~
Language: C++

#include<iostream>

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:5:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |    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:7:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |       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:7:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |       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:10:7: 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:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |       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 <stdio.h>
#include <cstring>
#include <map>
#include <math.h>
#include <vector>

#define INF 100000000
#define ABS(a) (a<0?-(a):a)
#define MIN(a,b) (a>b?b:a)
#define MAX(a,b) (a>b?a:b)
#define REP(i,a) for(int i=0;i<a;i++) 

using namespace std;
int main(){
  int a,b;
  scanf("%d%d", &a, &b);
  a += b;
  if(a => 10){
    printf("error\n");
  }else{
    printf("%d\n", a);
  }
}


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

#include <iostream>
#include <cstring>
using namespace std;
int main(){
int sum;
char s[100];
cin>>s;
for(int i=1;i<strlen(s);i++){
if(s[0]!=s[i])sum++;
}
if(strlen(s)-1==sum)cout<<yes;
else cout<<no;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: 'yes' was not declared in this scope
   11 | if(strlen(s)-1==sum)cout<<yes;
      |                           ^~~
a.cc:12:12: error: 'no' was not declared in this scope
   12 | else cout<<no;
      |            ^~
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:7:20: error: operands to '?:' have different types 'const char*' and 'int'
    7 |   cout << (a+b>=10 ? "error" : a+b) << endl;
      |            ~~~~~~~~^~~~~~~~~~~~~~~
Language: C++

r = list(map(int, input().split()))
s = sum(r)
if s > 9:
    res = 'error'
else:
    res = s
print(res)


Compiler output:
a.cc:4:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    4 |     res = 'error'
      |           ^~~~~~~
a.cc:1:1: error: 'r' does not name a type
    1 | r = list(map(int, input().split()))
      | ^
Language: Java

package Baza;

import java.util.Scanner;

/**
 * Created by yriaven on 10.06.17.
 */
public class A {
    public static void main(String[] args) {
        Scanner skan = new Scanner(System.in);

        int a = skan.nextInt();
        int b = skan.nextInt();

        int wynik = a+b;


        if (wynik >= 10)
        {
            System.out.println("error");
        }
        else System.out.println(wynik);
    }
}


Compiler output:
Main.java:8: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: Java

package Baza;

import java.util.Scanner;

/**
 * Created by yriaven on 10.06.17.
 */
public class A {
    public static void main(String[] args) {
        Scanner skan = new Scanner(System.in);

        int a = skan.nextInt();
        int b = skan.nextInt();

        int wynik = a+b;

        if (wynik <= 10)
        {
            System.out.println("error");
        }
        else System.out.println(wynik);
    }
}


Compiler output:
Main.java:8: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: Java

public class A {
    public static void main(String[] args) {
        Scanner skan = new Scanner(System.in);
        
        int a = skan.nextInt();
        int b = skan.nextInt();
        
        int wynik = a+b;
        
        if (wynik == 10)
        {
            System.out.println("Error");
        }
        else System.out.println(wynik);
    }
}

Compiler output:
Main.java:1: error: class A is public, should be declared in a file named A.java
public class A {
       ^
Main.java:3: error: cannot find symbol
        Scanner skan = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class A
Main.java:3: error: cannot find symbol
        Scanner skan = new Scanner(System.in);
                           ^
  symbol:   class Scanner
  location: class A
3 errors
Language: C

#include "stdafx.h"


int main()
{
	int a, b, c;
	c = a + b;
	if (c < 10)
		printf("%d",c);
	else
		printf("error");

    return 0;
}

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

include<stdio.h>

int main()
{
    int A=0, B=0;
    
    scanf("%d", &A);
    scanf("%d", &B);

    if(A+B >= 10)
    {
        printf("error\n");
    }
    else
    {
        printf("%d\n", A+B);
    }
    return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

include<stdio.h>

int main()
{
    int A=0, B=0;
    
    scanf("%d", &A);
    scanf("%d", &B);

    if(A+B >= 10)
    {
        printf("error\n");
    }
    else
    {
        printf("%d\n", &A+B);
    }
    return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

#include<iostream>

using namespase 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:3:7: error: expected nested-name-specifier before 'namespase'
    3 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         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:8:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         if (a+b>=10){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:8:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |         if (a+b>=10){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:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         else {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:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         else {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 namespase 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:3:7: error: expected nested-name-specifier before 'namespase'
    3 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: expected initializer before 'cin'
    7 |         cin << a<< b;
      |         ^~~
a.cc:8:15: error: 'b' was not declared in this scope
    8 |         if (a+b>=10){cout << a+b <<endl;  }
      |               ^
a.cc:8:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         if (a+b>=10){cout << a+b <<endl;  }
      |                      ^~~~
      |                      std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |         if (a+b>=10){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:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         else {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:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         else {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(){
	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:6:16: error: 'a' was not declared in this scope
    6 |         cin << a<< b;
      |                ^
a.cc:6:20: error: 'b' was not declared in this scope
    6 |         cin << a<< b;
      |                    ^
Language: C++

#include<iostream>

using namespase std;

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


Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namespase'
    3 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: 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:6:16: error: 'a' was not declared in this scope
    6 |         cin << a<< b;
      |                ^
a.cc:6:20: error: 'b' was not declared in this scope
    6 |         cin << a<< b;
      |                    ^
a.cc:7:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         if (a+b>=10){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:7:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         if (a+b>=10){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:8:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         else {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:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |         else {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.h>

using namespase std;

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


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

include<stdio.h>

int main()
{
    int A, B;
    
    if(A+B >= 10)
    {
        printf("error\n");
    };
    else
   {
        printf("%c", A+B);
    }

    return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^