criyle/codenet-compile-errors huggingface dataset:
Language: Java

main(c,d)for(;scanf("%d%d",&c,&d)+1;)printf("%d\n",c+d);

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
main(c,d)for(;scanf("%d%d",&c,&d)+1;)printf("%d\n",c+d);
^
Main.java:1: error: class, interface, enum, or record expected
main(c,d)for(;scanf("%d%d",&c,&d)+1;)printf("%d\n",c+d);
              ^
Main.java:1: error: class, interface, enum, or record expected
main(c,d)for(;scanf("%d%d",&c,&d)+1;)printf("%d\n",c+d);
                                    ^
3 errors
Language: Java

main(c,d){while(scanf("%d%d",&c,&d)+1)printf("%d\n",c+d);}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
main(c,d){while(scanf("%d%d",&c,&d)+1)printf("%d\n",c+d);}
^
Main.java:1: error: class, interface, enum, or record expected
main(c,d){while(scanf("%d%d",&c,&d)+1)printf("%d\n",c+d);}
                                                         ^
2 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    while(sc.nextLine()){
    int a = sc.nextInt();
    int b = sc.nextInt();
    System.out.println(a+b);
    }
  }
}

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to boolean
    while(sc.nextLine()){
                     ^
1 error
Language: Java

import java.io.*;

public class AOJ1000 {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));

		String s;
		String t[];
		while((s = r.readLine()) != null){
			t = s.split("[ ]");
			System.out.println(Integer.parseInt(t[0])+ Integer.parseInt(t[1]));
		}
	}
}

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

import java.util.*;

public class AOJ_02 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext()){
			System.out.println(sc.nextInt() + sc.nextInt());
		}
	}
}

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

class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a, b;
while(sc.hasNext()){
a = sc.nextInt();
b = sc.nextInt();

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.*;
public class AOJ1000 {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		while(in.hasNext()){
			int a = in.nextInt();
			int b = in.nextInt();
			System.out.println(a+b);
		}
	}
}

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

#include <stdio.h>

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

    int a, b;
    
    while (scanf("%d %d\n", &a, &b) != EOF) {
        printf("%d\n", a + b);
    }
    
    return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:8: error: class, interface, enum, or record expected
    while (scanf("%d %d\n", &a, &b) != EOF) {
    ^
Main.java:10: error: class, interface, enum, or record expected
    }
    ^
Main.java:13: error: class, interface, enum, or record expected
}
^
5 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Vector;

public class Main {
	public static void main(String args[] ) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while(true){
			String num=br.readLine();
			if(num==null){
				break;
			}
			int a=num.split(" ")[0],b=num.split(" ")[1];
			System.out.println(a+b);
		}
	}
}

Compiler output:
Main.java:13: error: incompatible types: String cannot be converted to int
			int a=num.split(" ")[0],b=num.split(" ")[1];
			                    ^
Main.java:13: error: incompatible types: String cannot be converted to int
			int a=num.split(" ")[0],b=num.split(" ")[1];
			                                        ^
2 errors
Language: C

