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

#include<stdio.h>

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


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

include <stdio.h>

int main(void)
{
   int num1, num2;

   scanf("%d %d", &num1, &num2);

   printf("%d %d\n", (num1 + num2) * 2, num1 * num2);

   return 0;
}


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

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

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



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

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


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

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



Compiler output:
main.c: In function 'main':
main.c:5:23: error: called object is not a function or function pointer
    5 |   printf("%d%d\n",a*b,28(a+b));
      |                       ^~
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:5:23: error: called object is not a function or function pointer
    5 |   printf("%d%d\n",a*b,2(a+b));
      |                       ^
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:5:24: error: called object is not a function or function pointer
    5 |   printf("%d %d\n",a*b,2(a+b));
      |                        ^
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:5:41: error: expected ';' before 'return'
    5 |     printf("%d %d\n",a * b, 2 * (a + b))
      |                                         ^
      |                                         ;
    6 |     return 0;
      |     ~~~~~~
Language: C

#include<stdio.h>

 int main(){
 int a b;

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

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

 return 0;

}


Compiler output:
main.c: In function 'main':
main.c:4:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |  int a b;
      |        ^
main.c:4:8: error: 'b' undeclared (first use in this function)
main.c:4:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:17: error: 'a' undeclared (first use in this function)
    6 |  scanf("%d $d",&a,&b);
      |                 ^
main.c:8:19: error: expected ')' before numeric constant
    8 |  printf("%d\n",a*b 2*(a+b))
      |        ~          ^~
      |                   )
main.c:8:28: error: expected ';' before 'return'
    8 |  printf("%d\n",a*b 2*(a+b))
      |                            ^
      |                            ;
    9 | 
   10 |  return 0;
      |  ~~~~~~
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:8:22: error: expected ')' before numeric constant
    8 |  printf("%d %d\n",a*b 2*(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)*2);
  return 0
    }



Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected ';' before '}' token
    6 |   return 0
      |           ^
      |           ;
    7 |     }
      |     ~
Language: C


#include<stdio.h>

int main(){
  int a,b,x,y;
  scanf("%d %d", &a, &b);
  x = a*b;
  y = 2*a+2*b;
  printf("%d\n", x y);

  return 0;
}


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

#include<stdio.h>

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

std1dc5:ITP1_1 s1260235[105]$ cat ITP1_1_C.c
#include<stdio.h>
int main()
{
  int  a,b;
  scanf("%d", &a b) ;
  printf("%d\n" , 2*(a+b) a*b)
    return 0;
}



Compiler output:
main.c:10:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   10 | std1dc5:ITP1_1 s1260235[105]$ cat ITP1_1_C.c
      |        ^
Language: C


#include<stdio.h>
int main()
{
  int  a,b;
  scanf("%d", &a b) ;
  printf("%d\n" , 2*(a+b) a*b)
    return 0;
}
  
std1dc5:ITP1_1 s1260235[106]$ cat ITP1_1_C.c
#include<stdio.h>
int main()
{
  int  a,b;
  scanf("%d %d", &a ,&b) ;
  printf("%d\n %d\n" , 2*(a+b), a*b);
    return 0;
}
  



Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected ')' before 'b'
    6 |   scanf("%d", &a b) ;
      |        ~        ^~
      |                 )
main.c:7:26: error: expected ')' before 'a'
    7 |   printf("%d\n" , 2*(a+b) a*b)
      |         ~                ^~
      |                          )
main.c:7:31: error: expected ';' before 'return'
    7 |   printf("%d\n" , 2*(a+b) a*b)
      |                               ^
      |                               ;
    8 |     return 0;
      |     ~~~~~~                     
main.c: At top level:
main.c:11:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   11 | std1dc5:ITP1_1 s1260235[106]$ cat ITP1_1_C.c
      |        ^
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:9:3: error: expected declaration or statement at end of input
    9 |   return 0;
      |   ^~~~~~
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));
    return0;
}


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

