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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | 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:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | cout << x*y << x+y << 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:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | cout << x*y << x+y << 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>

using namespace std
int main(){
   int x;
   int y;
cin >> x >> y ;
cout << x*y << x+y << endl;
}   

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | int main(){
      | ~~~
Language: C++

#include <iostream>
using namespace std;


int main(void){
    
    int a = 0;
    int b = 0;
    int area = 0;
    int circumference = 0;

    cin >> a >> \n >> b ;
        
    area = a * b;
    circumference = 2 * (a + b);
    
    cout << area << endl;
    cout << circumference << endl;
    
    return 0;
}

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

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: unable to find numeric literal operator 'operator""a'
    9 |    cout<<a*b<<2a+2b<<endl;
      |               ^~
a.cc:9:18: error: unable to find numeric literal operator 'operator""b'
    9 |    cout<<a*b<<2a+2b<<endl;
      |                  ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected '}' at end of input
   10 |   return 0;
      |            ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

import java.util.Scanner;

public class Main {

	public static void main(String[] arges) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] k = line.split(" ");
		int a = Integer.parseInt(k[0]);
		int b = Integer.parseInt(k[1]);
		int g = a * b;
		int y = 2 * a + 2 * b;
		System.out.print(g + " " + y);
	}
}

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;
  int b;
  scanf("%d",&a);
  scanf("%d",&b);
  printf("%d %d",a*b,2a+2b);

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: unable to find numeric literal operator 'operator""a'
    7 |   printf("%d %d",a*b,2a+2b);
      |                      ^~
a.cc:7:25: error: unable to find numeric literal operator 'operator""b'
    7 |   printf("%d %d",a*b,2a+2b);
      |                         ^~
Language: C++

#include<stdio.h>