#include <stdio.h>
int main(void){
    int a, b;
    while(scanf("%d %d",&a ,&b){
        printf("%d\n", a+b);
    }
    
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:4:32: error: expected ')' before '{' token
    4 |     while(scanf("%d %d",&a ,&b){
      |          ~                     ^
      |                                )
main.c:9:1: error: expected expression before '}' token
    9 | }
      | ^
Language: C

#include <stdio.h>
int main(void){
    int a, b;
    while(scanf("%d %d", &a, &b){
       printf("%d\n", a+b);
    }
    
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:4:33: error: expected ')' before '{' token
    4 |     while(scanf("%d %d", &a, &b){
      |          ~                      ^
      |                                 )
main.c:9:1: error: expected expression before '}' token
    9 | }
      | ^
Language: C

#include <stdio.h>
int main(void){
    while(scanf("%d %d", &a, &b)){
        
        int a, b;
       printf("%d\n", a+b);
    }
    
    return 0;
}




Compiler output:
main.c: In function 'main':
main.c:3:27: error: 'a' undeclared (first use in this function)
    3 |     while(scanf("%d %d", &a, &b)){
      |                           ^
main.c:3:27: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:31: error: 'b' undeclared (first use in this function)
    3 |     while(scanf("%d %d", &a, &b)){
      |                               ^
Language: C

#include<stdio.h>
int main(){
    int a, b;
    while(scanf("%d %d",&a,&b)!=EOF){
        printf("%d\n",a???b);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:25: error: expected expression before '?' token
    5 |         printf("%d\n",a???b);
      |                         ^
Language: C

#include<stdio.h>




int main(){
    int a, b;
    while(scanf("%d %d". &a, &b)!= EOF){
        printf("%d\n", a ??? b);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:26: error: expected identifier before '&' token
    8 |     while(scanf("%d %d". &a, &b)!= EOF){
      |                          ^
main.c:9:27: error: expected expression before '?' token
    9 |         printf("%d\n", a ??? b);
      |                           ^
Language: C

#include<stdio.h>
int main(){
	
	int a,b;
	while (scanf_s("%d%d", &a, &b)!=EOF){
		printf("%d\n", a + b);
	}
	return(0);

Compiler output:
main.c: In function 'main':
main.c:5:16: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         while (scanf_s("%d%d", &a, &b)!=EOF){
      |                ^~~~~~~
      |                scanf
main.c:8:9: error: expected declaration or statement at end of input
    8 |         return(0);
      |         ^~~~~~
Language: C

#include<stdio.h>
int main(){
	
	int a,b;
	while (scanf_s("%d%d", &a, &b)!=EOF){
		printf("%d\n", a + b);
	}
	return 0;

Compiler output:
main.c: In function 'main':
main.c:5:16: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         while (scanf_s("%d%d", &a, &b)!=EOF){
      |                ^~~~~~~
      |                scanf
main.c:8:9: error: expected declaration or statement at end of input
    8 |         return 0;
      |         ^~~~~~
Language: C

main(a,b){for(;~scanf("%d%d",&a,&b);print("%d\n",a+b));}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);print("%d\n",a+b));}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);print("%d\n",a+b));}
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);print("%d\n",a+b));}
main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);print("%d\n",a+b));}
      |                 ^~~~~
main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:37: error: implicit declaration of function 'print' [-Wimplicit-function-declaration]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);print("%d\n",a+b));}
      |                                     ^~~~~
Language: C

#include<stdio.h>
int main()
{
int n, a, n;
while(scanf("%d%d", &a, &b)!=EOF)
{
printf("%d\n", a+b);
}
return 0;

}

Compiler output:
main.c: In function 'main':
main.c:4:11: error: redeclaration of 'n' with no linkage
    4 | int n, a, n;
      |           ^
main.c:4:5: note: previous declaration of 'n' with type 'int'
    4 | int n, a, n;
      |     ^
main.c:5:26: error: 'b' undeclared (first use in this function)
    5 | while(scanf("%d%d", &a, &b)!=EOF)
      |                          ^
main.c:5:26: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#includes <stdio.h>
int main()
{
 int a=b=0;
while( scanf("%d %d",&a,&b) =! EOF)
{
printf("%d",a+b);
}
return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #includes; did you mean #include?
    1 | #includes <stdio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:4:8: error: 'b' undeclared (first use in this function)
    4 |  int a=b=0;
      |        ^
main.c:4:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:8: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 | while( scanf("%d %d",&a,&b) =! EOF)
      |        ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includes <stdio.h>
main.c:5:8: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 | while( scanf("%d %d",&a,&b) =! EOF)
      |        ^~~~~
main.c:5:8: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:32: error: 'EOF' undeclared (first use in this function)
    5 | while( scanf("%d %d",&a,&b) =! EOF)
      |                                ^~~
main.c:5:32: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:7:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 | printf("%d",a+b);
      | ^~~~~~
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main(){
    int a, b;
    while( scanf("%d %d", &a, &b) != EOF ){
        printf("%d\n", a + b);
    }
    return 0;

Compiler output:
main.c: In function 'main':
main.c:8:5: error: expected declaration or statement at end of input
    8 |     return 0;
      |     ^~~~~~
Language: C

#include<cstdio>
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF)
printf("%d\n",a+b);
return 0;
}

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

#include<stdio.h>