//
//  main.c
//  aoj_03
//
//  Created by k16031kk on 2018/05/17.
//  Copyright © 2018年 AIT. All rights reserved.
//

#include <stdio.h>

int main(int argc, const char * argv[]) {
    // insert code here...
    //int a, b;
    scanf("%d %d",&a, &b);
    int area=a*b;
    int track=a*2+b*2;
    printf("%d %d\n",area, track);
    return 0;
}



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


Compiler output:
main.c: In function 'main':
main.c:5:21: error: expected ')' before 'a'
    5 |     printf("%d %d\n" a*b 2*(a+b));
      |           ~         ^~
      |                     )
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:5:26: error: expected ')' before numeric constant
    5 |     printf("%d %d\n", a*b 2*(a+b));
      |           ~              ^~
      |                          )
Language: C

#include<stdio.h>
int main(){
    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:5:24: error: expected ')' before numeric constant
    5 |     printf("%d %d", a*b 2*(a+b));
      |           ~            ^~
      |                        )
Language: C

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


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

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


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

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


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

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


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

#include<stdio.h>
int main(){
    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:5:23: error: expected ')' before numeric constant
    5 |     printf("%d%d" ,a*b 2*(a+b));
      |           ~           ^~
      |                       )
Language: C

#include<stdio.h>
int main(){
    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:5:24: error: expected ')' before numeric constant
    5 |     printf("%d %d" ,a*b 2*(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:5:39: error: expected ')' before ';' token
    5 |     printf("%d %d\n",a * b,2 * (a + b);
      |           ~                           ^
      |                                       )
main.c:6:14: error: expected ';' before '}' token
    6 |     return 0;
      |              ^
      |              ;
    7 | }
      | ~
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:18: error: invalid operands to binary & (have 'char *' and 'int')
    4 |     scanf("%d,%d"&a,&b);
      |           ~~~~~~~^
      |           |
      |           char *
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:18: error: invalid operands to binary & (have 'char *' and 'int')
    4 |     scanf("%d,%d"&a,&b);
      |           ~~~~~~~^
      |           |
      |           char *
Language: C

#include <stdio.h>
int main(void){
    int a,b;
    a=3;
    b=5;
    
    printf("面積=%d",a*b);
    printf("周=%d",2*(a+b);
    
    return 0;
    
    
}



Compiler output:
main.c: In function 'main':
main.c:8:27: error: expected ')' before ';' token
    8 |     printf("周=%d",2*(a+b);
      |           ~               ^
      |                           )
main.c:10:14: error: expected ';' before '}' token
   10 |     return 0;
      |              ^
      |              ;
......
   13 | }
      | ~
Language: C

#include<iostream>
using namespace std;

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


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

p=[int(i) for i in input().split()]
print(p[0]*p[1],2*p[0]+2*p[1])


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | p=[int(i) for i in input().split()]
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'p' [-Wimplicit-int]
main.c:1:3: error: expected expression before '[' token
    1 | p=[int(i) for i in input().split()]
      |   ^
main.c:2:1: error: expected ',' or ';' before 'print'
    2 | print(p[0]*p[1],2*p[0]+2*p[1])
      | ^~~~~
Language: C

#include<stdio.h>

int main(void)[
int a,b

    scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/
　　printf("面積、周の長さ＝％ｄ￥n", a*b, 2*(a+b));

    return 0;
]


Compiler output:
main.c:4:1: error: expected expression before 'int'
    4 | int a,b
      | ^~~
main.c:6:29: error: unterminated comment
    6 |     scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/
      |                             ^
Language: C

#include<stdio.h>

int main(void)[
int a,b

    scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/

　　printf("面積、周の長さ＝％ｄ￥n", a*b, 2*(a+b));

    return 0;
]


Compiler output:
main.c:4:1: error: expected expression before 'int'
    4 | int a,b
      | ^~~
main.c:6:29: error: unterminated comment
    6 |     scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/
      |                             ^
Language: C

#include<stdio.h>

int main()[
int a,b

    scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/

　　printf("面積、周の長さ＝％ｄ￥n", a*b, 2*(a+b));

    return 0;
]


Compiler output:
main.c:4:1: error: expected expression before 'int'
    4 | int a,b
      | ^~~
main.c:6:29: error: unterminated comment
    6 |     scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/
      |                             ^
Language: C

#include<stdio.h>

int main()[
int a b

    scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/

　　printf("面積、周の長さ＝％ｄ￥n", a*b, 2*(a+b));

    return 0;
]


Compiler output:
main.c:4:1: error: expected expression before 'int'
    4 | int a b
      | ^~~
main.c:6:29: error: unterminated comment
    6 |     scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/
      |                             ^
Language: C

#include<stdio.h>

int main()[
int a b

    scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/

　　printf("面積 周の長さ＝％ｄ￥n", a*b, 2*(a+b));

    return 0;
]


Compiler output:
main.c:4:1: error: expected expression before 'int'
    4 | int a b
      | ^~~
main.c:6:29: error: unterminated comment
    6 |     scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/
      |                             ^
Language: C

#include<stdio.h>

int main()[
int a b

    scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/

　　printf("面積 周の長さ＝％ｄ￥n", a*b 2*(a+b));

    return 0;
]


Compiler output:
main.c:4:1: error: expected expression before 'int'
    4 | int a b
      | ^~~
main.c:6:29: error: unterminated comment
    6 |     scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/
      |                             ^
Language: C

#include<stdio.h>

int main()[
int a b

    scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/

　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));

    return 0;
]


