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

using System;
using System.Linq;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
            int r = (x[1] + x[0]) * 2;
            int r1 = x[0] * x[1];
            Console.WriteLine(r + " " + r1);

        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:8:26: error: 'string' has not been declared
    8 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:8:35: error: expected ',' or '...' before 'args'
    8 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:16:6: error: expected ';' after class definition
   16 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApplication2::Program::Main(int*)':
a.cc:10:16: error: structured binding declaration cannot have type 'int'
   10 |             int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |                ^~
a.cc:10:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:16: error: empty structured binding declaration
a.cc:10:19: error: expected initializer before 'x'
   10 |             int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |                   ^
a.cc:11:22: error: 'x' was not declared in this scope
   11 |             int r = (x[1] + x[0]) * 2;
      |                      ^
a.cc:13:13: error: 'Console' was not declared in this scope
   13 |             Console.WriteLine(r + " " + r1);
      |             ^~~~~~~
Language: C++

using System;
using System.Linq;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
            int r = (x[1] + x[0]) * 2;
            int r1 = x[0] * x[1];
            Console.WriteLine(r1 + " " + r);

        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:8:26: error: 'string' has not been declared
    8 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:8:35: error: expected ',' or '...' before 'args'
    8 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:16:6: error: expected ';' after class definition
   16 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApplication2::Program::Main(int*)':
a.cc:10:16: error: structured binding declaration cannot have type 'int'
   10 |             int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |                ^~
a.cc:10:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:16: error: empty structured binding declaration
a.cc:10:19: error: expected initializer before 'x'
   10 |             int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |                   ^
a.cc:11:22: error: 'x' was not declared in this scope
   11 |             int r = (x[1] + x[0]) * 2;
      |                      ^
a.cc:13:13: error: 'Console' was not declared in this scope
   13 |             Console.WriteLine(r1 + " " + r);
      |             ^~~~~~~
Language: C++

#include "stdafx.h"
#include <iostream>
using namespace std;

