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

#include
int main(void)
{
    int h,m,s,s;
    scanf("%d",&s);
    
    h=s/3600;
    m=s%3600/60;
    s=s%3600%60;
    
    printf("%d:%d:%d\n",h,m,s);
    
    return 0;
}


Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
main.c: In function 'main':
main.c:4:15: error: redeclaration of 's' with no linkage
    4 |     int h,m,s,s;
      |               ^
main.c:4:13: note: previous declaration of 's' with type 'int'
    4 |     int h,m,s,s;
      |             ^
main.c:5:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |     scanf("%d",&s);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include
main.c:5:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |     scanf("%d",&s);
      |     ^~~~~
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |     printf("%d:%d:%d\n",h,m,s);
      |     ^~~~~~
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
int main(void)
{
    int h,m,s,s;
    scanf("%d",&s);
    
    h=s/3600;
    m=s%3600/60;
    s=s%3600%60;
    
    printf("%d:%d:%d\n",h,m,s);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:15: error: redeclaration of 's' with no linkage
    4 |     int h,m,s,s;
      |               ^
main.c:4:13: note: previous declaration of 's' with type 'int'
    4 |     int h,m,s,s;
      |             ^
Language: C

#include<stdio.h>
int main()
{
    scanf("%d %d", &a, &b); 
    for(1<=a,b<=100){
        a*b;
        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);
      |                         ^
main.c:5:20: error: expected ';' before ')' token
    5 |     for(1<=a,b<=100){
      |                    ^
      |                    ;
main.c:5:20: error: expected expression before ')' token
Language: C

#include<stdio.h>
int main()
{
    scanf("%d %d", &a, &b); 
    if(1<=a,b<=100){
        a*b;
        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,c,d;
    scanf("%d %d", &a, &b); 
        c=a*b;
        d=2*(a+b);
        printf("円周=%d\n",c);
        printf("面積=%d\n",d);
        
    }
    return 0;
}


Compiler output:
main.c:12:5: error: expected identifier or '(' before 'return'
   12 |     return 0;
      |     ^~~~~~
main.c:13:1: error: expected identifier or '(' before '}' token
   13 | }
      | ^
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;

return	0;
}


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

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


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

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


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

#include<stdir.h>
#include<string.h>

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

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


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

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

#include <stdio.h>

int main(){
    int m,n;
    scanf("%d%d",&m,&n);
    printf("%d %d",m*n,2(m+n));
}


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

#include <stdio.h>

int main(){
    int m,n;
    scanf("%d%d",&m,&n);
    printf("%d %d\n",m*n,2(m+n));
}


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

#include<stdio.h>

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


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

#include<stdio.h>

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


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

#include<stdio.h>

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


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

#include<stdio.h>

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


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

#include<stdio.h>

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


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

#include<stdio.h>

int main(){
    int a, b, c, r;
    scanf("%d %d", &a, &b);
    c = a*b;
    r = 2*(a*b);
    printf("%d %d", c, r)
}


Compiler output:
main.c: In function 'main':
main.c:8:26: error: expected ';' before '}' token
    8 |     printf("%d %d", c, r)
      |                          ^
      |                          ;
    9 | }
      | ~
Language: C

#include<stdio.h>

int main(){
    int a, b, c, r;
    scanf("%d %d", &a, &b);
    c = a*b;
    r = 2*(a*b);
    printf("%d %d\n", c, r)
}


Compiler output:
main.c: In function 'main':
main.c:8:28: error: expected ';' before '}' token
    8 |     printf("%d %d\n", c, r)
      |                            ^
      |                            ;
    9 | }
      | ~
Language: C

#include<stdio.h>

int main(){
    int a, b, c, r;
    scanf("%d %d", &a, &b);
    c=a*b;
    r=2*(a*b);
    printf("%d %d\n", c, r)
}


Compiler output:
main.c: In function 'main':
main.c:8:28: error: expected ';' before '}' token
    8 |     printf("%d %d\n", c, r)
      |                            ^
      |                            ;
    9 | }
      | ~
Language: C

#include <stdio.h>

int main(void)
{
   int a, b;

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

    return 0;
}


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

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

return 0;

}


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

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

return 0;

}


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

#include<stdio.h>