int main?????????{

int a.b;

a*a*a=b;

scanf??????%d???,&a???;

printf??????%d\n???,&b???;

Compiler output:
a.cc:11:15: error: stray '\' in program
   11 | printf??????%d\n???,&b???;
      |               ^
a.cc:3:9: error: expected initializer before '?' token
    3 | int main?????????{
      |         ^
Language: C++

#include<stdio.h>

int main?????????{

int a.b;

printf???"a*a*a=b");

scanf??????%d???,&a???;

printf??????%d\n???,&b???;

}

Compiler output:
a.cc:11:15: error: stray '\' in program
   11 | printf??????%d\n???,&b???;
      |               ^
a.cc:3:9: error: expected initializer before '?' token
    3 | int main?????????{
      |         ^
Language: C++

#include<stdio.h>

int main?????????{

int a.b;

printf???"a*a*a=b");

scanf??????%d%d???,&a%b???;

printf??????%d\n???,&b???;

}

Compiler output:
a.cc:11:15: error: stray '\' in program
   11 | printf??????%d\n???,&b???;
      |               ^
a.cc:3:9: error: expected initializer before '?' token
    3 | int main?????????{
      |         ^
Language: C++

#include<stdio.h>

int main?????????{

int a.b;

printf???"a*a*a=b");

scanf??????%d%d???,&a&b???;

printf??????%d\n???,&b???;

}

Compiler output:
a.cc:11:15: error: stray '\' in program
   11 | printf??????%d\n???,&b???;
      |               ^
a.cc:3:9: error: expected initializer before '?' token
    3 | int main?????????{
      |         ^
Language: C++

#include<stdio.h>

int main?????????{

int a.b;

printf???"a*a*a=b");

scanf???"%d%d",&a&b???;

printf???"%d\",&b???;

}

Compiler output:
a.cc:11:10: warning: missing terminating " character
   11 | printf???"%d\",&b???;
      |          ^
a.cc:11:10: error: missing terminating " character
   11 | printf???"%d\",&b???;
      |          ^~~~~~~~~~~~
a.cc:3:9: error: expected initializer before '?' token
    3 | int main?????????{
      |         ^
Language: C++

#include<stdio.h>

int main?????????{

int a.b;

a*a*a=b;

scanf???"%d%d",&a&b???;

printf???"%d\",&b???;

}

Compiler output:
a.cc:11:10: warning: missing terminating " character
   11 | printf???"%d\",&b???;
      |          ^
a.cc:11:10: error: missing terminating " character
   11 | printf???"%d\",&b???;
      |          ^~~~~~~~~~~~
a.cc:3:9: error: expected initializer before '?' token
    3 | int main?????????{
      |         ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:8:35: error: stray '\' in program
    8 |         cout << a*b << 2 * (a + b)\n;
      |                                   ^
a.cc: In function 'int main()':
a.cc:8:35: error: expected ';' before 'n'
    8 |         cout << a*b << 2 * (a + b)\n;
      |                                   ^~
      |                                   ;
Language: C++

#include "stdafx.h"


int _tmain(int argc, _TCHAR* argv[])
{
int a,b;
printf("??´??°?????\??????????????????");
scanf_s("%d",&a);
printf("??´??°?????\??????????????????");
scanf_s("%d",&b);
printf("C=%d",a*b);
printf("C=%d",2*a*b);

	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 <iostream>
	
int main ()
{
	int a, b;
	std.cin >> a >> b;
	std.cout << a*b << " " << 2 * (a + b) << std.endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before '.' token
    6 |         std.cin >> a >> b;
      |            ^
a.cc:7:12: error: expected primary-expression before '.' token
    7 |         std.cout << a*b << " " << 2 * (a + b) << std.endl;
      |            ^
a.cc:7:53: error: expected primary-expression before '.' token
    7 |         std.cout << a*b << " " << 2 * (a + b) << std.endl;
      |                                                     ^
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: 'x' was not declared in this scope
    8 |         printf("%d %d\n", x * y, 2 * (x + y);
      |                           ^
a.cc:8:31: error: 'y' was not declared in this scope
    8 |         printf("%d %d\n", x * y, 2 * (x + y);
      |                               ^
Language: C++

#include <stdio.h>

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:2: 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:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |  cout << a*b;
      |  ^~~~
      |  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:48: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |    std::cout << a * b << ' ' << 2 * (a + b) << endl;
      |                                                ^~~~
      |                                                std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:6:53: error: expected '}' at end of input
    6 |    std::cout << a * b << ' ' << 2 * (a + b) << endl;
      |                                                     ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include<iostream>
using namespce std;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 | 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:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout>>a*b>>" ">>a*2+b*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:9:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | cout>>a*b>>" ">>a*2+b*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<iostream>
#include<char>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

return 0;
}

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

<?php
	$str = trim(fgets(STDIN));
	echo $str,PHP_EOL;
	$x = preg_split("/ /",$str);
	//var_dump($x);  
	echo $x[0]*$x[1]," ",($x[0]+$x[1])*2;
?>

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:9: error: 'echo' does not name a type
    3 |         echo $str,PHP_EOL;
      |         ^~~~
a.cc:4:9: error: '$x' does not name a type
    4 |         $x = preg_split("/ /",$str);
      |         ^~
a.cc:6:9: error: 'echo' does not name a type
    6 |         echo $x[0]*$x[1]," ",($x[0]+$x[1])*2;
      |         ^~~~
a.cc:7:1: error: expected unqualified-id before '?' token
    7 | ?>
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int a
  int b

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

  return 0;
}

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

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

	int a;
	int b;

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

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

	return 0;
}

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

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

	int a;
	int b;

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

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

	return 0;
}

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

#include<iostream>
#include<string>
#include<cmath>
using namespace std;

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

Compiler output:
a.cc:10:25: error: exponent has no digits
   10 |   cout<<a*b<<" "<<(a+b)*2endl;
      |                         ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){

	int a, b;
	int L, S;

	cin >> a;
	cin >> b;

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

		cout << S << L << endl;
	
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: expected ';' before 'cout'
   12 |         L = a * 2 + b * 2
      |                          ^
      |                          ;
   13 | 
   14 |                 cout << S << L << endl;
      |                 ~~~~
Language: C++

f :: (Num a) =>  a -> a -> a 
f a b = a * b

g :: (Num a) => a -> a -> a
g a b = 2 * (a + b)

main = do 
   x <-getLine 
   let xs = words x 
   let y = read(xs !! 0) ::Int
   let z = read(xs !! 1 )::Int
   putStrLn $ show (f y z) ++ " " ++ show (g y z)
   

Compiler output:
a.cc:1:1: error: 'f' does not name a type
    1 | f :: (Num a) =>  a -> a -> a
      | ^
Language: C++

#include<iostream>

int main(){
int a,b;
std::cin>> a>> b;

std::cout<<a*b<< <<2*(a+b)<<std::endl;

return 0;

}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before '}' token
    9 |         return 0
      |                 ^
      |                 ;
   10 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before '}' token
    9 |         return 0
      |                 ^
      |                 ;
   10 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: expected initializer before 'b'
    4 |         int a b;
      |               ^
a.cc:5:16: error: 'a' was not declared in this scope
    5 |         cin >> a>>b;
      |                ^
a.cc:5:19: error: 'b' was not declared in this scope
    5 |         cin >> 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);
}

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

#include <iostream>
using namespace std;

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

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

#include<iostream>
#include<string>
#include<cmath>
#include<algorithm>
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:10:20: error: expression cannot be used as a function
   10 |   cout<<a*b<<" "<<2(a+b)<<endl
      |                   ~^~~~~
Language: C++

#include<iostream>
#include<string>
#include<cmath>
#include<algorithm>
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:10:20: error: expression cannot be used as a function
   10 |   cout<<a*b<<" "<<2(a+b)<<endl;
      |                   ~^~~~~
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: invalid type argument of unary '*' (have 'int')
    6 |   printf("%d %d", a * b,  * (a + b));
      |                           ^~~~~~~~~
Language: C++

#include<stdio.h>

int main()
{
int a;
int b;
scanf("%d %d",&a ,&b);
a>=1; 
b<=100;
printf("a*b 2*(a+b)\n",x);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: 'x' was not declared in this scope
   10 | printf("a*b 2*(a+b)\n",x);
      |                        ^
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:8:18: error: expression cannot be used as a function
    8 |  cout << a*b << 2(a+b) << << endl;
      |                 ~^~~~~
a.cc:8:27: error: expected primary-expression before '<<' token
    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;
 return 0;
}

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

#include <iostream>
using namespace std;

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

  return 0;
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: unable to find numeric literal operator 'operator""a'
    6 |   double c =2a;
      |             ^~
a.cc:7:13: error: unable to find numeric literal operator 'operator""b'
    7 |   double d =2b;
      |             ^~
Language: C++

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

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

  return 0;
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: unable to find numeric literal operator 'operator""a'
    7 |   double c =2a;
      |             ^~
a.cc:8:13: error: unable to find numeric literal operator 'operator""b'
    8 |   double d =2b;
      |             ^~
Language: C++

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

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

  return 0;
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: unable to find numeric literal operator 'operator""a'
    7 |   double c = 2a;
      |              ^~
a.cc:8:14: error: unable to find numeric literal operator 'operator""b'
    8 |   double d = 2b;
      |              ^~
Language: C++

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

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

  return 0;
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'double'
   11 |   double f = c+d;
      |   ^~~~~~
a.cc:12:16: error: 'f' was not declared in this scope
   12 |   cout << e << f << endl;
      |                ^
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
 
int main() {
  double a,b;
  cin >> a >> b;
  double c = 2*a;
  double d = 2*b;
  double e = a*b;
  double f = c+d;
  cout << e???<< " " << f;
}

Compiler output:
a.cc:12:13: warning: trigraph ??< ignored, use -trigraphs to enable [-Wtrigraphs]
   12 |   cout << e???<< " " << f;
a.cc: In function 'int main()':
a.cc:12:13: error: expected primary-expression before '?' token
   12 |   cout << e???<< " " << f;
      |             ^
a.cc:12:14: error: expected primary-expression before '?' token
   12 |   cout << e???<< " " << f;
      |              ^
a.cc:12:15: error: expected primary-expression before '<<' token
   12 |   cout << e???<< " " << f;
      |               ^~
a.cc:12:26: error: expected ':' before ';' token
   12 |   cout << e???<< " " << f;
      |                          ^
      |                          :
a.cc:12:26: error: expected primary-expression before ';' token
a.cc:12:26: error: expected ':' before ';' token
   12 |   cout << e???<< " " << f;
      |                          ^
      |                          :
a.cc:12:26: error: expected primary-expression before ';' token
a.cc:12:26: error: expected ':' before ';' token
   12 |   cout << e???<< " " << f;
      |                          ^
      |                          :
a.cc:12:26: error: expected primary-expression before ';' token
Language: C++

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

int main() {
  double a,b;
  cin >> a >> b;
  double area = a*b;
  double clength = 2*(a+b)
  cout << area << length;

  return 0;
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'cout'
   10 |   cout << area << length;
      |   ^~~~
Language: C++

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

int main() {
  double a,b;
  cin >> a >> b;
  double area = a*b;
  double clength = 2*(a+b);
  cout << area << length;

  return 0;
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'length' was not declared in this scope; did you mean 'clength'?
   10 |   cout << area << length;
      |                   ^~~~~~
      |                   clength
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:34: error: expected '}' at end of input
   10 |   cout << area << " " <<  length;
      |                                  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

main = getLine >>= putStrLn.unwords.map show.(\(x:y:_) -> [x*y, (x+y)*2]).map (read :: String -> Int).words

Compiler output:
a.cc:1:47: error: stray '\' in program
    1 | main = getLine >>= putStrLn.unwords.map show.(\(x:y:_) -> [x*y, (x+y)*2]).map (read :: String -> Int).words
      |                                               ^
a.cc:1:1: error: 'main' does not name a type
    1 | main = getLine >>= putStrLn.unwords.map show.(\(x:y:_) -> [x*y, (x+y)*2]).map (read :: String -> Int).words
      | ^~~~
Language: C++


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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: found ':' in nested-name-specifier, expected '::'
    7 | int b:
      |      ^
      |      ::
a.cc:7:5: error: 'b' has not been declared
    7 | int b:
      |     ^
a.cc:8:5: error: qualified-id in declaration before '>>' token
    8 | cin >> a>> b;
      |     ^~
a.cc:9:10: error: 'b' was not declared in this scope
    9 | int x= a*b;
      |          ^
Language: C++


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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: expected primary-expression before '?' token
    8 | 1 ??? a;
      |    ^
a.cc:8:5: error: expected primary-expression before '?' token
    8 | 1 ??? a;
      |     ^
a.cc:8:8: error: expected ':' before ';' token
    8 | 1 ??? a;
      |        ^
      |        :
a.cc:8:8: error: expected primary-expression before ';' token
a.cc:8:8: error: expected ':' before ';' token
    8 | 1 ??? a;
      |        ^
      |        :
a.cc:8:8: error: expected primary-expression before ';' token
a.cc:8:8: error: expected ':' before ';' token
    8 | 1 ??? a;
      |        ^
      |        :
a.cc:8:8: error: expected primary-expression before ';' token
a.cc:9:4: error: expected primary-expression before '?' token
    9 | b ??? 100;
      |    ^
a.cc:9:5: error: expected primary-expression before '?' token
    9 | b ??? 100;
      |     ^
a.cc:9:10: error: expected ':' before ';' token
    9 | b ??? 100;
      |          ^
      |          :
a.cc:9:10: error: expected primary-expression before ';' token
a.cc:9:10: error: expected ':' before ';' token
    9 | b ??? 100;
      |          ^
      |          :
a.cc:9:10: error: expected primary-expression before ';' token
a.cc:9:10: error: expected ':' before ';' token
    9 | b ??? 100;
      |          ^
      |          :
a.cc:9:10: error: expected primary-expression before ';' token
a.cc: At global scope:
a.cc:18:1: error: expected unqualified-id before numeric constant
   18 | 1 ??? a, b ??? 100
      | ^
Language: C++


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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: expected primary-expression before '?' token
    8 | 1 ??? a;
      |    ^
a.cc:8:5: error: expected primary-expression before '?' token
    8 | 1 ??? a;
      |     ^
a.cc:8:8: error: expected ':' before ';' token
    8 | 1 ??? a;
      |        ^
      |        :
a.cc:8:8: error: expected primary-expression before ';' token
a.cc:8:8: error: expected ':' before ';' token
    8 | 1 ??? a;
      |        ^
      |        :
a.cc:8:8: error: expected primary-expression before ';' token
a.cc:8:8: error: expected ':' before ';' token
    8 | 1 ??? a;
      |        ^
      |        :
a.cc:8:8: error: expected primary-expression before ';' token
a.cc:9:4: error: expected primary-expression before '?' token
    9 | b ??? 100;
      |    ^
a.cc:9:5: error: expected primary-expression before '?' token
    9 | b ??? 100;
      |     ^
a.cc:9:10: error: expected ':' before ';' token
    9 | b ??? 100;
      |          ^
      |          :
a.cc:9:10: error: expected primary-expression before ';' token
a.cc:9:10: error: expected ':' before ';' token
    9 | b ??? 100;
      |          ^
      |          :
a.cc:9:10: error: expected primary-expression before ';' token
a.cc:9:10: error: expected ':' before ';' token
    9 | b ??? 100;
      |          ^
      |          :
a.cc:9:10: error: expected primary-expression before ';' token
Language: C++


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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected ';' before 'y'
   11 | cout << x y<< endl;
      |          ^~
      |          ;
Language: C++


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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected ';' before 'y'
   11 | cout << x   y<< endl;
      |          ^  ~
      |          ;
Language: C++

#include <iostream>
using namespace std;
int main(){
int a,b;
scanf("%d %d",&a,&b);
print("%d %d\n",a*b,2*(a+b));
return 0;
}
   

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

a, b = [int(i) for i in input().split()]
area = a * b
perimeter = 2 * (a + b)
print(area, perimeter, sep=" ")

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = [int(i) for i in input().split()]
      | ^
Language: C++

int main(int argc,const char*argv[])
{
    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(int, const char**)':
a.cc:4:5: error: 'scanf' was not declared in this scope
    4 |     scanf("%d %d",&a,&b);
      |     ^~~~~
a.cc:5:5: error: 'printf' was not declared in this scope
    5 |     printf("%d %d\n",a*b,2*a+2*b);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(int argc,const char*argv[])
Language: C++

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

Compiler output:
a.cc:2:1: error: expected unqualified-id before '?' token
    2 | ??
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
    5 |  scanf("%d"&a) scanf("%d"&b);
      |        ~~~~^~
      |        |    |
      |        |    int
      |        const char [3]
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
    5 |  scanf("%d"&a); scanf("%d"&b);
      |        ~~~~^~
      |        |    |
      |        |    int
      |        const char [3]
a.cc:5:27: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
    5 |  scanf("%d"&a); scanf("%d"&b);
      |                       ~~~~^~
      |                       |    |
      |                       |    int
      |                       const char [3]
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:46: error: expected ';' before '}' token
    8 |         printf("%d %d\n", a*b, 2 * a + 2 * b)};
      |                                              ^
      |                                              ;
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else{printf("error")};
      | ^~~~
a.cc:9:21: error: expected ';' before '}' token
    9 | else{printf("error")};
      |                     ^
      |                     ;
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: expected primary-expression before ')' token
   11 | )
      | ^
a.cc:11:2: error: expected '}' at end of input
   11 | )
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: unable to find numeric literal operator 'operator""a'
    6 | printf("%d\n",a*b,2a+2b);
      |                   ^~
a.cc:6:22: error: unable to find numeric literal operator 'operator""b'
    6 | printf("%d\n",a*b,2a+2b);
      |                      ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: unable to find numeric literal operator 'operator""a'
    6 | printf("%d\n",a*b,2a+2b);
      |                   ^~
a.cc:6:22: error: unable to find numeric literal operator 'operator""b'
    6 | printf("%d\n",a*b,2a+2b);
      |                      ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: unable to find numeric literal operator 'operator""a'
    7 | printf("%d\n",a*b,2a+2b);
      |                   ^~
a.cc:7:22: error: unable to find numeric literal operator 'operator""b'
    7 | printf("%d\n",a*b,2a+2b);
      |                      ^~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: expected primary-expression before ')' token
   11 | )
      | ^
