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

#include <stdio.h>

int int main(void)
{
    int a
    int b
    int s
    int l

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

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

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

    return 0;
}

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

#include <stdio.h>

int main(void)
{
    int a
    int b
    int s
    int l

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

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

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:10: error: expected ';' before 'int'
    5 |     int a
      |          ^
      |          ;
    6 |     int b
      |     ~~~   
main.c:6:10: error: expected ';' before 'int'
    6 |     int b
      |          ^
      |          ;
    7 |     int s
      |     ~~~   
main.c:7:10: error: expected ';' before 'int'
    7 |     int s
      |          ^
      |          ;
    8 |     int l
      |     ~~~   
main.c:10:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
   10 |     scanf("%d %d", &a, &b);
      |     ^~~~~
main.c:10:21: error: 'a' undeclared (first use in this function)
   10 |     scanf("%d %d", &a, &b);
      |                     ^
main.c:10:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:25: error: 'b' undeclared (first use in this function)
   10 |     scanf("%d %d", &a, &b);
      |                         ^
main.c:12:5: error: 's' undeclared (first use in this function)
   12 |     s = a*b;
      |     ^
main.c:13:5: error: 'l' undeclared (first use in this function)
   13 |     l = a*2 + b*2;
      |     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:11: warning: missing terminating " character
    4 |     scanf("%d%d,&a,&b);
      |           ^
main.c:4:11: error: missing terminating " character
    4 |     scanf("%d%d,&a,&b);
      |           ^~~~~~~~~~~~~
main.c:5:34: error: expected ')' before ';' token
    5 |     printf("%d %d\n",a*b,2*(a+b));
      |                                  ^
      |                                  )
main.c:4:10: note: to match this '('
    4 |     scanf("%d%d,&a,&b);
      |          ^
main.c:5:5: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    5 |     printf("%d %d\n",a*b,2*(a+b));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     |
      |     int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:6:14: error: expected ';' before '}' token
    6 |     return 0;
      |              ^
      |              ;
    7 | }
      | ~
Language: C++

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

	int a, b, s, l;

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

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

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


	return(0);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%d%d", &a, &b);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<iostream>
using namespace std;

int main()
{
 int x, y;
 cin >> x >> y;
 cout << x*Y << '\n';
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'Y' was not declared in this scope
    8 |  cout << x*Y << '\n';
      |            ^
Language: C++

import java.io.*;
import java.util.Scanner;
public class Rectangle {
public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] is = {in.nextInt(), in.nextInt()};
        System.out.println(is[0]*is[1] + " " + (is[0]+is[1])*2);
    }
}

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

import java.io.*;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] is = {in.nextInt(), in.nextInt()};
        System.out.println(is[0]*is[1] + " " + (is[0]+is[1])*2);
    }
}

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

a;main(b){scanf("%d%d",&a,&b);a=!printf("%d\n",a*b);}

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a;main(b){scanf("%d%d",&a,&b);a=!printf("%d\n",a*b);}
      | ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
    1 | a;main(b){scanf("%d%d",&a,&b);a=!printf("%d\n",a*b);}
      |       ^
Language: C++

include<iostream>
using namespace std;

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

    x = a * b;

    y = a+a+b+b;

    cout << x << " " << y << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> a >> b;
      |     ^~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << x << " " << y << endl;
      |     ^~~~
a.cc:13:30: error: 'endl' was not declared in this scope
   13 |     cout << x << " " << y << endl;
      |                              ^~~~
Language: C++

a, b = raw_input().split(' ')
a = int(a)
b = int(b)
s = a * b
s2 = 2 * (a + b)
print("%d %d" % (s, s2))

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = raw_input().split(' ')
      | ^
Language: C++

import sys
def solve():
  for x in sys.stdin:
  a,b = map(int,raw_input().split())
  print a*b,2*a+2*b
  
if __name__ == "__main__":
  solve()

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<iostream>
using namespace std;

