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

#include <iostream>
using namespace std;

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

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

x, y = gets.split.map(&:to_i)
area  = x * y
perimeter = 2 * x + 2 * y
puts '#{area} #{perimeter}'

Compiler output:
a.cc:4:6: warning: multi-character literal with 20 characters exceeds 'int' size of 4 bytes
    4 | puts '#{area} #{perimeter}'
      |      ^~~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'x' does not name a type
    1 | x, y = gets.split.map(&:to_i)
      | ^
Language: C++

int main() {

	int a, b, area,length;
		
	cin >> a >> b;

	area = a * b;

	length = 2 * a + 2 * b;

	cout << area << " "<< length;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> a >> b;
      |         ^~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << area << " "<< length;
      |         ^~~~
Language: C++

using namespace std;

int main() {

	int a, b, area,length;
		
	cin >> a >> b;

	area = a * b;

	length = 2 * a + 2 * b;

	cout << area << " "<< length;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> a >> b;
      |         ^~~
a.cc: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:13:9: error: 'cout' was not declared in this scope
   13 |         cout << area << " "<< length;
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
#include<string>
using namespace std;
 
int main() {
 
    int a, b, area,length;
         
    cin >> a >> b;
 
    area = a * b;
 
    length = 2 * a + 2 * b;
 
    cout << area << " "<< length\n;
}

Compiler output:
a.cc:15:33: error: stray '\' in program
   15 |     cout << area << " "<< length\n;
      |                                 ^
a.cc: In function 'int main()':
a.cc:15:33: error: expected ';' before 'n'
   15 |     cout << area << " "<< length\n;
      |                                 ^~
      |                                 ;
Language: C++

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

int main() {

	int a, b, area,length;
		
	cin >> a >> b;

	area = a * b;

	length = 2 * a + 2 * b;

	cout << area << " "<< length << "\n";
}

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

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

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

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

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

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

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

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

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

#include<stdio.h)
int main()

{
int a,b;

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

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


return 0;

Compiler output:
a.cc:1:18: error: missing terminating > character
    1 | #include<stdio.h)
      |                  ^
a.cc:1:9: fatal error: stdio.h): No such file or directory
    1 | #include<stdio.h)
      |         ^
compilation terminated.
Language: C++

#include<stdio.h)
int main()

{
int a,b;

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

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


return 0;

Compiler output:
a.cc:1:18: error: missing terminating > character
    1 | #include<stdio.h)
      |                  ^
a.cc:1:9: fatal error: stdio.h): No such file or directory
    1 | #include<stdio.h)
      |         ^
compilation terminated.
Language: C++

#include<stdio.h)
int main()

{
int a,b;

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

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


return 0;

Compiler output:
a.cc:1:18: error: missing terminating > character
    1 | #include<stdio.h)
      |                  ^
a.cc:1:9: fatal error: stdio.h): No such file or directory
    1 | #include<stdio.h)
      |         ^
compilation terminated.
Language: C++

#include<stdio.h)
int main()

{
int a,b;

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

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


return 0;

Compiler output:
a.cc:1:18: error: missing terminating > character
    1 | #include<stdio.h)
      |                  ^
a.cc:1:9: fatal error: stdio.h): No such file or directory
    1 | #include<stdio.h)
      |         ^
compilation terminated.
Language: C++

#include<stdio.h)
int main()

{
int a,b;

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

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


return 0;
}

Compiler output:
a.cc:1:18: error: missing terminating > character
    1 | #include<stdio.h)
      |                  ^
a.cc:1:9: fatal error: stdio.h): No such file or directory
    1 | #include<stdio.h)
      |         ^
compilation terminated.
Language: C++

#include<stdio.h)
int main()

{
int a,b;

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

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

return 0;
}

Compiler output:
a.cc:1:18: error: missing terminating > character
    1 | #include<stdio.h)
      |                  ^
a.cc:1:9: fatal error: stdio.h): No such file or directory
    1 | #include<stdio.h)
      |         ^
compilation terminated.
Language: C++

#include<stdio.h)
int main()

{
int a,b;

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

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

return 0;
}

Compiler output:
a.cc:1:18: error: missing terminating > character
    1 | #include<stdio.h)
      |                  ^
a.cc:1:9: fatal error: stdio.h): No such file or directory
    1 | #include<stdio.h)
      |         ^
compilation terminated.
Language: C++

#include<math.h>
#include<stdio.h>

int main() {
	int a, b, S, l;
	scanf_s("%d", &a);
	scanf_s("%d", &b);

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

	printf("%d\n", S);
	printf("%d\n", l);
	return 0;
}

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