int main(){
    int a, b;
    while( scanf("%d %d", &a, &b) != EOF ){
        printf("%d\n", a + b + 2);
    }
    return 0;

Compiler output:
main.c: In function 'main':
main.c:8:5: error: expected declaration or statement at end of input
    8 |     return 0;
      |     ^~~~~~
Language: C

#include<stdio.h>

int main(){
    int a, b;
    while( scanf("%d %d", &a, &b) != EOF ){
        printf("%d\n", a+b);
    }
    return 0;

Compiler output:
main.c: In function 'main':
main.c:8:5: error: expected declaration or statement at end of input
    8 |     return 0;
      |     ^~~~~~
Language: C

#include <cstdio>
int main(){
    int a,b;
    while(scanf("%d %d",&a,&b)!=EOF) printf("%d",a+b);
    return 0;
}

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

#include<cstdio>
int main() 
{
   int i, j; 
   while(scanf("%d%d",&i,&j)==2) 
       printf("%d\n",i+j); 
} 

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

#include <iostream>

using namespace std;

int main()
{
    int a,b;
    while(cin >> a >> b)
        cout << a+b << endl;
 	return 0;   
}

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

#include <stdio.h>
int main()
{
  int A,B,sum;

  printf("Aテ」ツ?ィBテ」ツ?ォテァツゥツコテァツ卍ステ」ツつ津」ツ?づ」ツ?妥」ツ?ヲテヲツ閉エテヲツ閉ーテ」ツつ津・ツ?・テ・ツ環崚」ツ?療」ツ?ヲテ」ツ?湘」ツ??」ツ?陛」ツ??」ツ??);
  scanf("%d%d",&A,&B);

  if(A >= -1000 && A <= 1000 && B >= -1000 && B <=1000){

    sum=A+B;

    printf("%d",sum);

  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:10: warning: missing terminating " character
    6 |   printf("Aテ」ツ?ィBテ」ツ?ォテァツゥツコテァツ卍ステ」ツつ津」ツ?づ」ツ?妥」ツ?ヲテヲツ閉エテヲツ閉ーテ」ツつ津・ツ?・テ・ツ環崚」ツ?療」ツ?ヲテ」ツ?湘」ツ??」ツ?陛」ツ??」ツ??);
      |          ^
main.c:6:177: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs]
    6 |   printf("Aテ」ツ?ィBテ」ツ?ォテァツゥツコテァツ卍ステ」ツつ津」ツ?づ」ツ?妥」ツ?ヲテヲツ閉エテヲツ閉ーテ」ツつ津・ツ?・テ・ツ環崚」ツ?療」ツ?ヲテ」ツ?湘」ツ??」ツ?陛」ツ??」ツ??);
main.c:6:10: error: missing terminating " character
    6 |   printf("Aテ」ツ?ィBテ」ツ?ォテァツゥツコテァツ卍ステ」ツつ津」ツ?づ」ツ?妥」ツ?ヲテヲツ閉エテヲツ閉ーテ」ツつ津・ツ?・テ・ツ環崚」ツ?療」ツ?ヲテ」ツ?湘」ツ??」ツ?陛」ツ??」ツ??);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:7:22: error: expected ')' before ';' token
    7 |   scanf("%d%d",&A,&B);
      |                      ^
      |                      )
main.c:6:9: note: to match this '('
    6 |   printf("Aテ」ツ?ィBテ」ツ?ォテァツゥツコテァツ卍ステ」ツつ津」ツ?づ」ツ?妥」ツ?ヲテヲツ閉エテヲツ閉ーテ」ツつ津・ツ?・テ・ツ環崚」ツ?療」ツ?ヲテ」ツ?湘」ツ??」ツ?陛」ツ??」ツ??);
      |         ^
main.c:7:3: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    7 |   scanf("%d%d",&A,&B);
      |   ^~~~~~~~~~~~~~~~~~~
      |   |
      |   int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:16:12: error: expected ';' before '}' token
   16 |   return 0;
      |            ^
      |            ;
   17 | }
      | ~
Language: C

x = input()
while x:
    a, b = x.split(" ")
    print(int(a) + int(b))


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | x = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | x = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'while'
    2 | while x:
      | ^~~~~
Language: C

#include <iostream>

using namespace std;

int main()
{
    int a,b;
    while(cin >> a >> b){
        cout << a+b << endl;
    }
    return 0;
}


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

#include <iostream>
#include <algorithm>

using namespace std;

int main(){
	int a, b;
    while (cin >> a >> b){
    	cout << a+b << endl;
    }
	return 0;
}


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

#include <stdio.h>
main(){
  int a,b,c;
  while(scanf("%d%d",a,b) !EOF){
    c=a+b;
    printf("%d",c);
  }
return 0; 
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:26: error: expected ')' before '!' token
    4 |   while(scanf("%d%d",a,b) !EOF){
      |        ~                 ^~
      |                          )
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:28: error: expected ')' before '!' token
    4 |   while(scanf("%d%d",&a,&b) !EOF){
      |        ~                   ^~
      |                            )
Language: C

a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))}
      |   ^~~~
main.c: In function 'main':
main.c:1:3: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))}
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))}
main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))}
      |                 ^~~~~