int main()
{
	int a;
	int b;

	cin >> a>>b;
	cout << a*b <<" "<<(a+b)*2<< endl;
    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++

#include <ioistream>
using namespace std;

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

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

#include<stdio.h>

int main(void){


double a,b;

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: expression cannot be used as a function
   10 | printf("%lf %lf\n",a*b,2(a+b));
      |                        ~^~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
main()
{
int x,y;

cin >> x , y;

cout<< x*y,(x+y)*2 << endl; 
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 | cout<< x*y,(x+y)*2 << endl;
      |            ~~~~~~~~^~~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
main()
{
int x,y;

cin >> x , y;

cout<< x*y,x*2+y*2 << endl; 
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 | cout<< x*y,x*2+y*2 << endl;
      |            ~~~~~~~~^~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	char ch[];
	
	cin.get(ch[]);
	cout << ch[0] * ch[2] << "\t" << 2*(ch[0] + ch[2]) << '\n';
	
	// your code goes here
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: storage size of 'ch' isn't known
    5 |         char ch[];
      |              ^~
a.cc:7:20: error: expected primary-expression before ']' token
    7 |         cin.get(ch[]);
      |                    ^
Language: C++

#include <iostream>
#include <cctype>
using namespace std;

int main() {
	char ch[];
	
	cin.get(ch[]);
	cout << ch[0] * ch[2] << "\t" << 2*(ch[0] + ch[2]) << '\n';
	
	// your code goes here
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: storage size of 'ch' isn't known
    6 |         char ch[];
      |              ^~
a.cc:8:20: error: expected primary-expression before ']' token
    8 |         cin.get(ch[]);
      |                    ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	int a, b;
	
	cin >> a >> b;
	cout << a * b << "\t" << 2*a + 2*b) << '\n';
	
	// your code goes here
	return 0;
}

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

lis=0
S=0
L=0
lis=input().split()
S=lis[0]*lis[1]
L=lis[0]*2+lis[1]*2
print(S,L)

Compiler output:
a.cc:1:1: error: 'lis' does not name a type
    1 | lis=0
      | ^~~
Language: C++

lis=0
S=0
L=0
lis=input().split()
S=lis[0]*lis[1]
L=lis[0]*2+lis[1]*2
print(S," ",L)

Compiler output:
a.cc:1:1: error: 'lis' does not name a type
    1 | lis=0
      | ^~~
Language: C++

import java.util.Scanner;

class testScanner1{
  public static void main(String args[]){

    Scanner scan = new Scanner(System.in);

    int str = scan.next();
    int a = str;
    str = scan.next();
    int b = str;
    int c = a * b;
    int d = 2 * a + 2 * b;
    System.out.println(c + " " + d);
  }
}

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:4:9: error: expected ':' before 'static'
    4 |   public static void main(String args[]){
      |         ^~~~~~~
      |         :
a.cc:4:27: error: 'String' has not been declared
    4 |   public static void main(String args[]){
      |                           ^~~~~~
a.cc:16:2: error: expected ';' after class definition
   16 | }
      |  ^
      |  ;
a.cc: In static member function 'static void testScanner1::main(int*)':
a.cc:6:5: error: 'Scanner' was not declared in this scope
    6 |     Scanner scan = new Scanner(System.in);
      |     ^~~~~~~
a.cc:8:15: error: 'scan' was not declared in this scope
    8 |     int str = scan.next();
      |               ^~~~
a.cc:14:5: error: 'System' was not declared in this scope
   14 |     System.out.println(c + " " + d);
      |     ^~~~~~
Language: C++

#include <iostream>

int main()
{
int x,y;
std::cin>>x>>y;
std::cout<<x*y<<' '<<2(x+y)<<std::endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expression cannot be used as a function
    7 | std::cout<<x*y<<' '<<2(x+y)<<std::endl;
      |                      ~^~~~~
a.cc:7:40: error: expected '}' at end of input
    7 | std::cout<<x*y<<' '<<2(x+y)<<std::endl;
      |                                        ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <iostream>

int main()
{
int x,y;
std::cin>>x>>y;
std::cout<<x*y<<' '<<2*(x+y)<<std::endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:7:41: error: expected '}' at end of input
    7 | std::cout<<x*y<<' '<<2*(x+y)<<std::endl;
      |                                         ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

import java.util.Scanner;

class Main
{
	public static void main(String args[]) throws IOException
	{
		Scanner stdln = new Scanner(System.in);
		int a = stdln.nextInt();
		int b = stdln.nextInt();
		int d = a*b:
		int d = 2*(a+b):
		System.out.println( c + " " + d );
	}
}

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:5:15: error: expected ':' before 'static'
    5 |         public static void main(String args[]) throws IOException
      |               ^~~~~~~
      |               :
a.cc:5:33: error: 'String' has not been declared
    5 |         public static void main(String args[]) throws IOException
      |                                 ^~~~~~
a.cc:5:46: error: expected ';' at end of member declaration
    5 |         public static void main(String args[]) throws IOException
      |                                              ^
      |                                               ;
a.cc:5:48: error: 'throws' does not name a type
    5 |         public static void main(String args[]) throws IOException
      |                                                ^~~~~~
a.cc:14:2: error: expected ';' after class definition
   14 | }
      |  ^
      |  ;
Language: C++

import java.io.*;

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

       BufferedReader br =
        new BufferedReader(new InputStreamReader(System.in));

       String str1 =br.readLine();
       String str2[] =str1.split(" ");
       int a =Integer.parseInt(str2[0]);
       int b =Integer.parseInt(str2[1]);
       int c =a*b;       int d ==2*(a+b);

       System.out.println(c + " " + d);

    }
}

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:14: error: expected ':' before 'static'
    5 |        public static void main (String[] args) throws IOException
      |              ^~~~~~~
      |              :
a.cc:5:33: error: 'String' has not been declared
    5 |        public static void main (String[] args) throws IOException
      |                                 ^~~~~~
a.cc:5:42: error: expected ',' or '...' before 'args'
    5 |        public static void main (String[] args) throws IOException
      |                                          ^~~~
a.cc:5:46: error: expected ';' at end of member declaration
    5 |        public static void main (String[] args) throws IOException
      |                                              ^
      |                                               ;
a.cc:5:48: error: 'throws' does not name a type
    5 |        public static void main (String[] args) throws IOException
      |                                                ^~~~~~
a.cc:20:2: error: expected ';' after class definition
   20 | }
      |  ^
      |  ;
Language: C++

import java.io.*;

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

       BufferedReader br =
        new BufferedReader(new InputStreamReader(System.in));

       String str1 =br.readLine();
       String str2[] =str1.split(" ");
       int a =Integer.parseInt(str2[0]);
       int b =Integer.parseInt(str2[1]);
       int c =a*b;       
       int d =2*(a+b);

       System.out.println(c + " " + d);

    }
}

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:14: error: expected ':' before 'static'
    5 |        public static void main (String[] args) throws IOException
      |              ^~~~~~~
      |              :
