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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: too few arguments to function 'int putc(int, FILE*)'
   13 |   putc(ans1);
      |   ~~~~^~~~~~
In file included from a.cc:1:
/usr/include/stdio.h:612:12: note: declared here
  612 | extern int putc (int __c, FILE *__stream) __nonnull ((2));
      |            ^~~~
a.cc:14:8: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   14 |   putc(" ");
      |        ^~~
      |        |
      |        const char*
a.cc:14:7: error: too few arguments to function 'int putc(int, FILE*)'
   14 |   putc(" ");
      |   ~~~~^~~~~
/usr/include/stdio.h:612:12: note: declared here
  612 | extern int putc (int __c, FILE *__stream) __nonnull ((2));
      |            ^~~~
a.cc:15:7: error: too few arguments to function 'int putc(int, FILE*)'
   15 |   putc(ans2);
      |   ~~~~^~~~~~
/usr/include/stdio.h:612:12: note: declared here
  612 | extern int putc (int __c, FILE *__stream) __nonnull ((2));
      |            ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   14 |   putchar(" ");
      |           ^~~
      |           |
      |           const char*
In file included from a.cc:1:
/usr/include/stdio.h:618:25: note:   initializing argument 1 of 'int putchar(int)'
  618 | extern int putchar (int __c);
      |                     ~~~~^~~
Language: C++

#include <iostream>]
using namespace std;

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

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>]
      |                    ^
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:12: error: expected ';' before numeric constant
    7 | cout << a*b 2*(a+b) << endl;
      |            ^~
      |            ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: request for member 'd' in 'c', which is of non-class type 'int'
    8 |    cout << c.d << endl;
      |              ^
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:11: error: unable to find numeric literal operator 'operator""a'
    8 | cout<<a*b,2a*2b<<endl;
      |           ^~
a.cc:8:14: error: unable to find numeric literal operator 'operator""b'
    8 | cout<<a*b,2a*2b<<endl;
      |              ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |    cout << c,d << endl;
      |              ~~^~~~~~~
Language: C++

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

int a,b,c;
cin>>a,b;

c=(a*b,2*a+2b);
cout<<c<<endl;

return 0;
}

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

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

int a,b,c;
cin>>a,b;

c=(a*b,2*a+2b);
cout<< c <<endl;

return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |    cout << c,d <<endl;
      |              ~~^~~~~~
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:27: error: unable to find numeric literal operator 'operator""a'
    8 | cout << a * b  << " " <<  2a * 2b  << endl;
      |                           ^~
a.cc:8:32: error: unable to find numeric literal operator 'operator""b'
    8 | cout << a * b  << " " <<  2a * 2b  << endl;
      |                                ^~
Language: C++

#include<iostream>
using namespace std;

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:35: error: unable to find numeric literal operator 'operator""b'
    8 | cout << a * b  << " " <<  2 * a + 2b  << endl;
      |                                   ^~
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:27: error: unable to find numeric literal operator 'operator""a'
    8 | cout << a * b  << " " <<  2a + 2b  << endl;
      |                           ^~
a.cc:8:32: error: unable to find numeric literal operator 'operator""b'
    8 | cout << a * b  << " " <<  2a + 2b  << endl;
      |                                ^~
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:25: error: unable to find numeric literal operator 'operator""a'
    8 | cout << a*b  << " " <<  2a + 2b  << endl;
      |                         ^~
a.cc:8:30: error: unable to find numeric literal operator 'operator""b'
    8 | cout << a*b  << " " <<  2a + 2b  << endl;
      |                              ^~
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:6:18: error: expression cannot be used as a function
    6 | 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)<<"\0"

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expression cannot be used as a function
    7 | cout<<a*b<<" "<<2(a+b)<<"\0"
      |                 ~^~~~~
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:7:18: error: expression cannot be used as a function
    7 |  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:6:20: error: expression cannot be used as a function
    6 | cout<<a*b<<"???"<<2(a+b)<<"\n";
      |                   ~^~~~~
Language: C++

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

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

return 0;
}