main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:37: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))}
      |                                     ^~~~~~
main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:37: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:56: error: expected expression before '}' token
    1 | a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b))}
      |                                                        ^
Language: C

a;main(b){
while(scanf("%d",&a)!=EOF){
scanf("%d",&b);
printf("%d\n",a+b);
}
exit(0);
}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a;main(b){
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a;main(b){
      |   ^~~~
main.c: In function 'main':
main.c:1:3: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:2:7: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 | while(scanf("%d",&a)!=EOF){
      |       ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a;main(b){
main.c:2:7: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 | while(scanf("%d",&a)!=EOF){
      |       ^~~~~
main.c:2:7: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:23: error: 'EOF' undeclared (first use in this function)
    2 | while(scanf("%d",&a)!=EOF){
      |                       ^~~
main.c:2:23: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:2:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 | printf("%d\n",a+b);
      | ^~~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:1: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    6 | exit(0);
      | ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | a;main(b){
main.c:6:1: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
    6 | exit(0);
      | ^~~~
main.c:6:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C

a;main(b){
while(scanf("%d",&a)!=EOF){
scanf("%d",&b);
printf("%d\n",a+b);
}
return 0;
}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a;main(b){
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a;main(b){
      |   ^~~~
main.c: In function 'main':
main.c:1:3: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:2:7: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 | while(scanf("%d",&a)!=EOF){
      |       ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a;main(b){
main.c:2:7: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 | while(scanf("%d",&a)!=EOF){
      |       ^~~~~
main.c:2:7: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:23: error: 'EOF' undeclared (first use in this function)
    2 | while(scanf("%d",&a)!=EOF){
      |                       ^~~
main.c:2:23: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:2:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 | printf("%d\n",a+b);
      | ^~~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:1:16: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;}
      |                ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;}
main.c:1:16: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;}
      |                ^~~~~
main.c:1:16: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:41: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;}
      |                                         ^~~~~~
main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:41: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:55: error: 'a' undeclared (first use in this function)
    1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;}
      |                                                       ^
main.c:1:55: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:57: error: 'b' undeclared (first use in this function)
    1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",a+b);return 0;}
      |                                                         ^
Language: C

main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",c+d);return 0}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",c+d);return 0}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:1:16: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",c+d);return 0}
      |                ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",c+d);return 0}
main.c:1:16: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",c+d);return 0}
      |                ^~~~~
main.c:1:16: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:41: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",c+d);return 0}
      |                                         ^~~~~~
main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:41: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:68: error: expected ';' before '}' token
    1 | main(c,d){for(;scanf("%d %d",&c,&d)+1;) printf("%d\n",c+d);return 0}
      |                                                                    ^
      |                                                                    ;
Language: C

main(c,d)while(scanf("%d %d",&c,&d)+1)printf("%d\n",c+d);

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(c,d)while(scanf("%d %d",&c,&d)+1)printf("%d\n",c+d);
      | ^~~~
main.c: In function 'main':
main.c:1:10: error: expected declaration specifiers before 'while'
    1 | main(c,d)while(scanf("%d %d",&c,&d)+1)printf("%d\n",c+d);
      |          ^~~~~
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
    1 | main(c,d)while(scanf("%d %d",&c,&d)+1)printf("%d\n",c+d);
      | ^~~~
main.c:1:1: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:2: error: expected '{' at end of input
Language: C

main(c,d)for(;scanf("%d %d",&c,&d);)printf("%d\n",c+d);

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(c,d)for(;scanf("%d %d",&c,&d);)printf("%d\n",c+d);
      | ^~~~
main.c: In function 'main':
main.c:1:10: error: expected declaration specifiers before 'for'
    1 | main(c,d)for(;scanf("%d %d",&c,&d);)printf("%d\n",c+d);
      |          ^~~
main.c:1:15: error: expected declaration specifiers before 'scanf'
    1 | main(c,d)for(;scanf("%d %d",&c,&d);)printf("%d\n",c+d);
      |               ^~~~~
main.c:1:36: error: expected declaration specifiers before ')' token
    1 | main(c,d)for(;scanf("%d %d",&c,&d);)printf("%d\n",c+d);
      |                                    ^
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
    1 | main(c,d)for(;scanf("%d %d",&c,&d);)printf("%d\n",c+d);
      | ^~~~
main.c:1:1: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:2: error: expected '{' at end of input
Language: C

main(){for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
      | ^~~~
main.c: In function 'main':
main.c:1:21: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
      |                     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
main.c:1:21: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
      |                     ^~~~~
main.c:1:21: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:41: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(){for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",a+b));}
      |                                         ^~~~~~
main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:41: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

main(){for(int a,b;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){for(int a,b;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}
      | ^~~~
main.c: In function 'main':
main.c:1:21: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){for(int a,b;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}
      |                     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){for(int a,b;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}
main.c:1:21: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){for(int a,b;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}
      |                     ^~~~~
main.c:1:21: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:42: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(){for(int a,b;~scanf("%d%d",&a,&b);)printf("%d\n",a+b);}
      |                                          ^~~~~~
main.c:1:42: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:42: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:42: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

include <stdio.h>
int main(void){
  int a,b;
  while(scanf("%d %d",&a,&b)!=EOF){
    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(void) {

  int a,b,c;

  scanf("%d %d",&a,&b);
  if(scanf("EOF")) break;
  c=a+b;
  printf("%d",c);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:20: error: break statement not within loop or switch
    7 |   if(scanf("EOF")) break;
      |                    ^~~~~
Language: C

main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);}
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);}
main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);}
      |                 ^~~~~
main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:37: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);}
      |                                     ^~~~~~
main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:37: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:37: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:55: error: expected ')' before ';' token
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);}
      |              ~                                        ^
      |                                                       )
main.c:1:64: error: expected expression before '}' token
    1 | main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d\n",a+b);exit(0);}
      |                                                                ^
Language: C

include<stdio.h>

int main(void){
int a,b;
while(scanf("%d%d",&a,&b)!=EOF){
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>
main(){
 int a,b;
 while(scanf("%d %d",&a,&b != EOF ){
printf("%d\n",a+b);
}
 return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:28: warning: comparison between pointer and integer
    4 |  while(scanf("%d %d",&a,&b != EOF ){
      |                            ^~
main.c:4:36: error: expected ')' before '{' token
    4 |  while(scanf("%d %d",&a,&b != EOF ){
      |       ~                            ^
      |                                    )
main.c:8:1: error: expected expression before '}' token
    8 | }
      | ^
Language: C

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

int main(void){
	int *p, *q;
	p = (int*)malloc(sizeof(int));
	q = (int*)malloc(sizeof(int));
	while( scanf("%d%d",p,q) != EOF){
		printf("%d\n",*p + *q);
	}
	free(p);
	free(q);
	return 0;

Compiler output:
main.c: In function 'main':
main.c:13:9: error: expected declaration or statement at end of input
   13 |         return 0;
      |         ^~~~~~
Language: C

int main(){
    int a, b;
    while( scanf("%d %d", &a, &b) != EOF ){
        printf("%d\n", a + b); 
    }   
} 

Compiler output:
main.c: In function 'main':
main.c:3:12: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |     while( scanf("%d %d", &a, &b) != EOF ){
      |            ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:12: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |     while( scanf("%d %d", &a, &b) != EOF ){
      |            ^~~~~
main.c:3:12: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:38: error: 'EOF' undeclared (first use in this function)
    3 |     while( scanf("%d %d", &a, &b) != EOF ){
      |                                      ^~~
main.c:3:38: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:3:38: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |         printf("%d\n", a + b);
      |         ^~~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C


	long long  a,b;
	while(scanf("%lld%lld",&a,&b)==2) {
		if(a+b>=(long long)INT_MAX || a+b<(long long)INT_MIN)return 1;
		printf("%lld\n",a+b);
	}

Compiler output:
main.c:3:9: error: expected identifier or '(' before 'while'
    3 |         while(scanf("%lld%lld",&a,&b)==2) {
      |         ^~~~~
Language: C

#include <stdio.h>
main(void){
	long long a, b;
	while (~scanf("%lld%lld", &a, &b)) printf("%lld\n",a+b);
	return 0;

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:5:9: error: expected declaration or statement at end of input
    5 |         return 0;
      |         ^~~~~~
Language: C

main(a,b){while(~scanf("%d%d",&a,&b)|printf("%d\n",a+b))}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b){while(~scanf("%d%d",&a,&b)|printf("%d\n",a+b))}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:18: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b){while(~scanf("%d%d",&a,&b)|printf("%d\n",a+b))}
      |                  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b){while(~scanf("%d%d",&a,&b)|printf("%d\n",a+b))}
main.c:1:18: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b){while(~scanf("%d%d",&a,&b)|printf("%d\n",a+b))}
      |                  ^~~~~
main.c:1:18: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:38: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(a,b){while(~scanf("%d%d",&a,&b)|printf("%d\n",a+b))}
      |                                      ^~~~~~
main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:38: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:57: error: expected expression before '}' token
    1 | main(a,b){while(~scanf("%d%d",&a,&b)|printf("%d\n",a+b))}
      |                                                         ^
Language: C

import java.io.*;
import java.util.*;
import java.math.*;
public class Main {
    public static void main(String[] args)
            throws java.io.IOException{
        Scanner scan = new Scanner(System.in);
   while (scan.hasNext()){
int sum = scan.nextInt()+scan.nextInt();
System.out.println(sum);
}
}
}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.io.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.io.*;
      |            ^
main.c:2:1: error: unknown type name 'import'
    2 | import java.util.*;
      | ^~~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | import java.util.*;
      |            ^
main.c:3:1: error: unknown type name 'import'
    3 | import java.math.*;
      | ^~~~~~
main.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    3 | import java.math.*;
      |            ^
main.c:4:1: error: unknown type name 'public'
    4 | public class Main {
      | ^~~~~~
main.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    4 | public class Main {
      |              ^~~~
Language: C

a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}}
      |   ^~~~
main.c: In function 'main':
main.c:1:3: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}}
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}}
main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}}
      |                 ^~~~~
main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:35: error: 'd' undeclared (first use in this function)
    1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}}
      |                                   ^
main.c:1:35: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:38: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}}
      |                                      ^~~~~~