a.cc:5:33: error: 'String' has not been declared
    5 |        public static void main (String[] args) throws IOException
      |                                 ^~~~~~
a.cc:5:42: error: expected ',' or '...' before 'args'
    5 |        public static void main (String[] args) throws IOException
      |                                          ^~~~
a.cc:5:46: error: expected ';' at end of member declaration
    5 |        public static void main (String[] args) throws IOException
      |                                              ^
      |                                               ;
a.cc:5:48: error: 'throws' does not name a type
    5 |        public static void main (String[] args) throws IOException
      |                                                ^~~~~~
a.cc:21:2: error: expected ';' after class definition
   21 | }
      |  ^
      |  ;
Language: C++

import java.until.Scanner;

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.until.Scanner;
      | ^~~~~~
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)
      |           ^~~~~~~
      |           :
a.cc:5:29: error: 'String' has not been declared
    5 |     public static void main(String[] args)
      |                             ^~~~~~
a.cc:5:38: error: expected ',' or '...' before 'args'
    5 |     public static void main(String[] args)
      |                                      ^~~~
a.cc:14:2: error: expected ';' after class definition
   14 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:7:9: error: 'Scanner' was not declared in this scope
    7 |         Scanner stdIn = new Scanner(System.in);
      |         ^~~~~~~
a.cc:8:17: error: 'stdIn' was not declared in this scope; did you mean 'std'?
    8 |         int a = stdIn.nextInt();
      |                 ^~~~~
      |                 std
a.cc:12:9: error: 'System' was not declared in this scope
   12 |         System.out.println( c + " " + d );
      |         ^~~~~~
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:4:8: error: found ':' in nested-name-specifier, expected '::'
    4 | int a,b:
      |        ^
      |        ::
a.cc:4:7: error: 'b' has not been declared
    4 | int a,b:
      |       ^
a.cc:6:6: error: qualified-id in declaration before '(' token
    6 | scanf("%d %d",&a,&b);
      |      ^
a.cc:8:18: error: request for member 'a' in '"%d %d\012"', which is of non-class type 'const char [7]'
    8 | printf("%d %d\n".a*b,2(a+b));
      |                  ^
a.cc:8:20: error: 'b' was not declared in this scope
    8 | printf("%d %d\n".a*b,2(a+b));
      |                    ^
a.cc:8:27: error: expression cannot be used as a function
    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+2*b);

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: found ':' in nested-name-specifier, expected '::'
    4 | int a,b:
      |        ^
      |        ::
a.cc:4:7: error: 'b' has not been declared
    4 | int a,b:
      |       ^
a.cc:6:6: error: qualified-id in declaration before '(' token
    6 | scanf("%d %d",&a,&b);
      |      ^
a.cc:8:18: error: request for member 'a' in '"%d %d\012"', which is of non-class type 'const char [7]'
    8 | printf("%d %d\n".a*b,2*a+2*b);
      |                  ^
a.cc:8:20: error: 'b' was not declared in this scope
    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".a*b,2*a+2*b);

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: found ':' in nested-name-specifier, expected '::'
    4 | int a,b:
      |        ^
      |        ::
a.cc:4:7: error: 'b' has not been declared
    4 | int a,b:
      |       ^
a.cc:6:6: error: qualified-id in declaration before '(' token
    6 | scanf("%d %d",&a,&b);
      |      ^