int main(){

	int a, b,s.l;
	cin >> a >> b;
	s = a * b;
	l = 2 * (a + b);
	cout << s << " " << l ;


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: expected initializer before '.' token
    6 |         int a, b,s.l;
      |                   ^
a.cc:8:9: error: 's' was not declared in this scope
    8 |         s = a * b;
      |         ^
a.cc:9:9: error: 'l' was not declared in this scope
    9 |         l = 2 * (a + b);
      |         ^
Language: C++

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

Compiler output:
a.cc:5:15: error: a function-definition is not allowed here before '{' token
    5 | int a,b,main(){
      |               ^
Language: C++

a, b = gets.chomp.split.map {|s| s.to_i}
nagasa = a*2 + b*2
menseki = a * b
print(menseki," ",nagasa)

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = gets.chomp.split.map {|s| s.to_i}
      | ^
a.cc:2:1: error: 'nagasa' does not name a type
    2 | nagasa = a*2 + b*2
      | ^~~~~~
Language: C++

#include<stdio.h>

int main(){

int x,y;
scanf("%d %d",&x,&y);

printf("%d %d\n",x*y.2*(x+y));

return 0;
}

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

using System;

class solve
{
    static void Main()
    {
        var v = Console.ReadLine().Split();
        int a = int.Parse(v[0]);
        int b = int.Parse(v[1]);
        Console.WriteLine(a * b + " " + 2 * (a + b));
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:12:2: error: expected ';' after class definition
   12 | }
      |  ^
      |  ;
a.cc: In static member function 'static void solve::Main()':
a.cc:7:9: error: 'var' was not declared in this scope
    7 |         var v = Console.ReadLine().Split();
      |         ^~~
a.cc:8:17: error: expected primary-expression before 'int'
    8 |         int a = int.Parse(v[0]);
      |                 ^~~
a.cc:9:17: error: expected primary-expression before 'int'
    9 |         int b = int.Parse(v[1]);
      |                 ^~~
a.cc:10:9: error: 'Console' was not declared in this scope
   10 |         Console.WriteLine(a * b + " " + 2 * (a + b));
      |         ^~~~~~~
Language: C++

#include <cstdio>
using namespace std;

int main()
{
	int a, b;
	cin >> a >> b;
	printf("%d %d\n", a * b, (a + b) * 2);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> a >> b;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
Language: C++

#include<iotream>
#include<string>

usi main()

int main()
{
int a=0;
int b=0;
cin>>a>>b;
cout<<"??¢???"<<a*b<<"??¨????????????"<<a*2+b*2<<endl;
   getchar();
   getchar();
   return0;
}

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

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before '%' token
    7 |     scanf(%d%d, &a, &b);
      |           ^
a.cc:7:12: error: 'd' was not declared in this scope
    7 |     scanf(%d%d, &a, &b);
      |            ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
#include<vector>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<time.h>
#define loop(i,a,b) for(int i=a;i<b;i++) 
#define rep(i,a) loop(i,0,a)
#define pb push_back
#define mp make_pair
#define all(in) in.begin(),in.end()
const double PI=acos(-1);
const double EPS=1e-10;
using namespace std;
typedef long long ll;
typedef vector<int> vi;
int main(){
	int x,y;
	cin>>x>>y;
	cout<<x*y<<" "<<2*(a+b)<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:28: error: 'a' was not declared in this scope
   25 |         cout<<x*y<<" "<<2*(a+b)<<endl;
      |                            ^
a.cc:25:30: error: 'b' was not declared in this scope
   25 |         cout<<x*y<<" "<<2*(a+b)<<endl;
      |                              ^
Language: C++

#include <iostream>
int main(){
    int a, b;
    cin >> a >> b;
    cout << a * b << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     cin >> a >> b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     cout << a * b << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |     cout << a * b << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>

int main()
{
        int y,t;
        std::cin >> y >> t;
        std::cout << t*y << " " <<  t*2 + y*2 << std::endl;
        return 0;
}

~                                                                                                                                                                              
~                                                                                                                                                                              
~                                                                                                                                                                              
~                                                                                                                                                                              
~                                                                                                                                                                              
~                                                                                                                                                                              
~                                                                                                                                                                              
~                                                                                                                                                                              
~                                                                                                                                                                              
~                  

Compiler output:
a.cc:12:1: error: expected class-name before '~' token
   12 | ~
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> a;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout << a*b << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         cout << a*b << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

import java.io.*;
import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		int c = a*b;
		a *= 2;
		b *= 2;
		a += b;
		System.out.println(c + " " + a);
	}
}

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

#include <iostream>
using namespace std;
void main(void) {
	int a, b;
	cin >> a >> b;
	cout << a*b;
	return;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(void) {
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
    7 |         return;
      |         ^~~~~~
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();
int area = a * b;
int length = 2*a + 2*b;
System.out.println(area + " " + length);
}
}

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

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'o' was not declared in this scope
    7 | return o;
      |        ^
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'o' was not declared in this scope
    7 | return o;
      |        ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: expected ')' before numeric constant
    5 |   printf("%d %d\n"2(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)2,a*b);
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: expression cannot be used as a function
    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"2*a+2*b,a*b);
  return(0);
}

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

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

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include main(void) {
      |          ^~~~
a.cc:2:15: error: expected constructor, destructor, or type conversion before '(' token
    2 | int a,b; scanf("%d %d",&a,&b);
      |               ^
a.cc:3:7: error: expected constructor, destructor, or type conversion before '(' token
    3 | printf("%d %d\n",a*b,a+a+b+b);
      |       ^
a.cc:4:1: error: expected unqualified-id before 'return'
    4 | return 0;
      | ^~~~~~
a.cc:5:1: error: expected declaration before '}' token
    5 | }
      | ^
Language: C++

using System;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main()
        {
            int a,b;
            string str = Console.ReadLine();
            a = int.Parse(str.Split(' ')[0]);
            b = int.Parse(str.Split(' ')[1]);
            Console.Write((a * b) + " " + ((a + b) * 2));
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:15:6: error: expected ';' after class definition
   15 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApplication1::Program::Main()':
a.cc:10:13: error: 'string' was not declared in this scope
   10 |             string str = Console.ReadLine();
      |             ^~~~~~
a.cc:11:17: error: expected primary-expression before 'int'
   11 |             a = int.Parse(str.Split(' ')[0]);
      |                 ^~~
a.cc:12:17: error: expected primary-expression before 'int'
   12 |             b = int.Parse(str.Split(' ')[1]);
      |                 ^~~
a.cc:13:13: error: 'Console' was not declared in this scope
   13 |             Console.Write((a * b) + " " + ((a + b) * 2));
      |             ^~~~~~~
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("%d%d", &a, &b);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<iostream>
using namespace std;
int main{
	int x,y;
	cin>>x>>y;
	cout<<x*y<<2*(x+y)<<endl;
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:9: error: expected primary-expression before 'int'
    4 |         int x,y;
      |         ^~~
a.cc:4:9: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:9: error: 'cin' does not name a type
    5 |         cin>>x>>y;
      |         ^~~
a.cc:6:9: error: 'cout' does not name a type
    6 |         cout<<x*y<<2*(x+y)<<endl;
      |         ^~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
Language: C++

input = gets.split(" ")
a = input[0].to_i
b = input[1].to_i
area = a * b
length = 2 * (a + b)
printf("%d %d\n", area, length)

Compiler output:
a.cc:1:1: error: 'input' does not name a type; did you mean 'int'?
    1 | input = gets.split(" ")
      | ^~~~~
      | int
Language: C++

import java.util.Scanner;
import java.io.*;
class Main
{
  public static void main(String args[]){
    
    Scanner scan = new Scanner(System.in);

    String str = scan.next();
	str = scan.next();
    String[] ab = str.split(" ", 0);
	int a = Integer.parseInt(ab[0]);
	int b = Integer.parseInt(ab[1]);
    int ans = a*b;
    System.out.println(ans);
  }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:9: error: expected ':' before 'static'
    5 |   public static void main(String args[]){
      |         ^~~~~~~
      |         :
a.cc:5:27: error: 'String' has not been declared
    5 |   public static void main(String args[]){
      |                           ^~~~~~
a.cc:17:2: error: expected ';' after class definition
   17 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:7:5: error: 'Scanner' was not declared in this scope
    7 |     Scanner scan = new Scanner(System.in);
      |     ^~~~~~~
a.cc:9:5: error: 'String' was not declared in this scope
    9 |     String str = scan.next();
      |     ^~~~~~
a.cc:10:9: error: 'str' was not declared in this scope; did you mean 'std'?
   10 |         str = scan.next();
      |         ^~~
      |         std
a.cc:10:15: error: 'scan' was not declared in this scope
   10 |         str = scan.next();
      |               ^~~~
a.cc:11:12: error: expected primary-expression before ']' token
   11 |     String[] ab = str.split(" ", 0);
      |            ^
a.cc:12:17: error: 'Integer' was not declared in this scope
   12 |         int a = Integer.parseInt(ab[0]);
      |                 ^~~~~~~
a.cc:12:34: error: 'ab' was not declared in this scope; did you mean 'a'?
   12 |         int a = Integer.parseInt(ab[0]);
      |                                  ^~
      |                                  a
a.cc:15:5: error: 'System' was not declared in this scope
   15 |     System.out.println(ans);
      |     ^~~~~~
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();
	int area = a*b;
	int length = 2*(a+b);
	System.out.println(area + " " + length);
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
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:
a.cc: In function 'int main()':
a.cc:9:31: error: expression cannot be used as a function
    9 |         printf("%d %d\n",a*b,2(a+b));
      |                              ~^~~~~
Language: C++

#include <stdlib.h>
using namespace std;

int main(void){
    int x, y;
    cin >> x >> y;
    cout << x*y << " " << (x+y)*2 << endl;       
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> x >> y;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdlib.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << x*y << " " << (x+y)*2 << endl;
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:38: error: 'endl' was not declared in this scope
    7 |     cout << x*y << " " << (x+y)*2 << endl;
      |                                      ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdlib.h>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

#include <iostream>
int main(void){
    int x, y;
    cin >> x >> y;
    cout << x*y << " " << (x+y)*2 << endl;       
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     cin >> x >> y;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     cout << x*y << " " << (x+y)*2 << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |     cout << x*y << " " << (x+y)*2 << endl;
      |                                      ^~~~
      |                                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc:12:31: error: stray '\' in program
   12 |                 printf("a > b"\n);
      |                               ^
a.cc: In function 'int main()':
a.cc:12:31: error: expected ')' before 'n'
   12 |                 printf("a > b"\n);
      |                       ~       ^~
      |                               )
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'a' was not declared in this scope
    5 |         cin >> a >> b;
      |                ^
a.cc:5:21: error: 'b' was not declared in this scope
    5 |         cin >> a >> b;
      |                     ^
Language: C++

include <iostream>
using namespace std;

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> a >> b;
      |         ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << a*b << endl;
      |         ^~~~
a.cc:7:24: error: 'endl' was not declared in this scope
    7 |         cout << a*b << endl;
      |                        ^~~~
Language: C++

i;main(j){scanf("%d %d",&i,&j);printf("%d %d",i*j,(i+j)*2);}

Compiler output:
a.cc:1:1: error: 'i' does not name a type
    1 | i;main(j){scanf("%d %d",&i,&j);printf("%d %d",i*j,(i+j)*2);}
      | ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
    1 | i;main(j){scanf("%d %d",&i,&j);printf("%d %d",i*j,(i+j)*2);}
      |       ^
Language: C++

import java.io.*;

class AOJ10002
{
    public static void main(String[] args) throws IOException
    {	
	BufferedReader br =
	    new BufferedReader(new InputStreamReader(System.in));

	String str1 = br.readLine();
	String str2 = br.readLine();
	
	int tate = Integer.parseInt(str1);
	int yoko = Integer.parseInt(str2);
	
	int area = tate * yoko;
	int cir = tate * 2 + yoko * 2;
	
	System.out.print(area + " ");
	System.out.println(cir);
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void main(String[] args) throws IOException
      |           ^~~~~~~
      |           :
a.cc:5:29: error: 'String' has not been declared
    5 |     public static void main(String[] args) throws IOException
      |                             ^~~~~~
a.cc:5:38: error: expected ',' or '...' before 'args'
    5 |     public static void main(String[] args) throws IOException
      |                                      ^~~~
a.cc:5:42: error: expected ';' at end of member declaration
    5 |     public static void main(String[] args) throws IOException
      |                                          ^
      |                                           ;
a.cc:5:44: error: 'throws' does not name a type
    5 |     public static void main(String[] args) throws IOException
      |                                            ^~~~~~
a.cc:22:2: error: expected ';' after class definition
   22 | }
      |  ^
      |  ;
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);}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main{int a,b;scanf("%d%d",&a,&b);printf("%d %d\n",a*b,a+b+a+b);}
      |     ^~~~
a.cc:2:10: error: expected primary-expression before 'int'
    2 | int main{int a,b;scanf("%d%d",&a,&b);printf("%d %d\n",a*b,a+b+a+b);}
      |          ^~~
a.cc:2:10: error: expected '}' before 'int'
    2 | int main{int a,b;scanf("%d%d",&a,&b);printf("%d %d\n",a*b,a+b+a+b);}
      |         ~^~~
a.cc:2:23: error: expected constructor, destructor, or type conversion before '(' token
    2 | int main{int a,b;scanf("%d%d",&a,&b);printf("%d %d\n",a*b,a+b+a+b);}
      |                       ^
a.cc:2:44: error: expected constructor, destructor, or type conversion before '(' token
    2 | int main{int a,b;scanf("%d%d",&a,&b);printf("%d %d\n",a*b,a+b+a+b);}
      |                                            ^
a.cc:2:68: error: expected declaration before '}' token
    2 | int main{int a,b;scanf("%d%d",&a,&b);printf("%d %d\n",a*b,a+b+a+b);}
      |                                                                    ^
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |  cin >> a >> b;
      |  ^~~
      |  std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |  cout << a*b << " " << 2*(a+b) << endl;
      |  ^~~~
      |  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |  cout << a*b << " " << 2*(a+b) << endl;
      |                                   ^~~~
      |                                   std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<stdio.h>

	int a,b;

printf("たて\n");

scanf("%d", &a);

printf("よこ\n");

scanf("%d",&b);


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

return(0);
}

Compiler output:
a.cc:5:7: error: expected constructor, destructor, or type conversion before '(' token
    5 | printf("たて\n");
      |       ^
a.cc:7:6: error: expected constructor, destructor, or type conversion before '(' token
    7 | scanf("%d", &a);
      |      ^
a.cc:9:7: error: expected constructor, destructor, or type conversion before '(' token
    9 | printf("よこ\n");
      |       ^
a.cc:11:6: error: expected constructor, destructor, or type conversion before '(' token
   11 | scanf("%d",&b);
      |      ^
a.cc:14:7: error: expected constructor, destructor, or type conversion before '(' token
   14 | printf("%d*%d = %d\n", a,b,a*b);
      |       ^
a.cc:15:7: error: expected constructor, destructor, or type conversion before '(' token
   15 | printf("%d*2+%d*2=%d\n",a,b,a*2+b*2);
      |       ^
a.cc:17:1: error: expected unqualified-id before 'return'
   17 | return(0);
      | ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include "stdafx.h"


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


	return 0;
}

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

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

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

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

#include <iostream>
using namespace std;

int main(){
    cin >> a >> b;
    cout << a*b <<" "<< 2*(a+b) << "\n";

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'a' was not declared in this scope
    5 |     cin >> a >> b;
      |            ^
a.cc:5:17: error: 'b' was not declared in this scope
    5 |     cin >> a >> b;
      |                 ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a,b;
    cin >> a >> b;
    cout << a*b << " " << 2*(a+b); << \n;

    return 0;
}

Compiler output:
a.cc:7:39: error: stray '\' in program
    7 |     cout << a*b << " " << 2*(a+b); << \n;
      |                                       ^
a.cc: In function 'int main()':
a.cc:7:36: error: expected primary-expression before '<<' token
    7 |     cout << a*b << " " << 2*(a+b); << \n;
      |                                    ^~
a.cc:7:40: error: 'n' was not declared in this scope
    7 |     cout << a*b << " " << 2*(a+b); << \n;
      |                                        ^
Language: C++

#include <iostream>
using namespace std;

int main(void)
{
   int x, y;
   cin >> x >> y;
   cout << x*Y << 2*(x+y) << endl;
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'Y' was not declared in this scope
    8 |    cout << x*Y << 2*(x+y) << endl;
      |              ^
Language: C++

#include <stdio.h>

int main (){
	int a = 0;
	int b = 0;
	int x = 0;
	int y = 0;

	scanf_s( " %d , %1d " , &a , &b );

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

	return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |         scanf_s( " %d , %1d " , &a , &b );
      |         ^~~~~~~
      |         scanf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'retrun' was not declared in this scope
    8 | retrun 0;
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected primary-expression before '<<' token
    8 | cout << a*b << << 2*(a+b) << "\n";
      |                ^~
Language: C++

#include<iostream>
using namespace std;

int main(){
	int a,b;

	cin >> a >> b;

	cout << a*b << ' ' << 2*a+2*b endl;


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:38: error: expected ';' before 'endl'
    9 |         cout << a*b << ' ' << 2*a+2*b endl;
      |                                      ^~~~~
      |                                      ;
Language: C++

#include <stdio.h>

int main() {
	int a=0;
	int b=0;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    7 |         scnaf("%d %d", &a, &b);
      |         ^~~~~
      |         scanf
Language: C++

#include <stdio.h>

int main() {
	int a=0;
	int b=0;

	scnaf("%d %d", &a, &b);
	int area = a*b;
	int length = 2*a + 2*b;
	printf("%d %d\n", area, length);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    7 |         scnaf("%d %d", &a, &b);
      |         ^~~~~
      |         scanf
Language: C++

#include <stdio.h>
int main(void)
{
int x, y;
int menseki = 0;
int nagasa = 0;

scanf("%d %d, &x, &y);

menseki = x * y;
nagasa = (x * 2) + (x * 2);

printf("%d %d", menseki, nagasa);

return (0);
}

Compiler output:
a.cc:8:7: warning: missing terminating " character
    8 | scanf("%d %d, &x, &y);
      |       ^
a.cc:8:7: error: missing terminating " character
    8 | scanf("%d %d, &x, &y);
      |       ^~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:16: error: expected ')' before ';' token
   10 | menseki = x * y;
      |                ^
      |                )
a.cc:8:6: note: to match this '('
    8 | scanf("%d %d, &x, &y);
      |      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected ';' before 'return'
    8 | cout<<x<<y<<endl;7
      |                   ^
      |                   ;
    9 | return 0;
      | ~~~~~~
Language: C++

include <iostream>
using namespace std;

int main()
{
  int x, y;

  cin >> x >> y;

  cout << size(x, y) << " " << circumference(x, y) << endl;
}

int size(int x, int y)
{
  return x * y;
}

int circumference(int x, int y)
{
  return 2 * x + 2 * y;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> x >> y;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << size(x, y) << " " << circumference(x, y) << endl;
      |   ^~~~
a.cc:10:11: error: 'size' was not declared in this scope
   10 |   cout << size(x, y) << " " << circumference(x, y) << endl;
      |           ^~~~
a.cc:10:32: error: 'circumference' was not declared in this scope
   10 |   cout << size(x, y) << " " << circumference(x, y) << endl;
      |                                ^~~~~~~~~~~~~
a.cc:10:55: error: 'endl' was not declared in this scope
   10 |   cout << size(x, y) << " " << circumference(x, y) << endl;
      |                                                       ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected ';' before 'space'
    7 | around = 2 * (a + b)
      |                     ^
      |                     ;
    8 | space = a * b
      | ~~~~~
Language: C++

#include <iostream>

int main(void){
  int tate, yoko;
  std::cin >> tate >> yoko;
  std::cout << tate*yoko << std::endl
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:38: error: expected ';' before 'return'
    6 |   std::cout << tate*yoko << std::endl
      |                                      ^
      |                                      ;
    7 |   return 0;
      |   ~~~~~~
Language: C++

#include<cstdio>
used :: std :: namespace

int main(){
int a,b;
cin >> a >>b;
printf("%d %d",a*b,a*2+b*2);

return 0;
}

Compiler output:
a.cc:2:1: error: 'used' does not name a type
    2 | used :: std :: namespace
      | ^~~~
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:
a.cc: In function 'int main()':
a.cc:4:5: error: expected initializer before 'scanf'
    4 |     scanf("%d%d",&a,&b);
      |     ^~~~~
a.cc:5:22: error: 'b' was not declared in this scope
    5 |     printf("%d %d",a*b,2*a+2*b);
      |                      ^
Language: C++

#include <iostream>

int main(int argc, char** argv)
{
    int width, height;
    std::cin >> height >> width;

    int size = width * height;
    int length = (width + height) * 2;

    std::cout << size << ' ' << lenght << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:11:33: error: 'lenght' was not declared in this scope; did you mean 'length'?
   11 |     std::cout << size << ' ' << lenght << std::endl;
      |                                 ^~~~~~
      |                                 length
Language: C++

(a,b) = gets.split
num=[a.to_i,b.to_i]
puts sprintf("%d %d",num[0]*num[1] ,num[0]*2+num[1]*2 )

Compiler output:
a.cc:1:3: error: expected ')' before ',' token
    1 | (a,b) = gets.split
      | ~ ^
      |   )
a.cc:1:5: error: expected constructor, destructor, or type conversion before ')' token
    1 | (a,b) = gets.split
      |     ^
Language: C++

(a,b) = gets.split(" ")
num=[a.to_i,b.to_i]
puts sprintf("%d %d",num[0]*num[1] ,num[0]*2+num[1]*2 )

Compiler output:
a.cc:1:3: error: expected ')' before ',' token
    1 | (a,b) = gets.split(" ")
      | ~ ^
      |   )
a.cc:1:5: error: expected constructor, destructor, or type conversion before ')' token
    1 | (a,b) = gets.split(" ")
      |     ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'cin'
    6 | cin>>a>>b;
      | ^~~
a.cc:7:9: error: 'b' was not declared in this scope
    7 | cout<<a*b<<a*2+b*2<<endl;
      |         ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'cin'
    6 | cin>>a>>b;
      | ^~~
a.cc:7:9: error: 'b' was not declared in this scope
    7 | cout<<a*b<<" "<<a*2+b*2<<endl;
      |         ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected ';' before 'b'
    7 |         cin >> a b;
      |                 ^~
      |                 ;
a.cc:12:24: error: expected ';' before 'syu'
   12 |         cout << menseki syu << endl;
      |                        ^~~~
      |                        ;
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin >> a >> b;
      |   ^~~
a.cc:8:13: error: 'b' was not declared in this scope
    8 |   cout << a*b << ' ' << 2*a+2*b << endl;
      |             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected ',' or ';' before 'cin'
    6 | cin   >> a >> b;
      | ^~~
a.cc:7:19: error: expression cannot be used as a function
    7 | cout << (a*b) << 2(a+b) << endl;
      |                  ~^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before numeric constant
    7 | cout << (a*b) 2*(a+b) << endl;
      |              ^~
      |              ;
Language: C++

#include <iostream>


using namespace std;


int main (void){
	int x,y;
	cin>>x>>y; 
        cout<<x*y<<" "<<x+x+y+yendl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: 'yendl' was not declared in this scope
   10 |         cout<<x*y<<" "<<x+x+y+yendl;
      |                               ^~~~~