main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:38: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:1:62: error: expected identifier or '(' before '}' token
    1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n", a + b));}}
      |                                                              ^
Language: C

a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));}
      |   ^~~~
main.c: In function 'main':
main.c:1:3: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));}
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));}
main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));}
      |                 ^~~~~
main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:35: error: 'd' undeclared (first use in this function)
    1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));}
      |                                   ^
main.c:1:35: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:38: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | a;main(b){for(;~scanf("%d %d",&a,&d);printf("%d\n",a+b));}
      |                                      ^~~~~~
main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:38: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
int main(void)
{
	int a,b;
	while(scanf("%d %d",&a,&b) !=0)
	{
		printf("%d\n",a + b);
	scanf("%d",&n);
	}
	return 0;
}

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

#include <stdio.h>
 int main(){
   int a,b;
     while(scanf("%d%d",&a,&b) != EOF){
       printf("%d\n",a+b)
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:26: error: expected ';' before '}' token
    5 |        printf("%d\n",a+b)
      |                          ^
      |                          ;
    6 | }
      | ~
Language: C

int main(){
    int a, b;
    while( scanf("%d %d", &a, &b) != EOF ){
        printf("%d\n", a + b);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:12: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |     while( scanf("%d %d", &a, &b) != EOF ){
      |            ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:12: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |     while( scanf("%d %d", &a, &b) != EOF ){
      |            ^~~~~
main.c:3:12: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:38: error: 'EOF' undeclared (first use in this function)
    3 |     while( scanf("%d %d", &a, &b) != EOF ){
      |                                      ^~~
main.c:3:38: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:3:38: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |         printf("%d\n", a + b);
      |         ^~~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'printf'