int main()
{
    int a,b;
    int area = 0; perimeter = 0;
    
    scanf("%d %d\n", &a, &b); fflush(stdin);
    area = a*b;
    perimeter = 2*(a+b);
    printf("%d %d", area, perimeter);
}


Compiler output:
main.c: In function 'main':
main.c:6:19: error: 'perimeter' undeclared (first use in this function)
    6 |     int area = 0; perimeter = 0;
      |                   ^~~~~~~~~
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

return 0;
}


Compiler output:
main.c:1:10: fatal error: studio.h: No such file or directory
    1 | #include <studio.h>
      |          ^~~~~~~~~~
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 + 2 * b);

return 0;
}


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

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

return 0;
}


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

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

  return 0;
}


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

#include <stdio.h>
using namespace std;
int main(void){
    // Your code here!
    int a,b;
    scanf("%d %d",&a,&b);
    printf("%d %d\n",a*b,2*(a+b));
    
}



Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
Language: C

include<stdio.h>

int a = 0, b = 0;
int S = 0, L = 0;

int main() {
	scanf_s("%d %d",&a ,&b );
	S = a * b;
	L = a * 2 + b * 2;
	printf("%d %d", S, L);

	return 0;

}


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
    7 |         scanf_s("%d %d",&a ,&b );
      |         ^~~~~~~
main.c:7:26: error: 'a' undeclared (first use in this function)
    7 |         scanf_s("%d %d",&a ,&b );
      |                          ^
main.c:7:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:30: error: 'b' undeclared (first use in this function)
    7 |         scanf_s("%d %d",&a ,&b );
      |                              ^
main.c:10:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |         printf("%d %d", S, L);
      |         ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | include<stdio.h>