a.cc:8:16: error: request for member 'a' in '"%d %d"', which is of non-class type 'const char [6]'
    8 | printf("%d %d".a*b,2*a+2*b);
      |                ^
a.cc:8:18: error: 'b' was not declared in this scope
    8 | printf("%d %d".a*b,2*a+2*b);
      |                  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected ';' before 'a'
    6 |         cin a >> b;
      |            ^~
      |            ;
Language: C++

#include<studio.h>
#include<iostream>
using namespace std;
int main()
{
	int a, b;
	scanf("%d %d", &a, &b);
	int mense = a*b;int nagasa = 2 * (a + b);
	printf("%d %d", &mense, &nagasa);

	return 0;
}

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

b,c=gets.chomp.split(" ").map(&:to_i);
print("#{b*c} #{b*2+c*2}\n")

Compiler output:
a.cc:1:1: error: 'b' does not name a type
    1 | b,c=gets.chomp.split(" ").map(&:to_i);
      | ^
a.cc:2:6: error: expected constructor, destructor, or type conversion before '(' token
    2 | print("#{b*c} #{b*2+c*2}\n")
      |      ^
Language: C++

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude<stdio.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:1: error: 'scanf' was not declared in this scope
    4 | scanf("%d %d",&a,&b);
      | ^~~~~
a.cc:5:19: error: expression cannot be used as a function
    5 | printf("%d %d\n",2(a+b),a*b);
      |                  ~^~~~~
a.cc:5:1: error: 'printf' was not declared in this scope
    5 | printf("%d %d\n",2(a+b),a*b);
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #iclude<stdio.h>
Language: C++

#include<cstdio>

int main(){

int a,b;
scanf("%d %d", &a, &b);
s=a*b;
l=2*a+2*b:

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 's' was not declared in this scope
    7 | s=a*b;
      | ^
a.cc:8:1: error: 'l' was not declared in this scope
    8 | l=2*a+2*b:
      | ^
a.cc:8:10: error: found ':' in nested-name-specifier, expected '::'
    8 | l=2*a+2*b:
      |          ^
      |          ::
a.cc:8:9: error: 'b' is not a class, namespace, or enumeration
    8 | l=2*a+2*b:
      |         ^
Language: C++

#include<cstdio>

int main(){

int a,b;
scanf("%d %d", &a, &b);
s=a*b;
l=2*a+2*b;

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 's' was not declared in this scope
    7 | s=a*b;
      | ^
a.cc:8:1: error: 'l' was not declared in this scope
    8 | l=2*a+2*b;
      | ^
Language: C++

#include<cstdio>

int main(){

int a,b;
scanf("%d %d", &a, &b);
s=a*b;
l=2*a+2*b;

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 's' was not declared in this scope
    7 | s=a*b;
      | ^
a.cc:8:1: error: 'l' was not declared in this scope
    8 | l=2*a+2*b;
      | ^
Language: C++

#include<cstdio>

int main(){

int a,b,s,l;
scanf("%d %d",&a,&b);
s=a*b;
l=2*a+2*b;

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

return 0;
}

Compiler output:
a.cc:10:19: error: stray '\' in program
   10 | printf("%d %d",s,l\n);
      |                   ^
a.cc: In function 'int main()':
a.cc:10:19: error: expected ')' before 'n'
   10 | printf("%d %d",s,l\n);
      |       ~           ^~
      |                   )
Language: C++

#include <iostream>
using namespace std;

int main()
{
int a,b;

cin >> a >> b;
cout << a*b << " " << 2(a+b) << endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expression cannot be used as a function
    9 | cout << a*b << " " << 2(a+b) << endl;
      |                       ~^~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: expression cannot be used as a function
    8 |         cout << a * b << " " << 2(a + b) << endl;
      |                                 ~^~~~~~~
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(void) {
      | ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'pritf' was not declared in this scope; did you mean 'printf'?
    8 |     pritf("%d %d\n", s, l);
      |     ^~~~~
      |     printf
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expression cannot be used as a function
    9 |   cout<<2(a+b)endl;
      |         ~^~~~~
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

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

int main(){
	int a,b;
	cin>>a>>b;
	int c=a*b;
	int d=2*(a+b);
	cout<< c << " " << d <<endl;
}javascript:void(0)

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin>>a>>b;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout<< c << " " << d <<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:9:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout<< c << " " << d <<endl;
      |                                ^~~~
      |                                std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc: At global scope:
a.cc:10:2: error: 'javascript' does not name a type
   10 | }javascript:void(0)
      |  ^~~~~~~~~~
Language: C++

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin>>a>>b;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout<< c << " " << d <<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:9:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout<< c << " " << d <<endl;
      |                                ^~~~
      |                                std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected ';' before 'return'
    7 |         cout<<a*b<<2*a+2*b
      |                           ^
      |                           ;
    8 |         return 0;
      |         ~~~~~~
Language: C++

#include <iostream>
using namespace std;

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

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


using namespace std;

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:9: error: 'cin' was not declared in this scope
    6 |         cin>>a>>b;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout<<a*b<<" "<<2*(a+b)<<endl;
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:34: error: 'endl' was not declared in this scope
    7 |         cout<<a*b<<" "<<2*(a+b)<<endl;
      |                                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 |
Language: C++

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	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:8:21: error: expression cannot be used as a function
    8 |         cout<<a*b<<2(a+b)<<endl;
      |                    ~^~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: 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,b;
	cin>>a>>b;
	cout<<a*b 2(a+b)<<endl;	
}

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected primary-expression before '<<' token
    7 |         cout<<a*b<< <<2(a+b)<<endl;
      |                     ^~
a.cc:7:24: 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,b;
	cin>>a>>b;
	cout<<a*b<< <<2*(a+b)<<endl;	
}

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

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int=a,b
	int c=a*b int d=a+b
	cout<<c<<d<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected unqualified-id before '=' token
    6 |         int=a,b
      |            ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int=a,b
	int c=a*b int d=2(a+b)
	cout<<c<<d<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected unqualified-id before '=' token
    6 |         int=a,b
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int a,b;
    cin>>a>>b;
    cout<<a*b<<" "<<2*(a+b)<<endl;
}
??¢????????¬???????????????
 



 