Compiler output:
a.cc:3:1: error: 'inc' does not name a type; did you mean 'int'?
    3 | inc main(){
      | ^~~
      | int
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:7:18: error: expression cannot be used as a function
    7 | 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:7:18: error: expression cannot be used as a function
    7 | 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:6:18: error: expression cannot be used as a function
    6 | 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:5:6: error: expected initializer before '.' token
    5 | int a.b;
      |      ^
a.cc:6:6: error: 'a' was not declared in this scope
    6 | cin>>a>>b;
      |      ^
a.cc:6:9: error: 'b' was not declared in this scope
    6 | cin>>a>>b;
      |         ^
a.cc:7:22: error: expression cannot be used as a function
    7 | 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:6:18: error: expression cannot be used as a function
    6 | cout<<a*b<<" "<<2(a+b)<<"/n";
      |                 ~^~~~~
Language: C++

public class Main{
    public static void main(String[] args){
        int a = 3;
        int b = 5;
        System.out.println(a * b);
        System.out.println((a + b) * 2);
    }
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'public'
    1 | public class Main{
      | ^~~~~~
Language: C++

print ' '.join(map(str, ([a*b if i == 0 else 2*a+2*b  for i, a, b in [(i,) + a for i, a in enumerate((zip(*[[int(i),int(i)] for i in raw_input().split()])))]])))

Compiler output:
a.cc:1:1: error: 'print' does not name a type; did you mean 'int'?
    1 | print ' '.join(map(str, ([a*b if i == 0 else 2*a+2*b  for i, a, b in [(i,) + a for i, a in enumerate((zip(*[[int(i),int(i)] for i in raw_input().split()])))]])))
      | ^~~~~
      | int
Language: C++

a = gets.to_i
b = gets.to_i

len = (a + b) * 2
area = a * b

puts #{len},#{area}

Compiler output:
a.cc:7:6: error: stray '#' in program
    7 | puts #{len},#{area}
      |      ^
a.cc:7:13: error: stray '#' in program
    7 | puts #{len},#{area}
      |             ^
a.cc:1:1: error: 'a' does not name a type
    1 | a = gets.to_i
      | ^
a.cc:7:12: error: expected unqualified-id before ',' token
    7 | puts #{len},#{area}
      |            ^
a.cc:7:14: error: expected unqualified-id before '{' token
    7 | puts #{len},#{area}
      |              ^
Language: C++

#include<iostream>
using namespsce std;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespsce'
    2 | using namespsce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: 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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << (a * b) << " " << (a + b) * 2 << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:46: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout << (a * b) << " " << (a + b) * 2 << endl;
      |                                              ^~~~
      |                                              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:7:10: warning: trigraph ??> ignored, use -trigraphs to enable [-Wtrigraphs]
    7 | cin >> a???>> b;
a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression before '?' token
    7 | cin >> a???>> b;
      |          ^
a.cc:7:11: error: expected primary-expression before '?' token
    7 | cin >> a???>> b;
      |           ^
a.cc:7:12: error: expected primary-expression before '>>' token
    7 | cin >> a???>> b;
      |            ^~
a.cc:7:16: error: expected ':' before ';' token
    7 | cin >> a???>> b;
      |                ^
      |                :
a.cc:7:16: error: expected primary-expression before ';' token
a.cc:7:16: error: expected ':' before ';' token
    7 | cin >> a???>> b;
      |                ^
      |                :
a.cc:7:16: error: expected primary-expression before ';' token
a.cc:7:16: error: expected ':' before ';' token
    7 | cin >> a???>> b;
      |                ^
      |                :
a.cc:7:16: error: expected primary-expression before ';' token
Language: C++

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

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

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

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:32: error: expected ';' before 'return'
    8 | printf("%d %d",a*b,(a*a)+(b*b))
      |                                ^
      |                                ;
    9 | 
   10 | return 0;
      | ~~~~~~
Language: C++

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

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

printf("%d %d",);

return 0;
}

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   cout << c,d << endl;
      |             ~~^~~~~~~
Language: C++

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

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

#inclide <cstdio>

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    7 | scanf("%d %d",&x &y);
      |               ~~ ^~
      |               |   |
      |               |   int
      |               int*
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    7 | scanf("%d %d",&x &y);
      |               ~~ ^~
      |               |   |
      |               |   int
      |               int*
a.cc:9:23: error: expected ')' before 'x'
    9 | printf("%d %d",2*(x+y) x*y);
      |       ~               ^~
      |                       )
Language: C++

include <iostream>

int main(){

  int x, y;

  std::cin >> y >> x;
  std::cout << x*y << " " << x*2 + y*2 << std::endl;

  return 0;
}

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

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

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

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

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++


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

	}
}