#include"stdafx.h"
#include<math.h>
#include<stdio.h>

int main() {
	int a, b, S, l;
	scanf_s("%d %d", &a, &b);

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

	printf("%d %d\n", S, l);
	return 0;
}

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

#include <iostream>
using namespace std;

int main( void )
{
  int num1, num2;
  cin >> num1 >> num2;
  cout << num1*num2 << " " << num1*2+num2*2 << endl;
  return 0;
}
~    

Compiler output:
a.cc:11:2: error: expected class-name at end of input
   11 | ~
      |  ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int a, b;
    cin >> a b;
    
    if(1 <= a <= 100 && 1<= b <= 100)
        cout << a*b << ' ' << a+a+b+b << endl;
    return 0;

}

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

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

Compiler output:
a.cc:4:7: warning: missing terminating " character
    4 | scanf("%d %d\n???, &a, &b);
      |       ^
a.cc:4:7: error: missing terminating " character
    4 | scanf("%d %d\n???, &a, &b);
      |       ^~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:13: error: expected ')' before 'n'
    5 | area = a * b
      |             ^
      |             )
    6 | n = a*2 + b*2;
      | ~            
a.cc:4:6: note: to match this '('
    4 | scanf("%d %d\n???, &a, &b);
      |      ^
Language: C++

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

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

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: 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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout << area <<" " << length;
      |         ^~~~
      |         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;
	int b;
	int area = a * b;
	int length = (a+b)*2;
	cin >> a >> b;
	cout << area <<" " << length << endl;
	return 0;
	
}

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

a,b=map(int,input().split())
print(f'{a*b} {(a+b)*2})

Compiler output:
a.cc:2:8: warning: missing terminating ' character
    2 | print(f'{a*b} {(a+b)*2})
      |        ^
a.cc:2:8: error: missing terminating ' character
    2 | print(f'{a*b} {(a+b)*2})
      |        ^~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a,b=map(int,input().split())
      | ^
Language: C++

<?php
$a  = fgets(STDIN);
$arr = explode(' ',$a);

$arr[3];
$arr[5];

echo $rec_perimeter=2*(3 + 5);


?> 

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: '$arr' does not name a type
    3 | $arr = explode(' ',$a);
      | ^~~~
a.cc:5:1: error: '$arr' does not name a type
    5 | $arr[3];
      | ^~~~
a.cc:6:1: error: '$arr' does not name a type
    6 | $arr[5];
      | ^~~~
a.cc:8:1: error: 'echo' does not name a type
    8 | echo $rec_perimeter=2*(3 + 5);
      | ^~~~
a.cc:11:1: error: expected unqualified-id before '?' token
   11 | ?>
      | ^
Language: C++

#include <iostream>

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

area = a * b;
perimeter = (a + b) * 2
std::cout << area << ' ' << perimeter << std::endl;

}

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

#include<iostream>

int main(){
  int width

  std::cin >> width >> height;
  std::cout << width + 2*height << ' ' << witdh*height << std::endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'std'
    6 |   std::cin >> width >> height;
      |   ^~~
a.cc:7:16: error: 'width' was not declared in this scope; did you mean 'wcwidth'?
    7 |   std::cout << width + 2*height << ' ' << witdh*height << std::endl;
      |                ^~~~~
      |                wcwidth
a.cc:7:26: error: 'height' was not declared in this scope
    7 |   std::cout << width + 2*height << ' ' << witdh*height << std::endl;
      |                          ^~~~~~
a.cc:7:43: error: 'witdh' was not declared in this scope
    7 |   std::cout << width + 2*height << ' ' << witdh*height << std::endl;
      |                                           ^~~~~
Language: C++

#include<iostream>

int main{
  int width, height;

  std::cin >> width >> height;
  std::cout << 2*width + 2*height << width*height << std::endl;

  return 0;
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int width, height;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:6:8: error: 'cin' in namespace 'std' does not name a type
    6 |   std::cin >> width >> height;
      |        ^~~
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:8: error: 'cout' in namespace 'std' does not name a type
    7 |   std::cout << 2*width + 2*height << width*height << std::endl;
      |        ^~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:3: error: expected unqualified-id before 'return'
    9 |   return 0;
      |   ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

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


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

#include <stdio.h>

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

    scanf("%d %d",&a,&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:13:9: error: unable to find numeric literal operator 'operator""a'
   13 |     y = 2a+2b
      |         ^~
a.cc:13:12: error: unable to find numeric literal operator 'operator""b'
   13 |     y = 2a+2b
      |            ^~
Language: C++

#include <stdio.h>

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

    scanf("%d %d",&a,&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:13:9: error: unable to find numeric literal operator 'operator""a'
   13 |     y = 2a+2b;
      |         ^~
a.cc:13:12: error: unable to find numeric literal operator 'operator""b'
   13 |     y = 2a+2b;
      |            ^~
Language: C++

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



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

#include <iostream>
using namespace std;

int main(void) {
  int length, breadth;
  cin >> length >> breadth;
  cout << length*breadth << " " << 2*length + 2*breadth
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:56: error: expected ';' before '}' token
    7 |   cout << length*breadth << " " << 2*length + 2*breadth
      |                                                        ^
      |                                                        ;
    8 | }
      | ~
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:5:15: error: 'ciN' was not declared in this scope
    5 |     int a, b; ciN>> a >> b;
      |               ^~~
Language: C++

#include<iostream>
using namespace std;

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



Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:40: error: expected ';' before '}' token
    7 |   cout << a*a << " " << 2*(a+b) << endl
      |                                        ^
      |                                        ;
    8 | 
    9 | }
      | ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> l >> 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:9: error: 'cout' was not declared in this scope
    6 |         cout << l*b << " " << 2 * (l + b) << endl;
      |         ^~~~
a.cc:6:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:46: error: 'endl' was not declared in this scope
    6 |         cout << l*b << " " << 2 * (l + 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*a+2*b >> endl;
}


Compiler output:
a.cc:3:16: error: expected identifier before ';' token
    3 | using namespace;
      |                ^
a.cc: In function 'int main()':
a.cc:7:1: 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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | cout >> a*b >> " " >> 2*a+2*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:8:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | cout >> a*b >> " " >> 2*a+2*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++

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:3:1: error: 'cin' was not declared in this scope
    3 | cin >> a >> b;
      | ^~~
a.cc:4:1: error: 'cout' was not declared in this scope
    4 | cout << a*b << " " << 2*a+2*b << endl;
      | ^~~~
a.cc:4:34: error: 'endl' was not declared in this scope
    4 | cout << a*b << " " << 2*a+2*b << endl;
      |                                  ^~~~
Language: C++

#include<iostream>
#include<string>
#include<math.h>
  
using namespace std;
  
int main(){
 double a,b;
cin >> a >>b;

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


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

#include<iostream>
#include<string>
#include<math.h>
  
using namespace std;
  
int main(){
 double a,b;
cin >> a >> b;

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


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

import sys
a,b = map(int,sys.stdin.readline().split())
print(a*b,2*(a+b))


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'a' was not declared in this scope
    4 |  cin >> a b;
      |         ^
a.cc:5:12: error: 'b' was not declared in this scope
    5 |  cout << a*b 2(a+b) << endl;
      |            ^
Language: C++

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


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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'scanf' was not declared in this scope
    3 |     scanf("%d %d", &a, &b);
      |     ^~~~~
a.cc:4:5: error: 'printf' was not declared in this scope
    4 |     printf("%d %d", a * b, 2 * (a + 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() {
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:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     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:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     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:6:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     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>
#include <string>
using namespace std;

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'area' was not declared in this scope
    8 |   area=a*b;
      |   ^~~~
a.cc:9:3: error: 'perimeter' was not declared in this scope
    9 |   perimeter=(a+b)*2;
      |   ^~~~~~~~~
Language: C++

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

  scanf("%d %d", &x, &y);
 
  printf("%d %d\n",x*y,x+x+y+y);
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'y' was not declared in this scope
    6 |   scanf("%d %d", &x, &y);
      |                       ^
Language: C++

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

int func(int x,int y);
int func1(int x,int y);

int main()
{
	int x, y;
  scanf("%d%d",&x,&y );
  cout << func1(x,y) << " " <<func(x,y) << endl;
  return 0;
}

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

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




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

#include <iostream>

using namespace std;

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


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

#include<iostream>
using namespace std;

int main(void){

int a,b;

cin >> a >> b;

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

}


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

#include<iostream>
using namespace std;

int main(void){

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:8:38: error: expected ';' before 'return'
    8 | cout << a*b << " " << (a+b)*2 << endl
      |                                      ^
      |                                      ;
    9 | return 0;
      | ~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(void){

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:8:13: error: no match for 'operator&' (operand types are 'std::basic_ostream<char>' and 'const char [2]')
    8 | cout << a*b & " " & (a+b)*2 << endl;
      | ~~~~~~~~~~~ ^ ~~~
      |      |        |
      |      |        const char [2]
      |      std::basic_ostream<char>
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
                 from /usr/include/c++/14/string:68,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/cstddef:141:3: note: candidate: 'constexpr std::byte std::operator&(byte, byte)'
  141 |   operator&(byte __l, byte __r) noexcept
      |   ^~~~~~~~
/usr/include/c++/14/cstddef:141:18: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::byte'
  141 |   operator&(byte __l, byte __r) noexcept
      |             ~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:84:3: note: candidate: 'constexpr std::_Ios_Fmtflags std::operator&(_Ios_Fmtflags, _Ios_Fmtflags)'
   84 |   operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:84:27: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Fmtflags'
   84 |   operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) _GLIBCXX_NOTHROW
      |             ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:134:3: note: candidate: 'constexpr std::_Ios_Openmode std::operator&(_Ios_Openmode, _Ios_Openmode)'
  134 |   operator&(_Ios_Openmode __a, _Ios_Openmode __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:134:27: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Openmode'
  134 |   operator&(_Ios_Openmode __a, _Ios_Openmode __b) _GLIBCXX_NOTHROW
      |             ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:181:3: note: candidate: 'constexpr std::_Ios_Iostate std::operator&(_Ios_Iostate, _Ios_Iostate)'
  181 |   operator&(_Ios_Iostate __a, _Ios_Iostate __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:181:26: note:   no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Iostate'
  181 |   operator&(_Ios_Iostate __a, _Ios_Iostate __b) _GLIBCXX_NOTHROW
      |             ~~~~~~~~~~~~~^~~
a.cc:8:29: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 | cout << a*b & " " & (a+b)*2 << endl;
      |                     ~~~~~~~~^~~~~~~
Language: C++

#include<iostream>
using namespace;

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:2:16: error: expected identifier before ';' token
    2 | using namespace;
      |                ^
a.cc: In function 'int main()':
a.cc:8:9: 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:13:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         cout << S << " " << L << 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:13:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |         cout << S << " " << L << 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 "practice1.hpp"

#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:1:10: fatal error: practice1.hpp: No such file or directory
    1 | #include "practice1.hpp"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected initializer before '.' token
    6 |     int a.b;
      |          ^
a.cc:7:10: error: 'a' was not declared in this scope
    7 |     cin>>a>>b;
      |          ^
a.cc:7:13: 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+b)<<endl;
    return 0;
}


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

#include <iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before 'd'
    9 |     cout << c d << endl;
      |              ^~
      |              ;
Language: C++

#include<iostream>
using namespace std;

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

    return 0;
}


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

#include<iostream>
using namespace std;

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

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected primary-expression before ';' token
   10 |   cout << ;
      |           ^
Language: C++

#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <algorithm>

using namespace std;

int main(){

    int x, y;
    cin >> x >> y;

    cout << x*y << " " << 2x+2y << endl;


    return 0;
}



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

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

    printf("a,b?");
    scanf("%d %d", &a, &b);
    s = a * b;
    r = 2 * (a+b);
    printf("ab %d\n" , s);
    printf("2a+2b &a\n", s);

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'r' was not declared in this scope
    9 |     r = 2 * (a+b);
      |     ^
Language: C++

using namespace std;
int main(){
    double a,b;
    cin >> a >> b;
    cout << a*b << endl;
    }
    


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     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:5:5: error: 'cout' was not declared in this scope
    5 |     cout << a*b << endl;
      |     ^~~~
a.cc:5:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:20: error: 'endl' was not declared in this scope
    5 |     cout << 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<cstdio>

int main(){

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

   return 0

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before 's'
    7 |    l=a+a+b+b
      |             ^
      |             ;
    8 |    s=a*b
      |    ~         
a.cc:11:12: error: expected ';' before '}' token
   11 |    return 0
      |            ^
      |            ;
   12 | 
   13 | }
      | ~
Language: C++

#include<cstdio>
 
int main(){
 
   int l, s, a, b;
   scanf("%d %d", &a, &b);
   l=a+a+b+b
   s=a*b
   printf("%d %d", s, l);
 
   return 0
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before 's'
    7 |    l=a+a+b+b
      |             ^
      |             ;
    8 |    s=a*b
      |    ~         
a.cc:11:12: error: expected ';' before '}' token
   11 |    return 0
      |            ^
      |            ;
   12 | 
   13 | }
      | ~
Language: C++

#include<cstdio>
 
int main(){
 
   int l, s, a, b;
   scanf("%d %d",&a, &b);
   l=a+a+b+b;
   s=a*b;
   printf("%d %d", l, s);
 
   return 0
 
}


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

#include<cstdio>
 
int main(){
 
   int l, s, a, b;
   scanf("%d %d",&a, &b);
   l=a+a+b+b
   s=a*b
   printf("%d %d", l, s);
 
   return 0;
 
}


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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression at end of input
    7 |    cin >>
      |          ^
a.cc:7:10: error: expected '}' at end of input
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<iostream>using namespace std;int main(){cout << "1 4" <<end1;}


Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include<iostream>using namespace std;int main(){cout << "1 4" <<end1;}
      |                         ^~~~~~~~~
a.cc:1:9: fatal error: iostream>usin: No such file or directory
    1 | #include<iostream>using namespace std;int main(){cout << "1 4" <<end1;}
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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


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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before 'cout'
    7 |         cin >> x >> y
      |                      ^
      |                      ;
    8 |         cout << "x*y";
      |         ~~~~          
a.cc:10:28: error: 'end1' was not declared in this scope
   10 |         cout << "2x+2y" << end1;
      |                            ^~~~
Language: C++

#include<iostream>
using namespace std;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before 'cout'
    7 |         cin >> x >> y
      |                      ^
      |                      ;
    8 |         cout << "x*y" << "" << "2x+2y" << end1;
      |         ~~~~
Language: C++

int main()
{
	int height = 0, width = 0;
	
	scanf("%d %d", &height, &width);	
	printf("%d %d", height * width, 2 * (height + width));
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf' was not declared in this scope
    5 |         scanf("%d %d", &height, &width);
      |         ^~~~~
a.cc:6:9: error: 'printf' was not declared in this scope
    6 |         printf("%d %d", height * width, 2 * (height + width));
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
Language: C++

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



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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'str' was not declared in this scope; did you mean 'std'?
    4 |     str=' '
      |     ^~~
      |     std
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'str' was not declared in this scope; did you mean 'std'?
    4 |     str=' ';
      |     ^~~
      |     std
Language: C++

#include<stdio.h>
int main(){
    int a,b;
    str=' ';
    scanf("%d %d",&a,&b);
    printf("%d",a*b);

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'str' was not declared in this scope; did you mean 'std'?
    4 |     str=' ';
      |     ^~~
      |     std
Language: C++

#include<stdio.h>
#include<string>
int main(){
    int a,b;
    str=' ';
    scanf("%d %d",&a,&b);
    printf("%d",a*b);

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |     str=' ';
      |     ^~~
      |     std
Language: C++

#include<stdio.h>

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


Compiler output:
a.cc:3:6: error: variable or field 'main' declared void
    3 | void main{
      |      ^~~~
a.cc:4:5: error: expected primary-expression before 'int'
    4 |     int a,b;
      |     ^~~
a.cc:4:5: error: expected '}' before 'int'
a.cc:3:10: note: to match this '{'
    3 | void main{
      |          ^
a.cc:5:10: error: expected constructor, destructor, or type conversion before '(' token
    5 |     scanf(%d%d,&a,&b);
      |          ^
a.cc:6:11: error: expected constructor, destructor, or type conversion before '(' token
    6 |     printf("%d %d",a*b,2*(a+b));
      |           ^
a.cc:7:5: error: expected unqualified-id before 'return'
    7 |     return 0;
      |     ^~~~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include<stdio.h>

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

	return 0;
}


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

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


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

import java.util.Scanner;

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

        int a = sc.nextInt();
        int b = sc.nextInt();

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


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

#include <iostream>
#include <cstdio>

using namespace std;

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


Compiler output:
a.cc:10:24: error: empty character constant
   10 |         cout << a*b << '' << 2*(a+b)<< endl;
      |                        ^~
Language: C++

#include<iostream>
int main(){
  int w,h;
  std::cin>>w>>h;
  int s=w*h;
  int l=2+(w+h);

  std::cout<<s<<' '<<l;


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected '}' at end of input
    8 |   std::cout<<s<<' '<<l;
      |                        ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

#include<iostream>
int main(){
  int w,h;
  std::cin>>w>>h;
  int s=w*h;
  int l=2*(w+h);
 
  std::cout<<s<<' '<<l<<\n;
  return 0;
}


Compiler output:
a.cc:8:25: error: stray '\' in program
    8 |   std::cout<<s<<' '<<l<<\n;
      |                         ^
a.cc: In function 'int main()':
a.cc:8:26: error: 'n' was not declared in this scope
    8 |   std::cout<<s<<' '<<l<<\n;
      |                          ^
Language: C++

#include <iostream>
 int main() {
 
  int a;
  int b;
    cin >> a >> b;
  int c = a*b;
  int d = 2*a+2*b;
    cout << c d << endl;

return 0;


}
      


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

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

return 0;


}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: 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:9:19: error: expected ';' before 'd'
    9 |     std::cout << c d << std::endl;
      |                   ^~
      |                   ;