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

import java.util.Scanner;

class Main {
 public static void main(String[] args){
  Scanner sc = new Scanner();
  int x , y;
  x = sc.nextInt();
  y = sc.netxInt();
  System.out.println(x*y);
  System.out.println(2*x+2*y);
 }
}

Compiler output:
Main.java:5: error: no suitable constructor found for Scanner(no arguments)
  Scanner sc = new Scanner();
               ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
Main.java:8: error: cannot find symbol
  y = sc.netxInt();
        ^
  symbol:   method netxInt()
  location: variable sc of type Scanner
2 errors
Language: Java

import java.util.Scanner;

class Main {
 public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  int x , y;
  x = sc.nextInt();
  y = sc.netxInt();
  System.out.print(x*y);
  System.out.println(2*x+2*y);
 }
}

Compiler output:
Main.java:8: error: cannot find symbol
  y = sc.netxInt();
        ^
  symbol:   method netxInt()
  location: variable sc of type Scanner
1 error
Language: Java

import java.io.*;
public class aoj10002 {
   public static void main(String[] args) throws IOException{
	  BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	  int i,j;
	  String s = buf.readLine();
	  i = Integer.parseInt(s);
	  s = buf.readLine();
	  j = Integer.parseInt(s);
	  System.out.println(i*j + " " + 2*(i+j));
   }
}

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

import java.util.*;
public class aoj10002 {
   public static void main(String[] args) {
	  int i,j;
	  Scanner buf = new Scanner (System.in);
	  i = buf.nextInt();
	  j = buf.nextInt();
	  System.out.println(i*j + " " + 2*(i+j));
   }
}

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

import java.util.Scanner;