Compiler output:
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#include<isostream>
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:9: fatal error: isostream: No such file or directory
    1 | #include<isostream>
      |         ^~~~~~~~~~~
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:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> a >> b;
      |         ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << (a + b)*2 << " " << a*b << endl;
      |         ^~~~
a.cc:7:44: error: 'endl' was not declared in this scope
    7 |         cout << (a + b)*2 << " " << a*b << endl;
      |                                            ^~~~
Language: C++

#include<iostream>
using namespace std;

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

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

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

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

#include<isostream>
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:9: fatal error: isostream: No such file or directory
    1 | #include<isostream>
      |         ^~~~~~~~~~~
compilation terminated.
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:15: error: unable to find numeric literal operator 'operator""a'
    8 |   cout <<a*b ,2a+2b << endl;
      |               ^~
a.cc:8:18: error: unable to find numeric literal operator 'operator""b'
    8 |   cout <<a*b ,2a+2b << endl;
      |                  ^~
Language: C++

import java.util.*;

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

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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nameplace'
    2 | using nameplace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: 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:1: 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:12: 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>
using namespace std;
int main(){
int a,b;
cin>>a b;
cout<<a*b<<endl;
}

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

#include<iostream>
using namespace std;

int Square(int a, int b)
{
return a*b;
}

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

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

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

#include<iostream>
using namespace std;

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

int Length(int x, iny y)
{
return 2*(x+y)
}

int main()
{
int x;
int y;

cin>>x>>y;
cout<<Square(x,y)<<Length(x,y)<<endl;
return 0;
}

Compiler output:
a.cc:9:19: error: 'iny' has not been declared
    9 | int Length(int x, iny y)
      |                   ^~~
a.cc: In function 'int Length(int, int)':
a.cc:11:15: error: expected ';' before '}' token
   11 | return 2*(x+y)
      |               ^
      |               ;
   12 | }
      | ~
Language: C++

#include <iostream>

int main()
{

int x,y,s,t;
std::cin >> x >> y;
s=x*y
t=2x+2y

std::cout << s << " " << t << std::endl;;

return 0;
}

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

#include <iostream>

int main()
{

int x, y, s, t;
std::cin >> x >> y;
s=x*y
t=2x+2y

std::cout << s << " " << t << std::endl;;

return 0;
}

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

#include <iostream>

int main()
{
int x;
int y;
int s;
int t;

std::cin >> x >> y;

s=x*y
t=2x+2y

std::cout << s << " " << t << std::endl;;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: expected ';' before 't'
   12 | s=x*y
      |      ^
      |      ;
   13 | t=2x+2y
      | ~
Language: C++

#include <iostream>

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

s=a*b
t=2a+2b

std::cout << s << " " << t << std::endl;;

return 0;
}

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

#include <iostream>

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

s=a*b
t=2a+2b

std::cout << s << " " << t << std::endl;;

return 0;
}

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

#include <iostream>

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

s=a*b
t=2a+2b

std::cout << s << " " << t << std::endl;;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'int'
    6 | int s, t;
      | ^~~
a.cc:7:18: error: 'b' was not declared in this scope
    7 | std::cin >> a >> b;
      |                  ^
a.cc:9:1: error: 's' was not declared in this scope
    9 | s=a*b
      | ^
Language: C++

#include <iostream>

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

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

std::cout << s << " " << t << std::endl;;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'int'
    6 | int s, t;
      | ^~~