main.c:10:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 |         printf("%d %d", S, L);
      |         ^~~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
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:22: error: invalid operands to binary & (have 'int *' and 'int')
    7 |     scanf("%d %d",&a &b);
      |                   ~~ ^
      |                   |
      |                   int *
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:24: error: called object is not a function or function pointer
    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,2*(a+b);
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:33: 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(){
    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:30: error: expected ')' before ';' token
    6 |     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:4:22: error: expected expression before '%' token
    4 |     scanf("%d %d",&a,%b);
      |                      ^
main.c:5:33: 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(){

    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:22: error: invalid operands to binary & (have 'int *' and 'int')
    7 |     scanf("%d %d",&a &b);
      |                   ~~ ^
      |                   |
      |                   int *
main.c:9:25: error: expected ')' before numeric constant
    9 |     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: 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:4:22: error: expected expression before '%' token
    4 |     scanf("%d %d",&a,%b);
      |                      ^
Language: C

#include <sudio.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:1:10: fatal error: sudio.h: No such file or directory
    1 | #include <sudio.h>
      |          ^~~~~~~~~
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:5:25: error: expected ';' before 'printf'
    5 |     scanf("%d %d",&a,&b)
      |                         ^
      |                         ;
    6 |     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:7:1: error: expected declaration or statement at end of input
    7 | {
      | ^
main.c:7:1: error: expected declaration or statement at end of input
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:6: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |      print("%d %d", &c, &d)
      |      ^~~~~
      |      printf
main.c:7:28: error: expected ';' before 'return'
    7 |      print("%d %d", &c, &d)
      |                            ^
      |                            ;
    8 | return 0
      | ~~~~~~
Language: C

#include<stdio.h>
int main(void)
{
	int a, b;
	int menseki, nagasa;
	printf("aに値を入れてください:"); scanf_s("%d", &a);
	printf("bに値を入れてください:"); scanf_s("%d", &b);
	menseki = a * b;
	nagasa = a * 2 + b * 2;
	printf("%d %d", menseki, nagasa);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:43: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         printf("aに値を入れてください:"); scanf_s("%d", &a);
      |                                           ^~~~~~~
      |                                           scanf
Language: C

#include<stdio.h>
int main(void)
{
	int a, b;
	int menseki, nagasa;
	/*printf("aに値を入れてください:"); */scanf_s("%d", &a);
	/*printf("bに値を入れてください:"); */scanf_s("%d", &b);
	menseki = a * b;
	nagasa = a * 2 + b * 2;
	printf("%d %d", menseki, nagasa);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:47: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         /*printf("aに値を入れてください:"); */scanf_s("%d", &a);
      |                                               ^~~~~~~
      |                                               scanf
Language: C

#include<stdio.h>
int main()
{
	int a, b;
	int menseki, nagasa;
	/*printf("aに値を入れてください:"); */scanf_s("%d", &a);
	/*printf("bに値を入れてください:"); */scanf_s("%d", &b);
	menseki = a * b;
	nagasa = a * 2 + b * 2;
	printf("%d %d", menseki, nagasa);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:47: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         /*printf("aに値を入れてください:"); */scanf_s("%d", &a);
      |                                               ^~~~~~~
      |                                               scanf
Language: C

#include<stdio.h>
int main()
{
	int a, b;
	int menseki, nagasa;
	/*printf("aに値を入れてください:"); */scanf_s("%d", &a);
	/*printf("bに値を入れてください:"); */scanf_s("%d", &b);
	menseki = a * b;
	nagasa = a * 2 + b * 2;
	printf("%d %d\n", menseki, nagasa);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:47: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         /*printf("aに値を入れてください:"); */scanf_s("%d", &a);
      |                                               ^~~~~~~
      |                                               scanf
Language: C

#include<stdio.h>
int main()
{
	int a, b;
	int menseki, nagasa;
	/*printf("aに値を入れてください:"); */scanf_s("%d", &a);
	/*printf("bに値を入れてください:"); */scanf_s("%d", &b);
	menseki = a * b;
	nagasa = a * 2 + b * 2;
	printf("%d %d/n", menseki, nagasa);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:47: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         /*printf("aに値を入れてください:"); */scanf_s("%d", &a);
      |                                               ^~~~~~~
      |                                               scanf
Language: C

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


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

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


Compiler output:
main.c: In function 'main':
main.c:4:22: 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, x, y;
    scanf("%d %d",&a &b);
    
    x=a*b;
    y=a*2+b*2;
    
    printf("%d %d",x);
    printf("%d %d/n",y);
}


Compiler output:
main.c: In function 'main':
main.c:4:22: 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;
 int b;
 int c;
 int d;

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

return 0;
}


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

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

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

return 0;
}


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

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

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

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:14: error: invalid operands to binary & (have 'char *' and 'int')
    8 | scanf("%d,%d"&a,&b);
      |       ~~~~~~~^
      |       |
      |       char *
main.c:11:9: warning: missing terminating " character
   11 |  printf("2*a+2*b=%d\n,d);
      |         ^
main.c:11:9: error: missing terminating " character
   11 |  printf("2*a+2*b=%d\n,d);
      |         ^~~~~~~~~~~~~~~~~
main.c:13:1: error: expected expression before 'return'
   13 | return 0;
      | ^~~~~~
main.c:13:10: error: expected ';' before '}' token
   13 | return 0;
      |          ^
      |          ;
   14 | }
      | ~
Language: C

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

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

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:14: error: invalid operands to binary & (have 'char *' and 'int')
    8 | scanf("%d %d"&a,&b);
      |       ~~~~~~~^
      |       |
      |       char *
main.c:11:9: warning: missing terminating " character
   11 |  printf("2*a+2*b=%d\n,d);
      |         ^
main.c:11:9: error: missing terminating " character
   11 |  printf("2*a+2*b=%d\n,d);
      |         ^~~~~~~~~~~~~~~~~
main.c:13:1: error: expected expression before 'return'
   13 | return 0;
      | ^~~~~~
main.c:13:10: error: expected ';' before '}' token
   13 | return 0;
      |          ^
      |          ;
   14 | }
      | ~
Language: C

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

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

return 0;
}


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

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

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

return 0;
}


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

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

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

#include <stdio.h>

int main (void)
{
    int tate,yoko,menseki,shuu;
    
    scanf("%d %d",tate,yoko;)
    
    shuu=2 * tate + 2 * yoko;
    menseki=tate * yoko;
    
    printf("%d %d",shuu,menseki);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:28: error: expected ')' before ';' token
    7 |     scanf("%d %d",tate,yoko;)
      |          ~                 ^
      |                            )
main.c:7:30: error: expected ';' before 'shuu'
    7 |     scanf("%d %d",tate,yoko;)
      |                              ^
      |                              ;
    8 | 
    9 |     shuu=2 * tate + 2 * yoko;
      |     ~~~~
Language: C

#include <stdio.h>

int main (void)
{
    int tate,yoko,menseki,shuu;
    
    scanf("%d %d",&tate,&yoko;)
    
    shuu=2 * tate + 2 * yoko;
    menseki=tate * yoko;
    
    printf("%d %d",shuu,menseki);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:30: error: expected ')' before ';' token
    7 |     scanf("%d %d",&tate,&yoko;)
      |          ~                   ^
      |                              )
main.c:7:32: error: expected ';' before 'shuu'
    7 |     scanf("%d %d",&tate,&yoko;)
      |                                ^
      |                                ;
    8 | 
    9 |     shuu=2 * tate + 2 * yoko;
      |     ~~~~
Language: C

#include <stdio.h>

int main (void)
{
    int tate,yoko,menseki,shuu;
    
    scanf("%d %d",&tate,&yoko);
    
    shuu=2 * tate + 2 * yoko;
    menseki=tate * yoko;
    
    printf("%d %d",shuu,menseki\n);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:32: error: stray '\' in program
   12 |     printf("%d %d",shuu,menseki\n);
      |                                ^
main.c:12:32: error: expected ')' before 'n'
   12 |     printf("%d %d",shuu,menseki\n);
      |           ~                    ^~
      |                                )
Language: C

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

int main()
{
	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:6:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'y'
    6 |         int x y;
      |               ^
main.c:6:15: error: 'y' undeclared (first use in this function)
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:23: error: 'x' undeclared (first use in this function)
    7 |         scanf("%d%d",&x,&y);
      |                       ^
Language: C

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

int main()
{
	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:6:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'y'
    6 |         int x y;
      |               ^
main.c:6:15: error: 'y' undeclared (first use in this function)
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:24: error: 'x' undeclared (first use in this function)
    7 |         scanf("%d %d",&x,&y);
      |                        ^
Language: C

#include<stdio.h>

intmain(void){
    int a,b;
    int m, len;
    
    scanf("%d %d", &a, &b);
    m = a*b;
    len = (a+b)*2;
    printf("%d %d\n", m, len);
    
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | intmain(void){
      | ^~~~~~~
Language: C

#include<stdio.h>

intmain(void){
    int a,b;
    int m, len;
    
    scanf("%d %d", &a, &b);
    m = a*b;
    len = (a+b)*2;
    printf("%d %d", m, len);
    
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | intmain(void){
      | ^~~~~~~
Language: C

#include <iostream>
using namespace std;

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



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

#include <iostream>
using namespace std;

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




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

#include <iostream>
int main(void)
{
 
         int a=0;
         int b=0;
 
         cin>>a>>b;

         cout<<a*b<<2*(a+b)<<endl;
 
         return 0;
 
}


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

#include<stdio.h>

int main{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:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main{void){
      |         ^
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:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main{void){
      |         ^
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));
    retrun 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:26: error: expected ';' before ':' token
    5 |     scanf("%d %d",&a ,&b):
      |                          ^
      |                          ;
main.c:7:5: error: 'retrun' undeclared (first use in this function)
    7 |     retrun 0;
      |     ^~~~~~
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:11: error: expected ';' before numeric constant
    7 |     retrun 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));
    retrun0;
}


Compiler output:
main.c: In function 'main':
main.c:5:26: error: expected ';' before ':' token
    5 |     scanf("%d %d",&a ,&b):
      |                          ^
      |                          ;
main.c:7:5: error: 'retrun0' undeclared (first use in this function)
    7 |     retrun0;
      |     ^~~~~~~
main.c:7:5: 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));
    retrun0;
}


Compiler output:
main.c: In function 'main':
main.c:5:27: error: expected ';' before ':' token
    5 |     scanf("%d %d" ,&a ,&b):
      |                           ^
      |                           ;
main.c:7:5: error: 'retrun0' undeclared (first use in this function)
    7 |     retrun0;
      |     ^~~~~~~
main.c:7:5: 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));
    retrun0;
}


Compiler output:
main.c: In function 'main':
main.c:5:27: error: expected ';' before ':' token
    5 |     scanf("%d %d" ,&a ,&b):
      |                           ^
      |                           ;
main.c:7:5: error: 'retrun0' undeclared (first use in this function)
    7 |     retrun0;
      |     ^~~~~~~
main.c:7:5: 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));
    retrun0;
}


