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

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

Compiler output:
a.cc:4:12: warning: missing terminating " character
    4 | scanf(%d %d",&a &b);
      |            ^
a.cc:4:12: error: missing terminating " character
    4 | scanf(%d %d",&a &b);
      |            ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:3:7: error: expected initializer before 'b'
    3 | int a b;
      |       ^
a.cc:4:7: error: expected primary-expression before '%' token
    4 | scanf(%d %d",&a &b);
      |       ^
a.cc:4:8: error: 'd' was not declared in this scope
    4 | scanf(%d %d",&a &b);
      |        ^
Language: C++

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

Compiler output:
a.cc:4:12: warning: missing terminating " character
    4 | scanf(%d %d",&a,&b);
      |            ^
a.cc:4:12: error: missing terminating " character
    4 | scanf(%d %d",&a,&b);
      |            ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:3:7: error: expected initializer before 'b'
    3 | int a b;
      |       ^
a.cc:4:7: error: expected primary-expression before '%' token
    4 | scanf(%d %d",&a,&b);
      |       ^
a.cc:4:8: error: 'd' was not declared in this scope
    4 | scanf(%d %d",&a,&b);
      |        ^
Language: C++

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

Compiler output:
a.cc:4:12: warning: missing terminating " character
    4 | scanf(%d,%d",&a,&b);
      |            ^
a.cc:4:12: error: missing terminating " character
    4 | scanf(%d,%d",&a,&b);
      |            ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:3:7: error: expected initializer before 'b'
    3 | int a b;
      |       ^
a.cc:4:7: error: expected primary-expression before '%' token
    4 | scanf(%d,%d",&a,&b);
      |       ^
a.cc:4:8: error: 'd' was not declared in this scope
    4 | scanf(%d,%d",&a,&b);
      |        ^
a.cc:4:10: error: expected primary-expression before '%' token
    4 | scanf(%d,%d",&a,&b);
      |          ^
Language: C++

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:7: error: expected initializer before 'b'
    3 | int a b;
      |       ^
a.cc:4:16: error: 'a' was not declared in this scope
    4 | scanf("%d %d",&a,&b);
      |                ^
a.cc:4:19: error: 'b' was not declared in this scope
    4 | scanf("%d %d",&a,&b);
      |                   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:7: error: expected initializer before 'b'
    3 | int a b;
      |       ^
a.cc:4:16: error: 'a' was not declared in this scope
    4 | scanf("%d %d",&a &b);
      |                ^
a.cc:4:19: error: 'b' was not declared in this scope
    4 | scanf("%d %d",&a &b);
      |                   ^
Language: C++

#include <iostream>

using namespace std;

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

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

#!/usr/bin/env python
# -*- coding: utf-8 -*-

var = raw_input().split(" ")
rect = var[0] * var[1]
length = var[0] * 2 + var[1] * 2

print rect + " " + length

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python
      |  ^
a.cc:2:3: error: invalid preprocessing directive #-
    2 | # -*- coding: utf-8 -*-
      |   ^
a.cc:4:1: error: 'var' does not name a type
    4 | var = raw_input().split(" ")
      | ^~~
Language: C++

import java.util.*;

class Main{

	public static void main(String[] args) {
		Scanner hoge = new Scanner(System.in);

		int a = hoge.nextInt();

		int b = hoge.nextInt();
		System.out.println(a*b +" "+(a+b)*2);
		
	
	}


}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
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) {
      |               ^~~~~~~
      |               :
a.cc:5:33: error: 'String' has not been declared
    5 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:5:42: error: expected ',' or '...' before 'args'
    5 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:17:2: error: expected ';' after class definition
   17 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:17: error: 'Scanner' was not declared in this scope
    6 |                 Scanner hoge = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:8:25: error: 'hoge' was not declared in this scope
    8 |                 int a = hoge.nextInt();
      |                         ^~~~
a.cc:11:17: error: 'System' was not declared in this scope
   11 |                 System.out.println(a*b +" "+(a+b)*2);
      |                 ^~~~~~
Language: C++

#include <iostream>

int main(){

	int a, b;
	cin >> &a,&b;
	cout << a*b << " " << (a+b)*2;

	return 0;
}

Compiler output:
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 a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout << a*b << " " << (a+b)*2;
      |         ^~~~
      |         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>
#include <string>
#include <vector>

using namespace std;

int main()
{

	string str;
	getline(cin, str);
	
vector<string> vStr;

	while (str.find(' ') != -1 )
	{
		vStr.push_back(str.substr(0,str.find(' ')));
		str.erase(0, str.find(' ') + 1);
	}
	vStr.push_back(str);

cout << vStr.at(0) * vStr.at(1) << " " << vStr.at(0) * 2 + vStr.at(1) * 2 << endl;

return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:20: error: no match for 'operator*' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'})
   22 | cout << vStr.at(0) * vStr.at(1) << " " << vStr.at(0) * 2 + vStr.at(1) * 2 << endl;
      |         ~~~~~~~~~~ ^ ~~~~~~~~~~
      |                |            |
      |                |            basic_string<[...]>
      |                basic_string<[...]>
a.cc:22:54: error: no match for 'operator*' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   22 | cout << vStr.at(0) * vStr.at(1) << " " << vStr.at(0) * 2 + vStr.at(1) * 2 << endl;
      |                                           ~~~~~~~~~~ ^ ~
      |                                                  |     |
      |                                                  |     int
      |                                                  __gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type {aka std::__cxx11::basic_string<char>}
a.cc:22:71: error: no match for 'operator*' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   22 | cout << vStr.at(0) * vStr.at(1) << " " << vStr.at(0) * 2 + vStr.at(1) * 2 << endl;
      |                                                            ~~~~~~~~~~ ^ ~
      |                                                                   |     |
      |                                                                   |     int
      |                                                                   __gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type {aka std::__cxx11::basic_string<char>}
Language: C++


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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected ';' before 'printf'
    8 |   s=x*y
      |        ^
      |        ;
    9 |   printf("%d %d\n",l,s);
      |   ~~~~~~
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:8:24: error: unable to find numeric literal operator 'operator""a'
    8 |  cout << a*b << " " << 2a+2b << endl;
      |                        ^~
a.cc:8:27: error: unable to find numeric literal operator 'operator""b'
    8 |  cout << a*b << " " << 2a+2b << endl;
      |                           ^~
Language: C++

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

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

imput java.util.Scanner;

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

Compiler output:
a.cc:1:1: error: 'imput' does not name a type
    1 | imput java.util.Scanner;
      | ^~~~~
a.cc:4:10: error: expected ':' before 'static'
    4 |    public static void main(String args[]){
      |          ^~~~~~~
      |          :
a.cc:4:28: error: 'String' has not been declared
    4 |    public static void main(String args[]){
      |                            ^~~~~~
a.cc:10:2: error: expected ';' after class definition
   10 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:7: error: 'Scanner' was not declared in this scope
    5 |       Scanner stdIn = new Scanner(System.in);
      |       ^~~~~~~
a.cc:6:15: error: 'stdIn' was not declared in this scope; did you mean 'std'?
    6 |       int a = stdIn.nextInt();
      |               ^~~~~
      |               std
a.cc:8:7: error: 'System' was not declared in this scope
    8 |       System.out.println(a*b);
      |       ^~~~~~
Language: C++

#include<stdio.h>

int a;
int b;
int menseki;
int shu;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'cin' was not declared in this scope
    9 | cin >> a >> b;
      | ^~~
a.cc:12:1: error: 'cout' was not declared in this scope
   12 | cout << menseki << shu;
      | ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected primary-expression before '%' token
    9 | scanf("%d %d", %a, %b);
      |                ^
a.cc:9:20: error: expected primary-expression before '%' token
    9 | scanf("%d %d", %a, %b);
      |                    ^
a.cc:12:24: error: expected ';' before 'return'
   12 | printf("%d %d\n", a, b)
      |                        ^
      |                        ;
   13 | return 0;
      | ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected primary-expression before '%' token
    9 | scanf("%d %d", %a, %b);
      |                ^
a.cc:9:20: error: expected primary-expression before '%' token
    9 | scanf("%d %d", %a, %b);
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected primary-expression before '%' token
    9 | scanf("%d %d", %a, %b);
      |                ^
a.cc:9:20: error: expected primary-expression before '%' token
    9 | scanf("%d %d", %a, %b);
      |                    ^
Language: C++

#include<stdio.h>

int main(void)
{
	int a, b;
	scanf_s("%d", a);
	scanf_s("%d", b);
	printf("%d", a*b);

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%d", a);
      |         ^~~~~~~
      |         scanf
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:30: 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,b,c,d;
cin>>a>>b;
c=a*b;d=a*2+b*2;
cout<<c<<d<<end1;// your code goes here
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'end1' was not declared in this scope
    8 | cout<<c<<d<<end1;// your code goes here
      |             ^~~~
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: 'end1' was not declared in this scope
    8 | cout << a*b << " " << 2*(a+b)<< end1 ;
      |                                 ^~~~
Language: C++

#include<iostream>
using namespace std;

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

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

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

#include<iostream>
using namespace std;

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

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

}

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

#include<iostream>
using namespace std;

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

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

}

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

#include<iostream>
using namespace std;

int main(){
int a;
int b;
cin >>a;
cin >>b;

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

}

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

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

Compiler output:
a.cc:2:1: error: 'usging' does not name a type
    2 | usging namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:5:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |    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:6:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |    cout << x*y << 2*(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:6:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |    cout << x*y << 2*(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 a b; 
    cin >> a >> b;
    cout << a*b << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected initializer before 'b'
    5 |     int a b;
      |           ^
a.cc:6:12: error: 'a' was not declared in this scope
    6 |     cin >> a >> b;
      |            ^
a.cc:6:17: error: 'b' was not declared in this scope
    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) << end1;

// your code goes here
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: 'end1' was not declared in this scope
    7 | cout << a*b << "" << 2*(a+b) << end1;
      |                                 ^~~~
Language: C++

#include<iostream>
using namespace std;

int add(int a, int b);
int mul(int a, int b);

int main()
{
	int c,d,e,f;
	cin >> c >> d;

	int e = add(c,d);
	int f = mul(c,d);

	cout << e << " " << f << '\n';

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: redeclaration of 'int e'
   12 |         int e = add(c,d);
      |             ^
a.cc:9:17: note: 'int e' previously declared here
    9 |         int c,d,e,f;
      |                 ^
a.cc:13:13: error: redeclaration of 'int f'
   13 |         int f = mul(c,d);
      |             ^
a.cc:9:19: note: 'int f' previously declared here
    9 |         int c,d,e,f;
      |                   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'sum_b'
    8 | cout<<sum_a sum_b<<endl;
      |            ^~~~~~
      |            ;
Language: C++

#include<stdio.h>

int main(){

print("%d\n" "%d\n",a , b)
scanf("%d %d", &a, &b);

Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: 'a' was not declared in this scope
    5 | print("%d\n" "%d\n",a , b)
      |                     ^
a.cc:5:25: error: 'b' was not declared in this scope
    5 | print("%d\n" "%d\n",a , b)
      |                         ^
a.cc:5:1: error: 'print' was not declared in this scope; did you mean 'printf'?
    5 | print("%d\n" "%d\n",a , b)
      | ^~~~~
      | printf
a.cc:6:24: error: expected '}' at end of input
    6 | scanf("%d %d", &a, &b);
      |                        ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<stdio.h>

int main(){

print("%d\n" "%d\n",ab , 2a+2b)
scanf("%d %d", &a, &b);

Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: 'ab' was not declared in this scope
    5 | print("%d\n" "%d\n",ab , 2a+2b)
      |                     ^~
a.cc:5:26: error: unable to find numeric literal operator 'operator""a'
    5 | print("%d\n" "%d\n",ab , 2a+2b)
      |                          ^~
a.cc:5:29: error: unable to find numeric literal operator 'operator""b'
    5 | print("%d\n" "%d\n",ab , 2a+2b)
      |                             ^~
a.cc:5:1: error: 'print' was not declared in this scope; did you mean 'printf'?
    5 | print("%d\n" "%d\n",ab , 2a+2b)
      | ^~~~~
      | printf
a.cc:6:24: error: expected '}' at end of input
    6 | scanf("%d %d", &a, &b);
      |                        ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
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:8:13: error: extended character “ is not valid in an identifier
    8 |     cout << “a*b 2*a+2*b” << endl;
      |             ^
a.cc:8:24: error: extended character ” is not valid in an identifier
    8 |     cout << “a*b 2*a+2*b” << endl;
      |                        ^
a.cc: In function 'int main()':
a.cc:8:13: error: '\U0000201ca' was not declared in this scope
    8 |     cout << “a*b 2*a+2*b” << endl;
      |             ^~
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before 'round'
    7 |     cin >> a >> b
      |                  ^
      |                  ;
    8 |     round = 2*(a+b);
      |     ~~~~~         
a.cc:9:15: error: expected ';' before 'cout'
    9 |     area = a*b
      |               ^
      |               ;
   10 |     cout <<round <<area<<endl;
      |     ~~~~
Language: C++

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

#include<iostream>
using namespace;

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

   cout << a*b/2 << "\n";

}

Compiler output:
a.cc:2:16: error: expected identifier before ';' token
    2 | using namespace;
      |                ^
a.cc: In function 'int main()':
a.cc:7:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |    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:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |    cout << a*b/2 << "\n";
      |    ^~~~
      |    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>

using namespace std;

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

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

return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected primary-expression before '<' token
    9 | cout << a*b <<<" " <<(a+b)*2<<endl;
      |               ^
a.cc:9:20: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<'
    9 | cout << a*b <<<" " <<(a+b)*2<<endl;
      |                ~~~ ^~~~~~~~~
      |                |          |
      |                |          int
      |                const char [2]
Language: C++

include<iostream>

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

	return 0;
}

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

using System;

namespace Rectangle
{

	class Rectangle
	{
        static void Main(string[] args)
        {
            string tmp;
            int x;
            int y;
            int area;
            int length;

            tmp = Console.ReadLine();

            x = int.Parse(tmp.Substring(0, 1));
            y = int.Parse(tmp.Substring(2, 1));

            area = x * y;
            length = (x + y) * 2;
            Console.WriteLine("{0} {1}", area, length);
		}
	}

}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
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:25:10: error: expected ';' after class definition
   25 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void Rectangle::Rectangle::Main(int*)':
a.cc:10:13: error: 'string' was not declared in this scope
   10 |             string tmp;
      |             ^~~~~~
a.cc:16:13: error: 'tmp' was not declared in this scope
   16 |             tmp = Console.ReadLine();
      |             ^~~
a.cc:16:19: error: 'Console' was not declared in this scope
   16 |             tmp = Console.ReadLine();
      |                   ^~~~~~~
a.cc:18:17: error: expected primary-expression before 'int'
   18 |             x = int.Parse(tmp.Substring(0, 1));
      |                 ^~~
a.cc:19:17: error: expected primary-expression before 'int'
   19 |             y = int.Parse(tmp.Substring(2, 1));
      |                 ^~~
Language: C++

#include<stdio.h>
int main(void)
{
	int a,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:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("%d %d", &a,&b);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <stdio.h>

int main(void) {
    
    int x;
    int y;

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

    printf("%d %d", x*y, 2(x+y));
}

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '>>' token
    5 |    int >> x >> y ;
      |        ^~
a.cc:6:12: error: 'x' was not declared in this scope
    6 |    cout << x*y << 2*(x+y) << endl;
      |            ^
a.cc:6:14: error: 'y' was not declared in this scope
    6 |    cout << x*y << 2*(x+y) << endl;
      |              ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '>>' token
    5 |    int >> x >> y ;
      |        ^~
a.cc:6:12: error: 'x' was not declared in this scope
    6 |    cout << x*y << "" << 2*(x+y) << endl;
      |            ^
a.cc:6:14: error: 'y' was not declared in this scope
    6 |    cout << x*y << "" << 2*(x+y) << endl;
      |              ^
Language: C++

#include <stdio.h>

int main(void)
{
 int a,b,x,y;

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

printf("%d %d\n",x,y);

return 0;
}

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

#include <stdio.h>

int main(void)
{
 int a,b,x,y;

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

printf("%d %d\n",x,y);

return 0;
}

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

#include <stdio.h>

int main(void)
{
 int a,b,x,y;

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

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

return 0;
}

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

#include <stdio.h>

int main(void)
{
 int a,b;

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

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

return 0;
}

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

#include <stdio.h>

int main(void)
{
 int a,b;

scanf("%d\n",&a)
scanf("%d\n",&b)

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected ';' before 'scanf'
    7 | scanf("%d\n",&a)
      |                 ^
      |                 ;
    8 | scanf("%d\n",&b)
      | ~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(void)
{
  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:7:11: error: expected ';' before 'b'
    7 |   cin >> a b;
      |           ^~
      |           ;
a.cc:8:14: error: expected ';' before numeric constant
    8 |   cout << a*b 2*a+2*b << endl;
      |              ^~
      |              ;
Language: C++

#include<iostream>
using namespace std;

int main(void)
{
  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:8:14: error: expected ';' before numeric constant
    8 |   cout << a*b 2*a+2*b << endl;
      |              ^~
      |              ;
Language: C++

#include<iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

int main()[
int a,b;

cin >> a >> b;

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

return 0;

}

Compiler output:
a.cc:5:1: error: expected primary-expression before 'int'
    5 | int a,b;
      | ^~~
a.cc:4:12: error: expected ']' before 'int'
    4 | int main()[
      |            ^
      |            ]
    5 | int a,b;
      | ~~~         
a.cc:7:1: error: 'cin' does not name a type
    7 | cin >> a >> b;
      | ^~~
a.cc:9:1: error: 'cout' does not name a type
    9 | cout << a*b << ' ' << (a+b)*2 << endl;
      | ^~~~
a.cc:11:1: error: expected unqualified-id before 'return'
   11 | return 0;
      | ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include <iostream>

int main(){
  int a,b;
  int menseki,syuu;

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

  return 0;
}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String argv[]) throws IOException {
    	InputStreamReader br = new InputStreamReader(System.in);
    	BufferedReader is = new BufferedReader(br);
    	String aa = is.readLine();
    	String bb = is.readLine();
    	int a = Integer.parseInt(aa);
    	int b = Integer.parseInt(bb);
    	System.out.println(a*b + " " + 2*(a+b));
    }
}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
    public static void main(String args[]) throws IOException {
    	InputStreamReader br = new InputStreamReader(System.in);
    	BufferedReader is = new BufferedReader(br);
    	String[] str = is.readLine().split(" ");
    	int a = Integer.parseInt(str[0]);
    	int b = Integer.parseInt(str[1]);
    	System.out.println((a*b) + " " + 2*(a+b));
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:11: error: expected ':' before 'static'
    6 |     public static void main(String args[]) throws IOException {
      |           ^~~~~~~
      |           :
a.cc:6:29: error: 'String' has not been declared
    6 |     public static void main(String args[]) throws IOException {
      |                             ^~~~~~
a.cc:6:42: error: expected ';' at end of member declaration
    6 |     public static void main(String args[]) throws IOException {
      |                                          ^
      |                                           ;
a.cc:6:44: error: 'throws' does not name a type
    6 |     public static void main(String args[]) throws IOException {
      |                                            ^~~~~~
a.cc:14:2: error: expected ';' after class definition
   14 | }
      |  ^
      |  ;
Language: C++

#include<iostream>
using namespace std;

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

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

import java.io.*;
class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] menseki = line.split(" ");
		int sum = Integer.parseInt(menseki[0]) * Integer.parseInt(menseki[1]);
		int syu1 = Integer.parseInt(menseki[0]) * 2;
		int syu2 = Integer.parseInt(menseki[1]) * 2;
		int syuLength = syu1 + syu2;
		System.out.println(sum+" "+syuLength);
	}
}

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

#include <iostream>

using namespace std;

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

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

// Example program
#include <iostream>
#include <string>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: 'null' was not declared in this scope
   12 |  cout <<a*b<<null<<2(a+b)<<endl;
      |              ^~~~
a.cc:12:21: error: expression cannot be used as a function
   12 |  cout <<a*b<<null<<2(a+b)<<endl;
      |                    ~^~~~~
Language: C++

// Example program
#include <iostream>
#include <string>
using namespace std;

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

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

// Example program
#include <iostream>
#include <string>
using namespace std;

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

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


// Example program
#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |  2*(a+b) <<endl;
      |  ~~~~~~~~^~~~~~
Language: C++


// Example program
#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |  2*(a+b) <<endl;
      |  ~~~~~~~~^~~~~~
Language: C++

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

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

#include <cstdio>

using namespace std;
 
int main(){
	int a; 
	int b;
	int c;
	int d;
	scanf("%d %d",&a,&b);
	c = a*b;
	d = (a*2)+(b*2);
	printf("%d %d",c,d\n);
	
	return 0;
}

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

#include <stdio.h>
using namespace std;

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

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

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

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

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

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main(vaid)
      |     ^~~~
a.cc:2:10: error: 'vaid' was not declared in this scope; did you mean 'void'?
    2 | int main(vaid)
      |          ^~~~
      |          void
Language: C++

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

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

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

int main()
{

int i,j;
cin>>i>>j;

cout<<i*j<<' '<<2(i+j)<<"\n";

return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expression cannot be used as a function
   10 | cout<<i*j<<' '<<2(i+j)<<"\n";
      |                 ~^~~~~
Language: C++

#include<iostream>
using namespace std;

int main()
{

  int i,j;
  cin>>i>>j;

  cout<<i*j<<' '<<2(i+j)<<"\n";

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expression cannot be used as a function
   10 |   cout<<i*j<<' '<<2(i+j)<<"\n";
      |                   ~^~~~~
Language: C++

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

cout<<a*b<<' '<<2(a+b)<<"\n";

return 0;

}

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


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

cout<<a*b<<' '<<2(a+b)<<"\n";

return 0;

}

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

#include <iostream>
using namespace std;

int main()
{
int a,b;

cin>>a>>b;

cout<<a*b<<' '<<2(a+b)<<"\n";

return 0;

}

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

#include <iostream>
using namespace std;

int main()
{

int a,b;

cin>>a>>b;

cout<<a*b<<' '<<2(a+b)<<"\n";

return 0;

}

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

#include <iostream>
using namespace std;

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

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