Compiler output:
main.c:4:1: error: expected expression before 'int'
    4 | int a b
      | ^~~
main.c:6:29: error: unterminated comment
    6 |     scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/
      |                             ^
Language: C

#include<stdio.h>
int main()[
int a b

    scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/

　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));

    return 0;
]


Compiler output:
main.c:3:1: error: expected expression before 'int'
    3 | int a b
      | ^~~
main.c:5:29: error: unterminated comment
    5 |     scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/
      |                             ^
Language: C

#include<stdio.h>
int main()[
    int a^b

    scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */

　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));

    return 0;
]


Compiler output:
main.c:3:5: error: expected expression before 'int'
    3 |     int a^b
      |     ^~~
main.c:7:1: error: stray '\343' in program
    7 | <U+3000><U+3000>printf("<U+9762><U+7A4D> <U+5468><U+306E><U+9577><U+3055><U+FF1D>%d<U+FFE5>n", a*b 2*(a+b));
      | ^~~~~~~~
main.c:7:3: error: stray '\343' in program
    7 | <U+3000><U+3000>printf("<U+9762><U+7A4D> <U+5468><U+306E><U+9577><U+3055><U+FF1D>%d<U+FFE5>n", a*b 2*(a+b));
      |         ^~~~~~~~
Language: C

#include<stdio.h>
int main()[
    int a b

    scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */

　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));

    return 0;
]


Compiler output:
main.c:3:5: error: expected expression before 'int'
    3 |     int a b
      |     ^~~
main.c:7:1: error: stray '\343' in program
    7 | <U+3000><U+3000>printf("<U+9762><U+7A4D> <U+5468><U+306E><U+9577><U+3055><U+FF1D>%d<U+FFE5>n", a*b 2*(a+b));
      | ^~~~~~~~
main.c:7:3: error: stray '\343' in program
    7 | <U+3000><U+3000>printf("<U+9762><U+7A4D> <U+5468><U+306E><U+9577><U+3055><U+FF1D>%d<U+FFE5>n", a*b 2*(a+b));
      |         ^~~~~~~~
Language: C

#include<stdio.h>
int main()[
    int a*b 2*(a+b)

    scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */

　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));

    return 0;
]


Compiler output:
main.c:3:5: error: expected expression before 'int'
    3 |     int a*b 2*(a+b)
      |     ^~~