a.cc:7:18: error: 'b' was not declared in this scope
    7 | std::cin >> a >> b;
      |                  ^
a.cc:9:1: error: 's' was not declared in this scope
    9 | s=a*b;
      | ^
a.cc:10:1: error: 't' was not declared in this scope
   10 | t=2a+2b;
      | ^
a.cc:10:3: error: unable to find numeric literal operator 'operator""a'
   10 | t=2a+2b;
      |   ^~
a.cc:10:6: error: unable to find numeric literal operator 'operator""b'
   10 | t=2a+2b;
      |      ^~
Language: C++

#include <iostream>

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

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

std::cout << s << " " << t << std::endl;;

return 0;
}

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

#include <iostream>

int main()
{
int a, b;
int s, t;

std::cin >> a >> b;

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

std::cout << s << " " << t << std::endl;

return 0;
}

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

#include <iostream>

int main(){
int a, b;
int s, t;

std::cin >> a >> b;

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

std::cout << s << " " << t << std::endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: unable to find numeric literal operator 'operator""a'
   10 | t=2a+2b;
      |   ^~
a.cc:10:6: error: unable to find numeric literal operator 'operator""b'
   10 | t=2a+2b;
      |      ^~
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:9:8: error: expected ';' before 'b'
    9 |  cin>>a b;
      |        ^~
      |        ;
Language: C++

#include<iostream>
using namespace std;

int main() {
  int a;
  int b;
  cin >> a >> b;
  sacnf("%d %d", &a, &b);
}

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

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

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

  cout << area << " " << length << 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:9:3: error: 'area' was not declared in this scope
    9 |   area = a * b;
      |   ^~~~
a.cc:10:3: error: 'length' was not declared in this scope
   10 |   length = 2*(a + b);
      |   ^~~~~~
Language: C++

#include<iostrem>
#include<sring>
int main(){
int a,b;
cin >>a>>b;
coout <<2a+2b<<a*b<<endl;
return 0;
}

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

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

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

#include<iostream>
#include<sring>
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:2:9: fatal error: sring: No such file or directory
    2 | #include<sring>
      |         ^~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<string>
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 primary-expression before '>>' token
    6 | cin>>a>> >>b;
      |          ^~
a.cc:7:13: error: expected primary-expression before '<<' token
    7 | cout<<a*b<< <<2*(a+b)<<endl;
      |             ^~
Language: C++

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

Compiler output:
a.cc:2:1: error: 'usng' does not name a type
    2 | usng namespace std;
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |         cout<<a*b<<" "<<2*a+2*b<<endl;
      |         ^~~~
      |         std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |         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++

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

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

#include <iostrem>

using namespace std;

int main(){

int x;
int y; 

cin >> x;
cin >> y;

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

}

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

#include <iostraem>

using namespace std;

int main(){

int x;
int y; 

cin >> x;
cin >> y;

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

}

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

#include <iostream>

using namespace std;

int main(){

int x;
int y; 

cin >> x;
cin >> y;

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

}

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

import java.io.*;
public class Main {
	public static void main (String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String side[] = line.split(" ");
		int x = Integer.parseInt(side[0]);
		int y = Integer.parseInt(side[1]);	
		int area = x * y;
		int cir  = 2 * (x + y); 
		System.out.println(area + " " +cir);
	}
}

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

#include<stdio.h>

int main(void){
  
  int height;
  int width;
  int area, circumference;
//  printf("??????:");
  scanf("%d %d", &height, %width);
//  printf("?¨????:");
//  print(" ");
//  scanf("%d", &width);

  area = height*width;
  circumference = 2*(height+width);

  printf("%d %d", area, circumference);

  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected ')' before numeric constant
    6 | printf("%d %d" 2*a*b a*b);
      |       ~       ^~
      |               )
a.cc:7:1: error: 'return0' was not declared in this scope
    7 | return0;
      | ^~~~~~~
a.cc: At global scope:
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

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

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

#include <iosteram>
using namespace std;

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

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

#include<studio.h>

int main(void){
      int a,b,c,d;

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

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

      return 0;
}

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

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
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(){
scanf("%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: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(){
scanf("%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:4:15: error: 'a' was not declared in this scope
    4 | scanf("%d%d",&a,&b);
      |               ^
a.cc:4:18: error: 'b' was not declared in this scope
    4 | scanf("%d%d",&a,&b);
      |                  ^
Language: C++

#include<stdio.h>

int main(void){
scanf("%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:4:15: error: 'a' was not declared in this scope
    4 | scanf("%d%d",&a,&b);
      |               ^
a.cc:4:18: error: 'b' was not declared in this scope
    4 | scanf("%d%d",&a,&b);
      |                  ^
Language: C++

#include<stdio.h>

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

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

#include<stdio.h>

int main(){

int a,b;

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    7 | scanf("%d%d",&a&b);
      |              ~~^~
      |              |  |
      |              |  int
      |              int*
Language: C++

#include<stdio.h>

int main(){

int a,b;

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


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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    7 | scanf("%d%d",&a&b);
      |              ~~^~
      |              |  |
      |              |  int
      |              int*
Language: C++

#include<stdio.h>

int main(){

int a,b;

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    7 | scanf("%d%d",&a&b);
      |              ~~^~
      |              |  |
      |              |  int
      |              int*
Language: C++

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

Compiler output:
a.cc:3:1: error: expected initializer before 'int'
    3 | int a,b;
      | ^~~
a.cc:4:7: error: expected constructor, destructor, or type conversion before '(' token
    4 | printf("%d\n",a*b);
      |       ^
a.cc:5:1: error: expected unqualified-id before 'return'
    5 | return 0;}
      | ^~~~~~
a.cc:5:10: error: expected declaration before '}' token
    5 | return 0;}
      |          ^
Language: C++

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

Compiler output:
a.cc:3:1: error: expected initializer before 'int'
    3 | int a,b;
      | ^~~
a.cc:4:7: error: expected constructor, destructor, or type conversion before '(' token
    4 | printf("%d\n",a*a+b*b);
      |       ^
a.cc:5:1: error: expected unqualified-id before 'return'
    5 | return 0;}
      | ^~~~~~
a.cc:5:10: error: expected declaration before '}' token
    5 | return 0;}
      |          ^
Language: C++

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

Compiler output:
a.cc:3:1: error: expected initializer before 'int'
    3 | int a,b;
      | ^~~
a.cc:4:7: error: expected constructor, destructor, or type conversion before '(' token
    4 | printf("%d\n",a*2+b*2);
      |       ^
a.cc:5:1: error: expected unqualified-id before 'return'
    5 | return 0;}
      | ^~~~~~
a.cc:5:10: error: expected declaration before '}' token
    5 | return 0;}
      |          ^
Language: C++

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

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

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

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:1: error: 'inta' was not declared in this scope; did you mean 'int'?
    3 | inta,b,y;
      | ^~~~
      | int
a.cc:3:6: error: 'b' was not declared in this scope
    3 | inta,b,y;
      |      ^
a.cc:3:8: error: 'y' was not declared in this scope
    3 | inta,b,y;
      |        ^
a.cc:5:16: error: 'a' was not declared in this scope
    5 | scanf("%d %d",&a &b);
      |                ^
a.cc:6:17: error: expected ')' before 'a'
    6 | printf("%d %d\n" a*b,2*a+2*b);
      |       ~         ^~
      |                 )
a.cc:8:9: error: expected ';' before '}' token
    8 | return 0
      |         ^
      |         ;
    9 | }
      | ~
Language: C++

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

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 y;
      |       ^
a.cc:5:16: error: 'a' was not declared in this scope
    5 | scanf("%d %d",&a &b);
      |                ^
a.cc:5:19: error: 'b' was not declared in this scope
    5 | scanf("%d %d",&a &b);
      |                   ^
a.cc:6:17: error: expected ')' before 'a'
    6 | printf("%d %d\n" a*b,2*a+2*b);
      |       ~         ^~
      |                 )
a.cc:8:9: error: expected ';' before '}' token
    8 | return 0
      |         ^
      |         ;
    9 | }
      | ~
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);
      |        ^