Compiler output:
main.c: In function 'main':
main.c:5:27: error: expected ';' before ':' token
    5 |     scanf("%d %d" ,&a ,&b):
      |                           ^
      |                           ;
main.c:7:5: error: 'retrun0' undeclared (first use in this function)
    7 |     retrun0;
      |     ^~~~~~~
main.c:7:5: 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));
   
    retrun0;
}


Compiler output:
main.c: In function 'main':
main.c:5:27: error: expected ';' before ':' token
    5 |     scanf("%d %d" ,&a ,&b):
      |                           ^
      |                           ;
main.c:8:5: error: 'retrun0' undeclared (first use in this function)
    8 |     retrun0;
      |     ^~~~~~~
main.c:8:5: 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));
   
    retrun0;
}


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


Compiler output:
main.c: In function 'main':
main.c:10:5: error: 'retrun0' undeclared (first use in this function)
   10 |     retrun0;
      |     ^~~~~~~
main.c:10:5: 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));
   
    retrun0;
}


Compiler output:
main.c: In function 'main':
main.c:8:5: error: 'retrun0' undeclared (first use in this function)
    8 |     retrun0;
      |     ^~~~~~~
main.c:8:5: 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));
   
    return0;
}


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

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





 
  
    return 0;
}



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

Select Code

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