main.c:7:1: error: stray '\343' in program
    7 | <U+3000><U+3000>printf("<U+9762><U+7A4D> <U+5468><U+306E><U+9577><U+3055><U+FF1D>%d<U+FFE5>n", a*b 2*(a+b));
      | ^~~~~~~~
main.c:7:3: error: stray '\343' in program
    7 | <U+3000><U+3000>printf("<U+9762><U+7A4D> <U+5468><U+306E><U+9577><U+3055><U+FF1D>%d<U+FFE5>n", a*b 2*(a+b));
      |         ^~~~~~~~
Language: C

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

    scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */

　　printf("面積,周の長さ＝%d￥n", a*b,2*(a+b));

    return 0;
]


Compiler output:
main.c:3:5: error: expected expression before 'int'
    3 |     int a,b;
      |     ^~~
main.c:7:1: error: stray '\343' in program
    7 | <U+3000><U+3000>printf("<U+9762><U+7A4D>,<U+5468><U+306E><U+9577><U+3055><U+FF1D>%d<U+FFE5>n", a*b,2*(a+b));
      | ^~~~~~~~
main.c:7:3: error: stray '\343' in program
    7 | <U+3000><U+3000>printf("<U+9762><U+7A4D>,<U+5468><U+306E><U+9577><U+3055><U+FF1D>%d<U+FFE5>n", a*b,2*(a+b));
      |         ^~~~~~~~
Language: C

#include<stdio.h>
int main()[
    int a*b 2*(a+b);
    int a b;

    scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */

　　printf("面積,周の長さ＝%d￥n", a*b,2*(a+b));

    return 0;
]


Compiler output:
main.c:3:5: error: expected expression before 'int'
    3 |     int a*b 2*(a+b);
      |     ^~~
main.c:8:1: error: stray '\343' in program
    8 | <U+3000><U+3000>printf("<U+9762><U+7A4D>,<U+5468><U+306E><U+9577><U+3055><U+FF1D>%d<U+FFE5>n", a*b,2*(a+b));
      | ^~~~~~~~
main.c:8:3: error: stray '\343' in program
    8 | <U+3000><U+3000>printf("<U+9762><U+7A4D>,<U+5468><U+306E><U+9577><U+3055><U+FF1D>%d<U+FFE5>n", a*b,2*(a+b));
      |         ^~~~~~~~
Language: C

#include<stdio.h>
int main()[
a*b 2*(a+b)   int a b;

    scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */

　　printf("面積,周の長さ＝%d￥n", a*b,2*(a+b));

    return 0;
]


Compiler output:
main.c:3:1: error: 'a' undeclared here (not in a function)
    3 | a*b 2*(a+b)   int a b;
      | ^
main.c:3:3: error: 'b' undeclared here (not in a function)
    3 | a*b 2*(a+b)   int a b;
      |   ^
main.c:3:4: error: expected ']' before numeric constant
    3 | a*b 2*(a+b)   int a b;
      |    ^~
      |    ]
main.c:7:1: error: stray '\343' in program
    7 | <U+3000><U+3000>printf("<U+9762><U+7A4D>,<U+5468><U+306E><U+9577><U+3055><U+FF1D>%d<U+FFE5>n", a*b,2*(a+b));
      | ^~~~~~~~
main.c:7:3: error: stray '\343' in program
    7 | <U+3000><U+3000>printf("<U+9762><U+7A4D>,<U+5468><U+306E><U+9577><U+3055><U+FF1D>%d<U+FFE5>n", a*b,2*(a+b));
      |         ^~~~~~~~
Language: C

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

    scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */

　　printf("面積,周の長さ＝%d￥n", a*b,2*(a+b));

    return 0;
]


Compiler output:
main.c:3:1: error: expected expression before 'int'
    3 | int a b;
      | ^~~
main.c:7:1: error: stray '\343' in program
    7 | <U+3000><U+3000>printf("<U+9762><U+7A4D>,<U+5468><U+306E><U+9577><U+3055><U+FF1D>%d<U+FFE5>n", a*b,2*(a+b));
      | ^~~~~~~~