Compiler output:
a.cc:9:3: error: extended character ¢ is not valid in an identifier
    9 | ??¢????????¬???????????????
      |   ^
a.cc:9:12: error: extended character ¬ is not valid in an identifier
    9 | ??¢????????¬???????????????
      |            ^
a.cc:9:1: error: expected unqualified-id before '?' token
    9 | ??¢????????¬???????????????
      | ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'a' was not declared in this scope
    5 | cin >> a >> b
      |        ^
a.cc:5:13: error: 'b' was not declared in this scope
    5 | cin >> a >> b
      |             ^
a.cc:7:9: error: expected ';' before '}' token
    7 | return 0
      |         ^
      |         ;
    8 | }
      | ~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'a' was not declared in this scope
    5 | cin >> a >> b;
      |        ^
a.cc:5:13: 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;
	cin>>b;
	cout<<a*b<<" "<<2(a+b)<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expression cannot be used as a function
    8 |         cout<<a*b<<" "<<2(a+b)<<endl;
      |                         ~^~~~~
Language: C++

#include<stdio.h>
int main(){
int x,y,S,L;
scanf("%d %d",&x,&y);
S=x*y;
L=2*x+2*y;
print("%d %d",S,L);
return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'print' was not declared in this scope; did you mean 'printf'?
    7 | print("%d %d",S,L);
      | ^~~~~
      | printf
Language: C++

#include<iostream>
using namespace std;

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected primary-expression before ';' token
    6 |     cin >> a >> b >>;
      |                     ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    double 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:21: error: expected primary-expression before ';' token
    6 |     cin >> a >> b >>;
      |                     ^
Language: C++

#include<iostream>
using namespace std;

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected primary-expression before ';' token
    6 |     cin >> a >> b >>;
      |                     ^
Language: C++

#include<cstdio>

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:5:11: error: expected primary-expression before '%' token
    5 |     scanf(%d %d, &a, &b);
      |           ^
a.cc:5:12: error: 'd' was not declared in this scope
    5 |     scanf(%d %d, &a, &b);
      |            ^
a.cc:6:12: error: expected primary-expression before '%' token
    6 |     printf(%d %d, a*b, 2(a+b));
      |            ^
a.cc:6:25: error: expression cannot be used as a function
    6 |     printf(%d %d, a*b, 2(a+b));
      |                        ~^~~~~
Language: C++

#include<cstdio>

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:5:11: error: expected primary-expression before '%' token
    5 |     scanf(%d %d, &a, &b);
      |           ^
a.cc:5:12: error: 'd' was not declared in this scope
    5 |     scanf(%d %d, &a, &b);
      |            ^
a.cc:6:12: error: expected primary-expression before '%' token
    6 |     printf(%d %d, a*b, 2*(a+b));
      |            ^
Language: C++

#include<cstdio>

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:11: error: expected primary-expression before '%' token
    5 |     scanf(%d %d, &a, &b);
      |           ^
a.cc:5:12: error: 'd' was not declared in this scope
    5 |     scanf(%d %d, &a, &b);
      |            ^
Language: C++

<?php
list($a,$b) = explode(" ",fgets(STDIN));
$s = $a*$b;
$t = 2*($a+$b);
echo ($s." ".$t);
?>

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: '$s' does not name a type
    3 | $s = $a*$b;
      | ^~
a.cc:4:1: error: '$t' does not name a type
    4 | $t = 2*($a+$b);
      | ^~
a.cc:5:6: error: expected constructor, destructor, or type conversion before '(' token
    5 | echo ($s." ".$t);
      |      ^
a.cc:6:1: error: expected unqualified-id before '?' token
    6 | ?>
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
   int a,b,c,d;
   cin >> a >> b;
   c = a*b;
   d = 2*a+2*b;
   cout << c << d <<endi;

   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'endi' was not declared in this scope
    9 |    cout << c << d <<endi;
      |                     ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
   int a,b,c,d;
   cin >> a >> b;
   c = a * b;
   d = 2 * a + 2 * b;
   cout << c << d <<end1;

   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'end1' was not declared in this scope
    9 |    cout << c << d <<end1;
      |                     ^~~~
Language: C++

#include<cstdio>


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

   return 0;
}

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