a.cc:11:2: error: expected '}' at end of input
   11 | )
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: expected primary-expression before ')' token
   11 | )
      | ^
a.cc:11:2: error: expected '}' at end of input
   11 | )
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

#include <stdio.h>

int main()
{
int a,b;

scanf("%d",&a);

scanf("%d",&b);

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: unable to find numeric literal operator 'operator""a'
   13 | printf("%d\n",2a + 2b);
      |               ^~
a.cc:13:20: error: unable to find numeric literal operator 'operator""b'
   13 | printf("%d\n",2a + 2b);
      |                    ^~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: expected primary-expression before ')' token
   11 | )
      | ^
a.cc:11:2: error: expected '}' at end of input
   11 | )
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: unable to find numeric literal operator 'operator""a'
    7 | printf("%d\n",a,b,a*b,2a+2b);
      |                       ^~
a.cc:7:26: error: unable to find numeric literal operator 'operator""b'
    7 | printf("%d\n",a,b,a*b,2a+2b);
      |                          ^~
Language: C++

#include <stdio.h>

int main()
{
int a,b;

scanf("%d",&a);

scanf("%d",&b);

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: unable to find numeric literal operator 'operator""a'
   11 | printf("%d %d\n",a * b, 2a + 2b);
      |                         ^~
a.cc:11:30: error: unable to find numeric literal operator 'operator""b'
   11 | printf("%d %d\n",a * b, 2a + 2b);
      |                              ^~
Language: C++

#include <stdio.h>

int main()
{
int a, b;

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: unable to find numeric literal operator 'operator""a'
    9 | printf("%d %d\n",a * b, 2a + 2b);
      |                         ^~
a.cc:9:30: error: unable to find numeric literal operator 'operator""b'
    9 | printf("%d %d\n",a * b, 2a + 2b);
      |                              ^~
Language: C++

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

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

	return 0;
}

Compiler output:
a.cc:7:15: warning: missing terminating " character
    7 |         scanf("%d , &b);
      |               ^
a.cc:7:15: error: missing terminating " character
    7 |         scanf("%d , &b);
      |               ^~~~~~~~~~
a.cc:8:56: error: stray '\' in program
    8 |         printf("%d * %d = %d\n", %d + %d + %d + %d = %d\n,a * b,a + a + b + b);
      |                                                        ^
a.cc: In function 'int main()':
a.cc:8:34: error: expected primary-expression before '%' token
    8 |         printf("%d * %d = %d\n", %d + %d + %d + %d = %d\n,a * b,a + a + b + b);
      |                                  ^
a.cc:8:35: error: 'd' was not declared in this scope
    8 |         printf("%d * %d = %d\n", %d + %d + %d + %d = %d\n,a * b,a + a + b + b);
      |                                   ^
a.cc:8:39: error: expected primary-expression before '%' token
    8 |         printf("%d * %d = %d\n", %d + %d + %d + %d = %d\n,a * b,a + a + b + b);
      |                                       ^
a.cc:8:44: error: expected primary-expression before '%' token
    8 |         printf("%d * %d = %d\n", %d + %d + %d + %d = %d\n,a * b,a + a + b + b);
      |                                            ^
a.cc:8:49: error: expected primary-expression before '%' token
    8 |         printf("%d * %d = %d\n", %d + %d + %d + %d = %d\n,a * b,a + a + b + b);
      |                                                 ^
a.cc:8:54: error: expected primary-expression before '%' token
    8 |         printf("%d * %d = %d\n", %d + %d + %d + %d = %d\n,a * b,a + a + b + b);
      |                                                      ^
Language: C++

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

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

	return 0;
}

Compiler output:
a.cc:7:15: warning: missing terminating " character
    7 |         scanf("%d , &b);
      |               ^
a.cc:7:15: error: missing terminating " character
    7 |         scanf("%d , &b);
      |               ^~~~~~~~~~
a.cc:8:54: error: stray '\' in program
    8 |         printf("%d * %d = %d", %d + %d + %d + %d = %d\n,a * b,a + a + b + b);
      |                                                      ^
a.cc: In function 'int main()':
a.cc:8:32: error: expected primary-expression before '%' token
    8 |         printf("%d * %d = %d", %d + %d + %d + %d = %d\n,a * b,a + a + b + b);
      |                                ^
a.cc:8:33: error: 'd' was not declared in this scope
    8 |         printf("%d * %d = %d", %d + %d + %d + %d = %d\n,a * b,a + a + b + b);
      |                                 ^
a.cc:8:37: error: expected primary-expression before '%' token
    8 |         printf("%d * %d = %d", %d + %d + %d + %d = %d\n,a * b,a + a + b + b);
      |                                     ^
a.cc:8:42: error: expected primary-expression before '%' token
    8 |         printf("%d * %d = %d", %d + %d + %d + %d = %d\n,a * b,a + a + b + b);
      |                                          ^
a.cc:8:47: error: expected primary-expression before '%' token
    8 |         printf("%d * %d = %d", %d + %d + %d + %d = %d\n,a * b,a + a + b + b);
      |                                               ^
a.cc:8:52: error: expected primary-expression before '%' token
    8 |         printf("%d * %d = %d", %d + %d + %d + %d = %d\n,a * b,a + a + b + b);
      |                                                    ^
Language: C++

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

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

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

	return 0;

}

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

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

	scanf("%d %d", &a, &b,a>=1,b<=100);

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

	return 0;

}

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

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

	scanf("%d %d", &a, &b,a>=1,b<=100);

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:32: error: expression cannot be used as a function
    8 |         printf("%d,%d\n", a*b,2(a+b));
      |                               ~^~~~~
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:6:12: error: expected initializer before '.' token
    6 |      int a . b;
      |            ^
a.cc:7:13: error: 'a' was not declared in this scope
    7 |      cin >> a >> b;
      |             ^
a.cc:7:18: error: 'b' was not declared in this scope
    7 |      cin >> a >> b;
      |                  ^
Language: C++

#include<bits/stdc++.h>
#define ll long long int
#define FOR(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++)
#define REP(i,n) FOR(i,0,n)
#define REP1(i,n) FOR(i,1,n)
using namespace std;
 /*temp*/
 
 
int main(){
	inta, b;
	cin >> a >> b;
	cout << a*b << 2*(a+b) << "\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'inta' was not declared in this scope; did you mean 'int'?
   11 |         inta, b;
      |         ^~~~
      |         int
a.cc:11:15: error: 'b' was not declared in this scope
   11 |         inta, b;
      |               ^
a.cc:12:16: error: 'a' was not declared in this scope
   12 |         cin >> a >> b;
      |                ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: expected primary-expression before '%' token
    5 | scanf("%d %d",&a,%b);
      |                  ^
a.cc:6:22: error: expression cannot be used as a function
    6 | printf("%d %d",(a*b) (a+a+b+b));
      |                ~~~~~~^~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expression cannot be used as a function
    6 | printf("%d %d",(a*b) (a+a+b+b));
      |                ~~~~~~^~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int a, b;
	int area, length;

	cin >> a >> b;

	area = a * b;
	length = 2 * (a + b);

	cout << area << " " << length << endl;



	}

	return(0);
}

Compiler output:
a.cc:19:9: error: expected unqualified-id before 'return'
   19 |         return(0);
      |         ^~~~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(){

int a, b;

cin >> a b;

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

return 0;

		  }

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

#include <iostream>
using namespace std;

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

	return 0;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: 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, s, l;

	cin >> a >> b;
	s = a * b;
	l =  2(a + b);
	cout << s << l << endl;

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expression cannot be used as a function
    9 |         l =  2(a + b);
      |              ~^~~~~~~
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 << endl;

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expression cannot be used as a function
    9 |         l =  2(a + b);
      |              ~^~~~~~~