public class Main{
    public static void main{String[] args){
        int x,y;
        Scanner sc = new Scanner(System.in);
        x = sc.nextInt();
        y = sc.nextInt();
        System.out.println(x*y + " " + (2*(x+y));
    }
}

Compiler output:
Main.java:4: error: '(' expected
    public static void main{String[] args){
                           ^
Main.java:4: error: ';' expected
    public static void main{String[] args){
                                         ^
Main.java:9: error: ')' or ',' expected
        System.out.println(x*y + " " + (2*(x+y));
                                                ^
Main.java:11: error: reached end of file while parsing
}
 ^
4 errors
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        int x,y;
        Scanner sc = new Scanner(System.in);
        x = sc.nextInt();
        y = sc.nextInt();
        System.out.println(x*y + " " + (2*(x+y));
    }
}

Compiler output:
Main.java:9: error: ')' or ',' expected
        System.out.println(x*y + " " + (2*(x+y));
                                                ^
1 error
Language: Java

public class Main{
	public static class void main(String args[]){
		int a,b;
		System.in.read(a);
		System.in.read(b);
		a*=b;
		System.out.println(a);
	}
}

Compiler output:
Main.java:2: error: <identifier> expected
	public static class void main(String args[]){
	                   ^
1 error
Language: Java

public class Main{
	public static void main(String args[]){
		int a,b;
		System.in.read(a);
		System.in.read(b);
		a*=b;
		System.out.println(a);
	}
}

Compiler output:
Main.java:4: error: incompatible types: int cannot be converted to byte[]
		System.in.read(a);
		               ^
Main.java:5: error: incompatible types: int cannot be converted to byte[]
		System.in.read(b);
		               ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

public class Main{
	public static void main(String args[]){
		byte a,b;
		System.in.read(a);
		System.in.read(b);
		a*=b;
		System.out.println(a);
	}
}

Compiler output:
Main.java:4: error: incompatible types: byte cannot be converted to byte[]
		System.in.read(a);
		               ^
Main.java:5: error: incompatible types: byte cannot be converted to byte[]
		System.in.read(b);
		               ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

import java.io.*;

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

		BufferedReader r=new BufferedReader(new InputStreamReader(System.in),1);
		
		int a=Integer.perseInt(r.readLine());
		int b=Integer.perseInt(r.readLine());
		
		a*=b;
		
		System.out.println(a);
		
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
		int a=Integer.perseInt(r.readLine());
		             ^
  symbol:   method perseInt(String)
  location: class Integer
Main.java:9: error: cannot find symbol
		int b=Integer.perseInt(r.readLine());
		             ^
  symbol:   method perseInt(String)
  location: class Integer
2 errors
Language: Java

import java.util.Scanner;

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

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

import java.io.*;
import java.util.*;

public class Mondai {


	public static void main(String[] args) {

		int a = 0;
		int b = 0;
		int menseki;
		int syuu;
		int s;

		Scanner sc = new Scanner(System.in);
		 a = sc.nextInt();
		 b = sc.nextInt();

		 menseki = a * b;
		 syuu = a * 2 + b * 2;

		 System.out.println(menseki + " " + syuu);

	}

}

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

import java.io.*;
import java.util.*;

public class Mondai {


	public static void main(String[] args) {

		int a = 0;
		int b = 0;
		int menseki;
		int syuu;


		Scanner sc = new Scanner(System.in);
		 a = sc.nextInt();
		 b = sc.nextInt();

		 menseki = a * b;
		 syuu = a * 2 + b * 2;

		 System.out.println(menseki + " " + syuu);

	}

}

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

class Main {
	 private static Scanner sc;
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int S=0,L=0;
		S = a*b;
		L = 2*a+2*b;
		System.out.printf("%d ",S);
		System.out.printf("%d",L);
	}

}

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

class Main{
    private static Scanner s = new Scanner(System.in);
    public static void main(String[] args){
        int a,b;
        a = s.nextInt();
        b = s.nextInt();
        System.out.println(a * b + " " + (a + b)*2);
    }
}

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

class Main{
    private static Scanner s = new Scanner(System.in);
    
    public static void main(String[] args){
        int a,b;
        a = s.nextInt();
        b = s.nextInt();
        System.out.println(a * b + " " + (a + b)*2);
    }
}

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

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

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

#include <stdio.h>
int main(void)
{
   int a, b, S, L;

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

   S = a*b;
   L = (a+b)*2;

   printf("%d %d", S L);

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected ')' before 'b'
    6 |    scanf("%d %d", a b);
      |         ~          ^~
      |                    )
main.c:11:21: error: expected ')' before 'L'
   11 |    printf("%d %d", S L);
      |          ~          ^~
      |                     )
Language: C

#include<stdio.h>
int main(void) {
int h=0 , w=0;
scanf("%d %d",&h,&w);
printf("%d %d",h *w,2 * ( h + w));
return0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: 'return0' undeclared (first use in this function)
    6 | return0;
      | ^~~~~~~
main.c:6:1: 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;
	scanf( "%d %d", &a, &b );
	printf( "%d %d\n", a*b, 2*a+2b );
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:37: error: invalid suffix "b" on integer constant
    7 |         printf( "%d %d\n", a*b, 2*a+2b );
      |                                     ^~
Language: C

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

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

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected expression before '?' token
    5 | ???scanf("%d %d",&a,&b);
      | ^
main.c:7:4: error: called object is not a function or function pointer
    7 |  d=2(a+b)
      |    ^
main.c:7:10: error: expected ';' before 'printf'
    7 |  d=2(a+b)
      |          ^
      |          ;
    8 |   printf("%d %d\n",c,d);
      |   ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected expression before '?' token
    5 | ???scanf("%d %d",&a,&b);
      | ^
main.c:7:4: error: called object is not a function or function pointer
    7 |  d=2(a+b);
      |    ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected expression before '?' token
    5 | ???scanf("%d %d",&a,&b);
      | ^
main.c:7:4: error: called object is not a function or function pointer
    7 |  d=2(a+b);
      |    ^
Language: C

#include <stdio.h>

int main(void){
int x y;
scanf("%d %d", &x, &y);
printf("%d %d\n", x*y, 2 * x + 2 * y);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'y'
    4 | int x y;
      |       ^
main.c:4:7: error: 'y' undeclared (first use in this function)
main.c:4:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:17: error: 'x' undeclared (first use in this function)
    5 | scanf("%d %d", &x, &y);
      |                 ^
Language: C

#include<stdio.h>

int main(void)
{
  int n,m;

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

  printf("%d %d",n*m,2(n+m));
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:22: error: called object is not a function or function pointer
    9 |   printf("%d %d",n*m,2(n+m));
      |                      ^
Language: C

#include <stdio.h>

int main(void)
{
	int x;
	int y;
	int sum;
	int sum2;
	
	scanf("%d", &x);
	sacnf("%d", %y);
	
	sum = x * y;
	sum2 = (x * 2) + (y * 2);
	
	printf("%d %d", sum, sum2);
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   11 |         sacnf("%d", %y);
      |         ^~~~~
      |         scanf
main.c:11:21: error: expected expression before '%' token
   11 |         sacnf("%d", %y);
      |                     ^
Language: C

#include <stdio.h>

int main(void)
{
	int x;
	int y;
	int sum;
	int sum2;
	
	scanf("%d", &x);
	scanf("%d", %y);
	
	sum = x * y;
	sum2 = (x * 2) + (y * 2);
	
	printf("%d %d", sum, sum2);
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:11:21: error: expected expression before '%' token
   11 |         scanf("%d", %y);
      |                     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:23: error: invalid operands to binary & (have 'int *' and 'int')
    5 |     scanf("%d %d", &a &b);
      |                    ~~ ^
      |                    |
      |                    int *
main.c:6:19: error: expected ')' before 'a'
    6 |     printf("%d %d"a*b, a*b*2);
      |           ~       ^
      |                   )
Language: C

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

int main(void) {
int a, b;
scanf("%d %d", &a, &b);
printf("%d, %d", a*b, (a+b)*2)
}

Compiler output:
main.c: In function 'main':
main.c:7:31: error: expected ';' before '}' token
    7 | printf("%d, %d", a*b, (a+b)*2)
      |                               ^
      |                               ;
    8 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scnaf("%d %d",&a ,&b);
      |         ^~~~~
      |         scanf
Language: C

#include <stdio.h>

int main(int argc, const char * argv[]){
    int a, b;
    scanf("%d %d\n", &a, $b);
    printf("%d\n", a*b);
    return 0;
}   

Compiler output:
main.c: In function 'main':
main.c:5:26: error: '$b' undeclared (first use in this function); did you mean 'b'?
    5 |     scanf("%d %d\n", &a, $b);
      |                          ^~
      |                          b
main.c:5:26: 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;
    scanf("%d%d",&a,&b)
    printf("%d %d\n",a*b,2*(a+b));
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:24: error: expected ';' before 'printf'
    4 |     scanf("%d%d",&a,&b)
      |                        ^
      |                        ;
    5 |     printf("%d %d\n",a*b,2*(a+b));
      |     ~~~~~~
Language: C

#include <stdio.h>
int main(void){
    // Here your code !
    int a;
    int b;
    int r;
    int n;
    
    scanf("%d %d", &a, &b);
    r = a * b;
    m = 2 * a + 2 * b;
    
    printf("%d %d\n", r, m);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:5: error: 'm' undeclared (first use in this function)
   11 |     m = 2 * a + 2 * b;
      |     ^
main.c:11:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(){
	int a,b,c,d;
	sanf("%d %d",&a &b);
	c=a*b;
	d=2*a+2*b;
	printf("%d\n",c);
	printf("%d\n",d);
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'sanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |         sanf("%d %d",&a &b);
      |         ^~~~
      |         scanf
main.c:4:25: error: invalid operands to binary & (have 'int *' and 'int')
    4 |         sanf("%d %d",&a &b);
      |                      ~~ ^
      |                      |
      |                      int *
Language: C

#include <stdio.h>
int main(){
	int a,b,c,d;
	scanf("%d %d",&a &b);
	c=a*b;
	d=2*a+2*b;
	printf("%d\n",c);
	printf("%d\n",d);
}

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

#include <stdio.h>
int main(){
	int a,b,c,d;
	scanf("%d %d",&a &b);
	c=a*b;
	d=(a+b)*2
	printf("%d\n",c);
	printf("%d\n",d);
}

Compiler output:
main.c: In function 'main':
main.c:4:26: error: invalid operands to binary & (have 'int *' and 'int')
    4 |         scanf("%d %d",&a &b);
      |                       ~~ ^
      |                       |
      |                       int *
main.c:6:18: error: expected ';' before 'printf'
    6 |         d=(a+b)*2
      |                  ^
      |                  ;
    7 |         printf("%d\n",c);
      |         ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:26: error: invalid operands to binary & (have 'int *' and 'int')
    4 |         scanf("%d %d",&a &b);
      |                       ~~ ^
      |                       |
      |                       int *
main.c:6:18: error: expected ';' before 'printf'
    6 |         d=(a+b)*2
      |                  ^
      |                  ;
    7 |         printf("%d %d",c,d);
      |         ~~~~~~
Language: C

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

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

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

           printf("%d %d", a*b, 2*(a+b));

           return(0);
}

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

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

Compiler output:
main.c: In function 'main':
main.c:6:34: error: expected ';' before 'return'
    6 |     printf("%d %d\n",a*b,a*2+b*2)
      |                                  ^
      |                                  ;
    7 |     return 0;
      |     ~~~~~~
Language: C


#include<stdio.h>

int main() {

int a , b, c, d;
scanf("%d %d", &a, &b);
c = a * b;
d = a + a + b + b;

printf("%d" + " " + "%d", c, d);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:13: error: invalid operands to binary + (have 'char *' and 'char *')
   11 | printf("%d" + " " + "%d", c, d);
      |        ~~~~ ^
      |        |    |
      |        |    char *
      |        char *
Language: C

#include  <stdioh>
int main(void)
{
  int a,b;
  scanf("%d %d",&a,&b);
  printf("%d %d",a*b,(a+b)*2);
  return 0;
}

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:13: warning: missing terminating " character
    7 |      printf("%d %d\n,a*b,2(a+b));
      |             ^
main.c:7:13: error: missing terminating " character
    7 |      printf("%d %d\n,a*b,2(a+b));
      |             ^~~~~~~~~~~~~~~~~~~~~
main.c:8:6: error: expected expression before 'return'
    8 |      return 0;
      |      ^~~~~~
main.c:8:15: error: expected ';' before '}' token
    8 |      return 0;
      |               ^
      |               ;
    9 | }
      | ~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:27: error: called object is not a function or function pointer
    7 |      printf("%d %d\n",a*b,2(a+b));
      |                           ^
Language: C

#include <stdio.h>

int main(int argc, char *argv[])
{
  itn a=0, b=0;

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

  printf("%d %d", a * b, (a*2)+(b*2));
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: unknown type name 'itn'; did you mean 'int'?
    5 |   itn a=0, b=0;
      |   ^~~
      |   int
Language: C

#include <stdio.h>
int main(void)
{
int a,b,s,l;
scanf("%d %d", a,b");
s = a * b;
l = (a + b) * 2;
printf("%d %d", s,l);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:19: warning: missing terminating " character
    5 | scanf("%d %d", a,b");
      |                   ^
main.c:5:19: error: missing terminating " character
    5 | scanf("%d %d", a,b");
      |                   ^~~
main.c:5:19: error: expected ')' before 's'
    5 | scanf("%d %d", a,b");
      |      ~            ^
      |                   )
    6 | s = a * b;
      | ~                  
main.c:9:10: error: expected ';' before '}' token
    9 | return 0;
      |          ^
      |          ;
   10 | }
      | ~
Language: C

#!/usr/bin/python 
#-*- coding:utf-8 -*-

import sys

def getchar():
  return ord(sys.stdin.read(1))

def get_num():
  n = 0
  tmp = getchar()
  while ord('0') <= tmp <= ord('9'):
    n = n*10 + (tmp-ord('0'))
    tmp = getchar()
  return n

a = get_num()
b = get_num()
print("%d %d"%(a*b, 2*a+2*b))

Compiler output:
main.c:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/python
      |  ^
main.c:2:2: error: invalid preprocessing directive #-
    2 | #-*- coding:utf-8 -*-
      |  ^
main.c:4:1: error: unknown type name 'import'
    4 | import sys
      | ^~~~~~
main.c:6:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'def'
    6 | def getchar():
      | ^~~
main.c:6:1: error: unknown type name 'def'
Language: C

//AOJ 10002

#include <stdio.h>

int main ()
{
	int a, b;
	int menseki,nagasa;

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

	menseki = a*b;
	nagasa  = (a + b)*2

	printf ("%d %d",menseki,nagasa); 
	
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:28: error: expected ';' before 'printf'
   13 |         nagasa  = (a + b)*2
      |                            ^
      |                            ;
   14 | 
   15 |         printf ("%d %d",menseki,nagasa);
      |         ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:24: error: expected ')' before string constant
    9 |         printf("%d\n",m "%d\n",s);
      |               ~        ^~~~~~~
      |                        )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:22: error: expected ')' before string constant
    5 |         scanf("%d",&a"%d",&b);
      |              ~       ^~~~
      |                      )
main.c:8:24: error: expected ')' before string constant
    8 |         printf("%d\n",m "%d\n",s);
      |               ~        ^~~~~~~
      |                        )
Language: C

#include "stdio.h"

int main(void)
{
	int a,b;
	
	scanf("%d%d",&a,&b);
	printf("%d %d"a*b,2*(a+b));
}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:23: error: expected ')' before 'a'
    8 |         printf("%d %d"a*b,2*(a+b));
      |               ~       ^
      |                       )
main.c: At top level:
main.c:10:9: error: expected identifier or '(' before 'return'
   10 |         return 0;
      |         ^~~~~~
main.c:11:1: error: expected identifier or '(' before '}' token
   11 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
    int a, b;

    scanf("%d %d", &a, &b);
    pritnf("%d %d\n", a*b, 2*(a+b));

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |     pritnf("%d %d\n", a*b, 2*(a+b));
      |     ^~~~~~
      |     printf
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:22: error: called object is not a function or function pointer
    6 | printf("%d %d\n",a*b,2(a+b));
      |                      ^
Language: C

#include<stdio.h>

int main(){

int x,y;

   scanf("%d %d",%x,&y);
    printf("%d\n",x*y);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected expression before '%' token
    7 |    scanf("%d %d",%x,&y);
      |                  ^
Language: C

#include <stdio.h>

int main(void)
{
	int a,b,S,C;
	scanf("%d%d",&a,&b);

	S = a * b;
	C = 2a + 2b;	

	printf("%d %d\n", S , C);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:13: error: invalid suffix "a" on integer constant
    9 |         C = 2a + 2b;
      |             ^~
main.c:9:18: error: invalid suffix "b" on integer constant
    9 |         C = 2a + 2b;
      |                  ^~
Language: C

#include<cstdio>

int main(){
double a,b;
scanf("%d %d",&a,&b);
printf("%d %d",a*b,a*2+b*2);
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;
    
    scanf("%d %d", &a, &b);
    printf("%d %d\n", a*b, a*2+b*2);    
	
	return 0;
}

Compiler output:
main.c:1:1: error: stray '\1' in program
    1 | <U+0001><U+0001>#include <stdio.h>
      | ^~~~~~~~
main.c:1:2: error: stray '\1' in program
    1 | <U+0001><U+0001>#include <stdio.h>
      |         ^~~~~~~~
main.c:1:3: error: stray '#' in program
    1 | #include <stdio.h>
      |   ^
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | #include <stdio.h>
      |            ^
Language: C

#include<stdio.h>
int main()

int a;
int b:
scanf("%d %d",&a,&b);
printf("%d\n",a*b);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    5 | int b:
      |      ^
main.c:7:1: error: expected declaration specifiers before 'printf'
    7 | printf("%d\n",a*b);
      | ^~~~~~
main.c:9:1: error: expected declaration specifiers before 'return'
    9 | return 0;
      | ^~~~~~
main.c:11:1: error: expected declaration specifiers before '}' token
   11 | }
      | ^
main.c:4:5: error: declaration for parameter 'a' but no such parameter
    4 | int a;
      |     ^
main.c:12: error: expected '{' at end of input
Language: C

#include<stdio.h>
int main (void)
{
int a,b,c,d;

scanf("%d"&a);
scanf("%d"&b);
c=a*b;
d=a+a+b+b;
printf("%d %d\n",c,d);

return 0;

}

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

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

Compiler output:
main.c: In function 'main':
main.c:9:27: error: expected ')' before 'b'
    9 |         printf("%d %b\n",a b);;
      |               ~           ^~
      |                           )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:27: error: expected ')' before 'b'
    9 |         printf("%d %b\n",a b);
      |               ~           ^~
      |                           )
Language: C

#include <stdio.h>

int main(void)
{
	printf("%d %d",a*b,(a*2)+(b*2));
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:24: error: 'a' undeclared (first use in this function)
    5 |         printf("%d %d",a*b,(a*2)+(b*2));
      |                        ^
main.c:5:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:26: error: 'b' undeclared (first use in this function)
    5 |         printf("%d %d",a*b,(a*2)+(b*2));
      |                          ^
Language: C

#include <stdio.h>

int main(void)
{
	int a,b;
	scanf("%d %d",&a,&b);
	printf("%d %d\na*b,(a*2)+(b*2));
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:16: warning: missing terminating " character
    7 |         printf("%d %d\na*b,(a*2)+(b*2));
      |                ^
main.c:7:16: error: missing terminating " character
    7 |         printf("%d %d\na*b,(a*2)+(b*2));
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~
main.c:8:9: error: expected expression before 'return'
    8 |         return 0;
      |         ^~~~~~
main.c:8:18: error: expected ';' before '}' token
    8 |         return 0;
      |                  ^
      |                  ;
    9 | }
      | ~
Language: C

#include <stdio.h>

int main(void)
{
	int a,b;
	scanf("%d %d",&a,&b);
	printf("%d %d\n"a*b,(a*2)+(b*2));
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:25: error: expected ')' before 'a'
    7 |         printf("%d %d\n"a*b,(a*2)+(b*2));
      |               ~         ^
      |                         )
Language: C

a,b;__cdecl main(f){a=scanf(f="%d %d\n",&a,&b)/printf(f,a*b,a+b<<1);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b;__cdecl main(f){a=scanf(f="%d %d\n",&a,&b)/printf(f,a*b,a+b<<1);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b;__cdecl main(f){a=scanf(f="%d %d\n",&a,&b)/printf(f,a*b,a+b<<1);}
      |   ^
main.c:1:5: error: unknown type name '__cdecl'
    1 | a,b;__cdecl main(f){a=scanf(f="%d %d\n",&a,&b)/printf(f,a*b,a+b<<1);}
      |     ^~~~~~~
main.c: In function 'main':
main.c:1:13: error: type of 'f' defaults to 'int' [-Wimplicit-int]
    1 | a,b;__cdecl main(f){a=scanf(f="%d %d\n",&a,&b)/printf(f,a*b,a+b<<1);}
      |             ^~~~
main.c:1:23: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | a,b;__cdecl main(f){a=scanf(f="%d %d\n",&a,&b)/printf(f,a*b,a+b<<1);}
      |                       ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a,b;__cdecl main(f){a=scanf(f="%d %d\n",&a,&b)/printf(f,a*b,a+b<<1);}
main.c:1:23: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | a,b;__cdecl main(f){a=scanf(f="%d %d\n",&a,&b)/printf(f,a*b,a+b<<1);}
      |                       ^~~~~
main.c:1:23: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:30: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    1 | a,b;__cdecl main(f){a=scanf(f="%d %d\n",&a,&b)/printf(f,a*b,a+b<<1);}
      |                              ^
main.c:1:30: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    1 | a,b;__cdecl main(f){a=scanf(f="%d %d\n",&a,&b)/printf(f,a*b,a+b<<1);}
      |                             ~^~~~~~~~~~
      |                              |
      |                              int
main.c:1:30: note: expected 'const char *' but argument is of type 'int'
main.c:1:48: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | a,b;__cdecl main(f){a=scanf(f="%d %d\n",&a,&b)/printf(f,a*b,a+b<<1);}
      |                                                ^~~~~~
main.c:1:48: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:48: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:48: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:55: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    1 | a,b;__cdecl main(f){a=scanf(f="%d %d\n",&a,&b)/printf(f,a*b,a+b<<1);}
      |                                                       ^
      |                                                       |
      |                                                       int
main.c:1:55: note: expected 'const char *' but argument is of type 'int'
Language: C

#include <stdio.h>
// a,b;main(f){scanf(f="%d %d\n",&a,&b);a=!printf(f,a*b,a+b<<1);}
int a,b;int __cdecl main(f){a=scanf(f="%d %d\n",&a,&b)/printf(f,a*b,a+b<<1);}

Compiler output:
main.c:3:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'main'
    3 | int a,b;int __cdecl main(f){a=scanf(f="%d %d\n",&a,&b)/printf(f,a*b,a+b<<1);}
      |                     ^~~~
Language: C

a=input().split()
print(a[0]*a[1] +' '+ 2*a[0]+2*a[1])

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a=input().split()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | a=input().split()
      |   ^~~~~
main.c:1:10: error: request for member 'split' in something not a structure or union
    1 | a=input().split()
      |          ^
main.c:2:1: error: expected ',' or ';' before 'print'
    2 | print(a[0]*a[1] +' '+ 2*a[0]+2*a[1])
      | ^~~~~
Language: C

#include<stdio.h>
int main()
{
   int x;
   int y;

   scanf("%d %d",&x,&y);
   print("%d %d\n",xy,(x+y)*2);
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:4: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |    print("%d %d\n",xy,(x+y)*2);
      |    ^~~~~
      |    printf
main.c:8:20: error: 'xy' undeclared (first use in this function); did you mean 'y'?
    8 |    print("%d %d\n",xy,(x+y)*2);
      |                    ^~
      |                    y
main.c:8:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

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

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

#include <stdio.h>
int main()
{
    int a,b;

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

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

    c=a*b;

    d=a*2+b*2;

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

    printf("%d %d\n",c,d);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:5: error: 'c' undeclared (first use in this function)
   12 |     c=a*b;
      |     ^
main.c:12:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:5: error: 'd' undeclared (first use in this function)
   14 |     d=a*2+b*2;
      |     ^
Language: C

#include <stdio.h>
int main()
{
    int a,b;

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

    c=a*b;

    d=a*2+b*2;

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

    printf("%d %d\n",c,d);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: 'c' undeclared (first use in this function)
    9 |     c=a*b;
      |     ^
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:5: error: 'd' undeclared (first use in this function)
   11 |     d=a*2+b*2;
      |     ^
Language: C

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


    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:31: error: stray '\' in program
    5 |     printf("%d %d",a*b,2*a+2*b\n);
      |                               ^
main.c:5:31: error: expected ')' before 'n'
    5 |     printf("%d %d",a*b,2*a+2*b\n);
      |           ~                   ^~
      |                               )
Language: C

include<stdio.h>
int main(void){
	int a;
	int b;
		scanf("%d", &a);
		scanf("%d", &b);
		printf("%d", a * b);
		printf("%d", a + a + b + b);
                printf("\n");
	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(void)  {
   int a,b;

  scanf ("%d %d" , &a , &b);
  prinff ("%d %d\n" , a*b , 2*(a+b));

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'prinff'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |   prinff ("%d %d\n" , a*b , 2*(a+b));
      |   ^~~~~~
      |   printf
Language: C

#include<stdio.h>
int main(void){
	int a ,b;
		printf("たてa cmよこb cmの長方形の面積を求めます。");
		scanf("%d %d", &a, &b);
		c = a + b
		printf("%d , %d\n", a * b, c * 2);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: 'c' undeclared (first use in this function)
    6 |                 c = a + b
      |                 ^
main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:26: error: expected ';' before 'printf'
    6 |                 c = a + b
      |                          ^
      |                          ;
    7 |                 printf("%d , %d\n", a * b, c * 2);
      |                 ~~~~~~
Language: C

#include<stdio.h>
int main(void){
	int a ,b;
		printf("たてa cmよこb cmの長方形の面積を求めます。");
		scanf("%d %d", &a, &b);
		c = a + b;
		printf("%d , %d\n", a * b, c * 2);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: 'c' undeclared (first use in this function)
    6 |                 c = a + b;
      |                 ^
main.c:6:17: 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;
		scanf("%d %d", &a, &b);
		c = a + b;
		printf("%d , %d\n", a * b, c * 2);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: 'c' undeclared (first use in this function)
    5 |                 c = a + b;
      |                 ^
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'ans3' undeclared (first use in this function); did you mean 'ansr'?
    9 |         ans3 = a * b;
      |         ^~~~
      |         ansr
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
	int a;
	int b;
	scanf("%d %d",&a,&b);
	printf("%d %d",a*b,a*2+b*2);
	retuen 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: 'retuen' undeclared (first use in this function)
    8 |         retuen 0;
      |         ^~~~~~
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:15: error: expected ';' before numeric constant
    8 |         retuen 0;
      |               ^~
      |               ;
Language: C

#include <stdio.h>

int main(int argc, const char * argv[])
{
    int a, b;
    scanf("%d %d",&a, &b);
    printf("%d %d\n",a*b, 2*a+2b);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:31: error: invalid suffix "b" on integer constant
    7 |     printf("%d %d\n",a*b, 2*a+2b);
      |                               ^~
Language: C

#include<stdio.h>
main(){
  int a,b;
  scanf("%d %d",a,b);
  c=a*b;
  d=2*a+2*b;
  printf("%d %d\n",c,d);
  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:5:3: error: 'c' undeclared (first use in this function)
    5 |   c=a*b;
      |   ^
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:3: error: 'd' undeclared (first use in this function)
    6 |   d=2*a+2*b;
      |   ^
Language: C

#include<stdio.h>

int main(void)
{
	int a,b;
	scanf("%d %d",&a,&b);
	printf("%d %d",a*b,(a+b)*2));
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:36: error: expected ';' before ')' token
    7 |         printf("%d %d",a*b,(a+b)*2));
      |                                    ^
      |                                    ;
main.c:7:36: error: expected statement before ')' token
Language: C

#include <stdio.h>

int int main(void)
{
    scanf("%d %d", &a, &b);

    s = a*b;
    l = a*2 + b*2

    printf("%d %d\n", s, l);

    return 0;
}

Compiler output:
main.c:3:5: error: two or more data types in declaration specifiers
    3 | int int main(void)
      |     ^~~
main.c: In function 'main':
main.c:5:21: error: 'a' undeclared (first use in this function)
    5 |     scanf("%d %d", &a, &b);
      |                     ^
main.c:5:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:25: error: 'b' undeclared (first use in this function)
    5 |     scanf("%d %d", &a, &b);
      |                         ^
main.c:7:5: error: 's' undeclared (first use in this function)
    7 |     s = a*b;
      |     ^
main.c:8:5: error: 'l' undeclared (first use in this function)
    8 |     l = a*2 + b*2
      |     ^
main.c:8:18: error: expected ';' before 'printf'
    8 |     l = a*2 + b*2
      |                  ^
      |                  ;
    9 | 
   10 |     printf("%d %d\n", s, l);
      |     ~~~~~~
Language: C

#include <stdio.h>

int int main(void)
{
    scanf("%d %d", &a, &b);

    s = a*b;
    l = a*2 + b*2;

    printf("%d %d\n", s, l);

    return 0;
}

Compiler output:
main.c:3:5: error: two or more data types in declaration specifiers
    3 | int int main(void)
      |     ^~~
main.c: In function 'main':
main.c:5:21: error: 'a' undeclared (first use in this function)
    5 |     scanf("%d %d", &a, &b);
      |                     ^
main.c:5:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:25: error: 'b' undeclared (first use in this function)
    5 |     scanf("%d %d", &a, &b);
      |                         ^
main.c:7:5: error: 's' undeclared (first use in this function)
    7 |     s = a*b;
      |     ^
main.c:8:5: error: 'l' undeclared (first use in this function)
    8 |     l = a*2 + b*2;
      |     ^