#include<cstdio>

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

   return 0;
}

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

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	
	int a, b;
	
	cin >> a >> b;
	cout ???<< a*b <<  " " << 2*a + 2*b << endl;
	
	return 0;
}

Compiler output:
a.cc:10:15: warning: trigraph ??< ignored, use -trigraphs to enable [-Wtrigraphs]
   10 |         cout ???<< a*b <<  " " << 2*a + 2*b << endl;
a.cc: In function 'int main()':
a.cc:10:15: error: expected primary-expression before '?' token
   10 |         cout ???<< a*b <<  " " << 2*a + 2*b << endl;
      |               ^
a.cc:10:16: error: expected primary-expression before '?' token
   10 |         cout ???<< a*b <<  " " << 2*a + 2*b << endl;
      |                ^
a.cc:10:17: error: expected primary-expression before '<<' token
   10 |         cout ???<< a*b <<  " " << 2*a + 2*b << endl;
      |                 ^~
a.cc:10:52: error: expected ':' before ';' token
   10 |         cout ???<< a*b <<  " " << 2*a + 2*b << endl;
      |                                                    ^
      |                                                    :
a.cc:10:52: error: expected primary-expression before ';' token
a.cc:10:52: error: expected ':' before ';' token
   10 |         cout ???<< a*b <<  " " << 2*a + 2*b << endl;
      |                                                    ^
      |                                                    :
a.cc:10:52: error: expected primary-expression before ';' token
a.cc:10:52: error: expected ':' before ';' token
   10 |         cout ???<< a*b <<  " " << 2*a + 2*b << endl;
      |                                                    ^
      |                                                    :
a.cc:10:52: error: expected primary-expression before ';' token
Language: C++