main.c:7:3: error: stray '\343' in program
    7 | <U+3000><U+3000>printf("<U+9762><U+7A4D>,<U+5468><U+306E><U+9577><U+3055><U+FF1D>%d<U+FFE5>n", a*b,2*(a+b));
      |         ^~~~~~~~
Language: C

#include<stdio.h>
int main(void)
{

    scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */
　　printf("面積＝%d￥n", a*b);
    printf("周の長さ=%d\n", 2*(a+b));

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:21: error: 'a' undeclared (first use in this function)
    5 |     scanf("%d %d", &a, &b); /* 変数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); /* 変数a,bに二つの整数をこの順番で入力する */
      |                         ^
main.c:6:1: error: stray '\343' in program
    6 | <U+3000><U+3000>printf("<U+9762><U+7A4D><U+FF1D>%d<U+FFE5>n", a*b);
      | ^~~~~~~~
main.c:6:3: error: stray '\343' in program
    6 | <U+3000><U+3000>printf("<U+9762><U+7A4D><U+FF1D>%d<U+FFE5>n", a*b);
      |         ^~~~~~~~
Language: C

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

    scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */

　　printf("面積＝%d￥n", a*b);

    printf("周の長さ=%d\n", 2*(a+b));

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:1: error: stray '\343' in program
    8 | <U+3000><U+3000>printf("<U+9762><U+7A4D><U+FF1D>%d<U+FFE5>n", a*b);
      | ^~~~~~~~
main.c:8:3: error: stray '\343' in program
    8 | <U+3000><U+3000>printf("<U+9762><U+7A4D><U+FF1D>%d<U+FFE5>n", 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:5:24: error: expected ')' before numeric constant
    5 |    printf("%d %d\n",a*b 2 * (a + b));
      |          ~             ^~
      |                        )
Language: C

#incluse(stdio.h)

int main(){
int x;
int y;

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

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

  return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #incluse; did you mean #include?
    1 | #incluse(stdio.h)
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d,%d", &a, %b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #incluse(stdio.h)
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d,%d", &a, %b);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:19: error: 'a' undeclared (first use in this function)
    7 |   scanf("%d,%d", &a, %b);
      |                   ^
main.c:7:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:22: error: expected expression before '%' token
    7 |   scanf("%d,%d", &a, %b);
      |                      ^
main.c:9:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |   printf("%d\n",a*b 2*(a+b));
      |   ^~~~~~
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:19: error: 'b' undeclared (first use in this function)
    9 |   printf("%d\n",a*b 2*(a+b));
      |                   ^
main.c:9:20: error: expected ')' before numeric constant
    9 |   printf("%d\n",a*b 2*(a+b));
      |         ~          ^~
      |                    )
Language: C

#incluse(stdio.h)

int main(){
int a;
int b;

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

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

  return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #incluse; did you mean #include?
    1 | #incluse(stdio.h)
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d,%d", &a, &b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #incluse(stdio.h)
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d,%d", &a, &b);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |   printf("%d\n",a*b 2*(a+b));
      |   ^~~~~~
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:20: error: expected ')' before numeric constant
    9 |   printf("%d\n",a*b 2*(a+b));
      |         ~          ^~
      |                    )
Language: C

import java.util.Scanner;

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




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

import java.util.Scanner;

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




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

#include <stdio.h>

int a, b, p;

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


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

#include <stdio.h>

int a, b, p;

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


Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected ';' before numeric constant
    7 |     p = (a)2 + (b)2;
      |            ^
      |            ;
Language: C

#include <stdio.h>

int a, b, p;

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


Compiler output:
main.c: In function 'main':
main.c:7:9: error: called object is not a function or function pointer
    7 |     p = 2(a + b);
      |         ^
Language: C

#include <stdio.h>

int a, b, area, perimeter;

int main()
{
    scanf("%d %d", &a &b);
    area = a * b;
    perimeter = 2(a+b);
    print("%d %d", area, perimeter);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:23: error: invalid operands to binary & (have 'int *' and 'int')
    7 |     scanf("%d %d", &a &b);
      |                    ~~ ^
      |                    |
      |                    int *
main.c:9:17: error: called object is not a function or function pointer
    9 |     perimeter = 2(a+b);
      |                 ^
main.c:10:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |     print("%d %d", area, perimeter);
      |     ^~~~~
      |     printf
Language: C

#include <stdio.h>

int a, b, area, perimeter;

int main()
{
    scanf("%d %d", &a &b);
    area = a * b;
    perimeter = 2 * (a+b);
    print("%d %d", area, perimeter);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:23: error: invalid operands to binary & (have 'int *' and 'int')
    7 |     scanf("%d %d", &a &b);
      |                    ~~ ^
      |                    |
      |                    int *
main.c:10:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |     print("%d %d", area, perimeter);
      |     ^~~~~
      |     printf
Language: C

#include <stdio.h>

int a, b, area, perimeter;

int main()
{
    scanf("%d %d", &a, &b);
    area = a * b;
    perimeter = 2 * (a+b);
    print("%d %d", area, perimeter);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |     print("%d %d", area, perimeter);
      |     ^~~~~
      |     printf
Language: C

#include <stdio.h>

int a, b;

int main(){

  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:8:10: warning: missing terminating " character
    8 |   printf("%d %d\n, a * b, 2 * (a + b));
      |          ^
main.c:8:10: error: missing terminating " character
    8 |   printf("%d %d\n, a * b, 2 * (a + b));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:10:3: error: expected expression before 'return'
   10 |   return 0;
      |   ^~~~~~
main.c:10:12: error: expected ';' before '}' token
   10 |   return 0;
      |            ^
      |            ;
   11 | }
      | ~
Language: C

#include <stdio.h>

int main(){

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

    printf("面積は"%d"です。\n", a*b);
    printf("周の長さは%dです。\n", 2a+2b);

    return 0;
}


Compiler output:
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:21: error: 'd' undeclared (first use in this function)
    7 |     printf("面積は"%d"です。\n", a*b);
      |                     ^
main.c:7:22: error: expected ')' before string constant
    7 |     printf("面積は"%d"です。\n", a*b);
      |           ~          ^~~~~~~~~~
      |                      )
main.c:8:36: error: invalid suffix "a" on integer constant
    8 |     printf("周の長さは%dです。\n", 2a+2b);
      |                                    ^~
main.c:8:39: error: invalid suffix "b" on integer constant
    8 |     printf("周の長さは%dです。\n", 2a+2b);
      |                                       ^~
Language: C

#include <stdio.h>

int main(){

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

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

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:22: error: 'a' undeclared (first use in this function)
    5 |     scanf("%d, %d", &a, &b);
      |                      ^
main.c:5:22: 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 |     scanf("%d, %d", &a, &b);
      |                          ^
main.c:7:12: warning: missing terminating " character
    7 |     printf("a*b, 2(a+b));
      |            ^
main.c:7:12: error: missing terminating " character
    7 |     printf("a*b, 2(a+b));
      |            ^~~~~~~~~~~~~~
main.c:9:5: error: expected expression before 'return'
    9 |     return 0;
      |     ^~~~~~
main.c:9:14: error: expected ';' before '}' token
    9 |     return 0;
      |              ^
      |              ;
   10 | }
      | ~
Language: C

#include <stdio.h>

int main(){

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


Compiler output:
main.c: In function 'main':
main.c:5:22: error: 'a' undeclared (first use in this function)
    5 |     scanf("%d, %d", &a, &b);
      |                      ^
main.c:5:22: 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 |     scanf("%d, %d", &a, &b);
      |                          ^
main.c:5:5: error: expected declaration or statement at end of input
    5 |     scanf("%d, %d", &a, &b);
      |     ^~~~~
Language: C

#include <stdio.h>

int main(){

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

    printf("a*b 2(a+b)");

    return 0;
}


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

#include <stdio.h>

int main(){

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

    return 0;
}


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

#include <stdio.h>

int main(){

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


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

#include <stdio.h>

int main(){

    int a;
    int b;

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

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:23: error: invalid operands to binary & (have 'int *' and 'int')
    8 |     scanf("%d %d", &a &b);
      |                    ~~ ^
      |                    |
      |                    int *
main.c:9:23: error: expected ')' before numeric constant
    9 |     printf("%d\n" ,a*b 2(a+b));
      |           ~           ^~
      |                       )
Language: C

#include <stdio.h>

int main(){

    int a;
    int b;

    scanf("%d %d", &a &b); /* 変数a, bに２つの整数をこの順番で入力する*/
    printf("%d\n" ,a*b 2(a+b));

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:23: error: invalid operands to binary & (have 'int *' and 'int')
    8 |     scanf("%d %d", &a &b); /* 変数a, bに２つの整数をこの順番で入力する*/
      |                    ~~ ^
      |                    |
      |                    int *
main.c:9:23: error: expected ')' before numeric constant
    9 |     printf("%d\n" ,a*b 2(a+b));
      |           ~           ^~
      |                       )
Language: C

#include <stdio.h>

int main(){

    int a;
    int b;

    scanf("%d %d", &a &b); /* 変数a, bに２つの整数をこの順番で入力する*/
    printf("%d\n" ,a*b 2*(a+b));

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:23: error: invalid operands to binary & (have 'int *' and 'int')
    8 |     scanf("%d %d", &a &b); /* 変数a, bに２つの整数をこの順番で入力する*/
      |                    ~~ ^
      |                    |
      |                    int *
main.c:9:23: error: expected ')' before numeric constant
    9 |     printf("%d\n" ,a*b 2*(a+b));
      |           ~           ^~
      |                       )
Language: C

#include <stdio.h>

int main(){

    scanf("%d %d", &a &b); /* 変数a, bに２つの整数をこの順番で入力する*/
    printf("%d\n" ,a*b 2*(a+b));

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:21: error: 'a' undeclared (first use in this function)
    5 |     scanf("%d %d", &a &b); /* 変数a, bに２つの整数をこの順番で入力する*/
      |                     ^
main.c:5:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:24: error: 'b' undeclared (first use in this function)
    5 |     scanf("%d %d", &a &b); /* 変数a, bに２つの整数をこの順番で入力する*/
      |                        ^
main.c:6:23: error: expected ')' before numeric constant
    6 |     printf("%d\n" ,a*b 2*(a+b));
      |           ~           ^~
      |                       )
Language: C

#include <stdio.h>

int main(){

    scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する*/
    printf("%d\n" ,a*b 2*(a+b));

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:21: error: 'a' undeclared (first use in this function)
    5 |     scanf("%d %d", &a, &b); /* 変数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); /* 変数a, bに２つの整数をこの順番で入力する*/
      |                         ^
main.c:6:23: error: expected ')' before numeric constant
    6 |     printf("%d\n" ,a*b 2*(a+b));
      |           ~           ^~
      |                       )
Language: C

#include <stdio.h>

int main(){

    scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する*/
    printf("%d\n" ,a*b, 2*(a+b));

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:21: error: 'a' undeclared (first use in this function)
    5 |     scanf("%d %d", &a, &b); /* 変数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); /* 変数a, bに２つの整数をこの順番で入力する*/
      |                         ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:11: error: invalid operands to binary & (have 'char *' and 'int')
    5 | scanf("%d"&a);
      |       ~~~~^
      |       |
      |       char *
main.c:8:23: error: invalid suffix "a" on integer constant
    8 |  printf("%d %d\n",a*b,2a+2b);
      |                       ^~
main.c:8:26: error: invalid suffix "b" on integer constant
    8 |  printf("%d %d\n",a*b,2a+2b);
      |                          ^~
main.c:8:2: error: expected declaration or statement at end of input
    8 |  printf("%d %d\n",a*b,2a+2b);
      |  ^~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:11: error: invalid operands to binary & (have 'char *' and 'int')
    5 | scanf("%d"&a);
      |       ~~~~^
      |       |
      |       char *
main.c:8:2: error: expected declaration or statement at end of input
    8 |  printf("%d %d\n",a*b,a+a+b+b);
      |  ^~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:2: error: expected declaration or statement at end of input
    8 |  printf("%d %d\n",a*b,a+a+b+b);
      |  ^~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:27: error: expected ')' before ';' token
    8 |     printf("%d\n", 2*(a+b);
      |           ~               ^
      |                           )
main.c:9:14: error: expected ';' before '}' token
    9 |     return 0;
      |              ^
      |              ;
   10 | }
      | ~
Language: C

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

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:27: error: expected ')' before ';' token
    8 |     printf("%d\n", 2*(a+b);
      |           ~               ^
      |                           )
main.c:10:14: error: expected ';' before '}' token
   10 |     return 0;
      |              ^
      |              ;
   11 | }
      | ~
Language: C

#include<stdio.h>

int main(void)
{
    int a;
    int b;
    scanf("%d %d", &a, &b);
    printf("a*b=%d\n", 面積);
    printf("2*(a+b)=%d\n", 周の長さ);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:24: error: '\U00009762\U00007a4d' undeclared (first use in this function)
    8 |     printf("a*b=%d\n", 面積);
      |                        ^~~~
main.c:8:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:28: error: '\U00005468\U0000306e\U00009577\U00003055' undeclared (first use in this function)
    9 |     printf("2*(a+b)=%d\n", 周の長さ);
      |                            ^~~~~~~~
Language: C

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


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

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


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

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

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


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

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

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

  return 0;
}


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

#include <stdio.h>
int main(){
   scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */
   printf("a*b");
   printf("2*(a+b));
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:3:20: error: 'a' undeclared (first use in this function)
    3 |    scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */
      |                    ^
main.c:3:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:24: error: 'b' undeclared (first use in this function)
    3 |    scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */
      |                        ^
main.c:5:11: warning: missing terminating " character
    5 |    printf("2*(a+b));
      |           ^
main.c:5:11: error: missing terminating " character
    5 |    printf("2*(a+b));
      |           ^~~~~~~~~~
main.c:6:1: error: expected expression before 'return'
    6 | return 0;
      | ^~~~~~
main.c:6:10: error: expected ';' before '}' token
    6 | return 0;
      |          ^
      |          ;
    7 | }
      | ~
Language: C

#include <stdio.h>

int main(){
  
 scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */
   
   printf("a*b");
   
   printf("2*(a+b));

   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:18: error: 'a' undeclared (first use in this function)
    5 |  scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:22: error: 'b' undeclared (first use in this function)
    5 |  scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */
      |                      ^
main.c:9:11: warning: missing terminating " character
    9 |    printf("2*(a+b));
      |           ^
main.c:9:11: error: missing terminating " character
    9 |    printf("2*(a+b));
      |           ^~~~~~~~~~
main.c:11:4: error: expected expression before 'return'
   11 |    return 0;
      |    ^~~~~~
main.c:11:13: error: expected ';' before '}' token
   11 |    return 0;
      |             ^
      |             ;
   12 | }
      | ~
Language: C

#include <stdio.h>

int main(){
  
 scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */
   
   printf("a*b 2*(a+b)");

   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:18: error: 'a' undeclared (first use in this function)
    5 |  scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:22: error: 'b' undeclared (first use in this function)
    5 |  scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */
      |                      ^
Language: C

#include <stdio.h>

int main(){

   scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */
   
   printf("a*b 2*(a+b)");

   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:20: error: 'a' undeclared (first use in this function)
    5 |    scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */
      |                    ^
main.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:24: error: 'b' undeclared (first use in this function)
    5 |    scanf("%d %d", &a, &b); /* 変数a, bに２つの整数をこの順番で入力する */
      |                        ^