Compiler output:
main.c:1:1: error: unknown type name 'Select'
    1 | Select Code
      | ^~~~~~
main.c:1:12: error: expected ';' before 'typedef'
    1 | Select Code
      |            ^
      |            ;
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:4:22: error: expected ')' before 'a'
    4 |     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"2*(a+b));
    
    return 0;
    
}


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

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


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

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


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

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


Compiler output:
main.c: In function 'main':
main.c:7:18: error: invalid operands to binary & (have 'char *' and 'int')
    7 |     printf("%d\n"&2*(a + b));
      |            ~~~~~~^~~~~~~~~~
      |            |       |
      |            char *  int
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:6:18: error: invalid operands to binary & (have 'char *' and 'int')
    6 |     scanf("%d %d"&a,&b);
      |           ~~~~~~~^
      |           |
      |           char *
main.c:8:26: error: called object is not a function or function pointer
    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,2(a+b));
    return 0;
    
}


Compiler output:
main.c: In function 'main':
main.c:6:18: error: invalid operands to binary & (have 'char *' and 'int')
    6 |     scanf("%d %d"&a,&b);
      |           ~~~~~~~^
      |           |
      |           char *
main.c:8:26: error: called object is not a function or function pointer
    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,2(a+b));
    return 0;
    
}


Compiler output:
main.c: In function 'main':
main.c:8:26: error: called object is not a function or function pointer
    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("a*b, 2*(a+b)");
    
    return 0;
    
}


Compiler output:
main.c: In function 'main':
main.c:4:13: error: expected identifier or '(' before ';' token
    4 |     int a,b,;
      |             ^
Language: C

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


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

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


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

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


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

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


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c:5:28: error: invalid suffix "a" on integer constant
    5 |     printf("%d\n %d\n",a*b,2a+2b);
      |                            ^~
main.c:5:31: error: invalid suffix "b" on integer constant
    5 |     printf("%d\n %d\n",a*b,2a+2b);
      |                               ^~
Language: C

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



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

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


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

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


Compiler output:
main.c: In function 'main':
main.c:5:27: error: expected ')' before numeric constant
    5 |     printf("%d\n %d\n",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:1: error: stray '\343' in program
    5 | <U+3000><U+3000>int a,b;
      | ^~~~~~~~
main.c:5:3: error: stray '\343' in program
    5 | <U+3000><U+3000>int a,b;
      |         ^~~~~~~~
main.c:6:1: error: stray '\343' in program
    6 | <U+3000><U+3000>
      | ^~~~~~~~
main.c:6:3: error: stray '\343' in program
    6 | <U+3000><U+3000>
      |         ^~~~~~~~
main.c:9:28: error: invalid operands to binary * (have 'int *' and 'int')
    9 |         printf("%d %d\n",&a*b,&2*(a+b));
      |                          ~~^
      |                          |
      |                          int *
main.c:9:31: error: lvalue required as unary '&' operand
    9 |         printf("%d %d\n",&a*b,&2*(a+b));
      |                               ^