int main()
{
	int x;
	int y;
	cin >> x >> y;
	int a = x*y;
	int b = x * 2 + y * 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
    5 |         cin >> x >> y;
      |         ^~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << a << " " << b << endl;
      |         ^~~~
a.cc:8:34: error: 'endl' was not declared in this scope
    8 |         cout << a << " " << b << endl;
      |                                  ^~~~
Language: C++

# include <iostream>

int area(int a, int b){
 return a * b
}
int surface(int a, int b){
  return 2 * a + 2 * b;
}

int main(){
  int a,b;
  std::cin >> a >> b;
  std::cout << area(a, b) << " " << surface(a,b) << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int area(int, int)':
a.cc:4:14: error: expected ';' before '}' token
    4 |  return a * b
      |              ^
      |              ;
    5 | }
      | ~
Language: C++

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

Compiler output:
a.cc:2:1: error: expected unqualified-id before '?' token
    2 | ??
      | ^
a.cc: In function 'int surface(int, int)':
a.cc:7:1: error: expected primary-expression before '?' token
    7 | ????return 2 * a + 2 * b;
      | ^
a.cc:7:2: error: expected primary-expression before '?' token
    7 | ????return 2 * a + 2 * b;
      |  ^
a.cc:7:3: error: expected primary-expression before '?' token
    7 | ????return 2 * a + 2 * b;
      |   ^
a.cc:7:4: error: expected primary-expression before '?' token
    7 | ????return 2 * a + 2 * b;
      |    ^
a.cc:7:5: error: expected primary-expression before 'return'
    7 | ????return 2 * a + 2 * b;
      |     ^~~~~~
a.cc:7:5: error: expected ':' before 'return'
    7 | ????return 2 * a + 2 * b;
      |     ^~~~~~
      |     :
a.cc:7:5: error: expected primary-expression before 'return'
    7 | ????return 2 * a + 2 * b;
      |     ^~~~~~
a.cc:7:5: error: expected ':' before 'return'
    7 | ????return 2 * a + 2 * b;
      |     ^~~~~~
      |     :
a.cc:7:5: error: expected primary-expression before 'return'
    7 | ????return 2 * a + 2 * b;
      |     ^~~~~~
a.cc:7:5: error: expected ':' before 'return'
    7 | ????return 2 * a + 2 * b;
      |     ^~~~~~
      |     :
a.cc:7:5: error: expected primary-expression before 'return'
    7 | ????return 2 * a + 2 * b;
      |     ^~~~~~
a.cc:7:5: error: expected ':' before 'return'
    7 | ????return 2 * a + 2 * b;
      |     ^~~~~~
      |     :
a.cc:7:5: error: expected primary-expression before 'return'
    7 | ????return 2 * a + 2 * b;
      |     ^~~~~~
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
a.cc: At global scope:
a.cc:9:1: error: expected unqualified-id before '?' token
    9 | ??
      | ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
  int a;
  int b;

  do {
    cin >> a >> b;
  }
  while (a < 0 || a > 100 || b < 0 || b > 100)
  
  cout << a * b << " " << 2 * (a + b) << '?\n';
}

Compiler output:
a.cc:15:42: warning: multi-character character constant [-Wmultichar]
   15 |   cout << a * b << " " << 2 * (a + b) << '?\n';
      |                                          ^~~~~
a.cc: In function 'int main()':
a.cc:13:47: error: expected ';' before 'cout'
   13 |   while (a < 0 || a > 100 || b < 0 || b > 100)
      |                                               ^
      |                                               ;
   14 | 
   15 |   cout << a * b << " " << 2 * (a + b) << '?\n';
      |   ~~~~
Language: C++

#include <iostream>


int main()
{
    int a;
    std::in >> a;
    int b;
    std:: cin >> b;
    int c=a*b;
    int d=a*2+b*2;
    std::cout << c << std::endl;
    std::cout << d << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'in' is not a member of 'std'; did you mean 'min'?
    7 |     std::in >> a;
      |          ^~
      |          min
Language: C++

#include <iostream>


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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:42: error: expected ';' before '}' token
    8 |    std::cout << a * b << " " << ( a + b )
      |                                          ^
      |                                          ;
    9 | }
      | ~