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

#include<iostream>
using namespace std;

int main(){

int a,b;

cin >> a >> b;

cout << a*b a+b endl;

return0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before 'a'
   10 | cout << a*b a+b endl;
      |            ^~
      |            ;
a.cc:12:1: error: 'return0' was not declared in this scope
   12 | return0;
      | ^~~~~~~
Language: C++

#include<iostream>
using namespace std;

 int main(){

 int a,b;

 cin >> a >> b;

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

 return0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected ';' before numeric constant
   10 |  cout << a*b 2*(a+b) endl;
      |             ^~
      |             ;
a.cc:12:2: error: 'return0' was not declared in this scope
   12 |  return0;
      |  ^~~~~~~
Language: C++

#include<iostream>
using namespace std;

 int main(){

 int a,b;

 cin >> a >> b;

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

 return0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected ';' before 'endl'
   10 |  cout << a*b << 2*(a+b) endl;
      |                        ^~~~~
      |                        ;
a.cc:12:2: error: 'return0' was not declared in this scope
   12 |  return0;
      |  ^~~~~~~
Language: C++

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

  cin >> a b;   l=2*(a+b); m=a*b;

  cout << l m << endl; 

  return 0;		 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'b'
    7 |   cin >> a b;   l=2*(a+b); m=a*b;
      |           ^~
      |           ;
a.cc:7:17: error: 'l' was not declared in this scope
    7 |   cin >> a b;   l=2*(a+b); m=a*b;
      |                 ^
a.cc:7:28: error: 'm' was not declared in this scope
    7 |   cin >> a b;   l=2*(a+b); m=a*b;
      |                            ^
Language: C++

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

  cin >> a b;   l=2*(a+b); m=a*b;

  cout << m l << endl; 

  return 0;		 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'b'
    7 |   cin >> a b;   l=2*(a+b); m=a*b;
      |           ^~
      |           ;
a.cc:7:17: error: 'l' was not declared in this scope
    7 |   cin >> a b;   l=2*(a+b); m=a*b;
      |                 ^
a.cc:7:28: error: 'm' was not declared in this scope
    7 |   cin >> a b;   l=2*(a+b); m=a*b;
      |                            ^
Language: C++

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

  cin >> a, b;   l=2*(a+b); m=a*b;

  cout << m, l << endl; 

  return 0;		 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'l' was not declared in this scope
    7 |   cin >> a, b;   l=2*(a+b); m=a*b;
      |                  ^
a.cc:7:29: error: 'm' was not declared in this scope
    7 |   cin >> a, b;   l=2*(a+b); m=a*b;
      |                             ^
Language: C++

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

  cin >> a >> b;   l=2*(a+b); m=a*b;

  cout << m << l << endl; 

  return 0;		 
}


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

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

  cin >> a >> b;   l=2*(a+b); m=a*b;

  cout << l << m  << endl; 

  return 0;		 
}


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

#include<iostream>
using namespace std;

int main(){

 int a,b;

 cin >> a >> b //;

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

 return0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before 'cout'
    8 |  cin >> a >> b //;
      |               ^
      |               ;
    9 | 
   10 |  cout << a*b << 2*(a+b) endl;
      |  ~~~~          
a.cc:12:2: error: 'return0' was not declared in this scope
   12 |  return0;
      |  ^~~~~~~
Language: C++

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





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

#include<iostream>
using namespace std;

int main(){

 int a,b;

 cin >> a >> b //;

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

 return0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before 'cout'
    8 |  cin >> a >> b //;
      |               ^
      |               ;
    9 | 
   10 |  cout << a*b << 2*(a+b);
      |  ~~~~          
a.cc:12:2: error: 'return0' was not declared in this scope
   12 |  return0;
      |  ^~~~~~~
Language: C++

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

}





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

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

  cin >>a b;   

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

  return 0;		 
}


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

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

  cin >>a>>b;   

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

  return 0;		 
}


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

#include<stdio.h>

int main(){

 int a,b;

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

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

 return0;

}


Compiler output:
a.cc:9:9: warning: missing terminating " character
    9 |  printf("%d\n,a*b,a+b);
      |         ^
a.cc:9:9: error: missing terminating " character
    9 |  printf("%d\n,a*b,a+b);
      |         ^~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:19: error: expected primary-expression before '%' token
    7 |  scanf("%d %d",&a,%b);
      |                   ^
a.cc:11:2: error: 'return0' was not declared in this scope
   11 |  return0;
      |  ^~~~~~~
Language: C++

#include<stdio.h>

int main()

{

 int a,b;

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

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

 return0;

}


Compiler output:
a.cc:11:9: warning: missing terminating " character
   11 |  printf("%d * %d = %d \n,a*b,a+b);
      |         ^
a.cc:11:9: error: missing terminating " character
   11 |  printf("%d * %d = %d \n,a*b,a+b);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:19: error: expected primary-expression before '%' token
    9 |  scanf("%d %d",&a,%b);
      |                   ^
a.cc:13:2: error: 'return0' was not declared in this scope
   13 |  return0;
      |  ^~~~~~~
Language: C++

#include<stdio.h>

int main()

{

 int a,b;

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

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

 return0;

}


Compiler output:
a.cc:11:9: warning: missing terminating " character
   11 |  printf("%d\n,a*b,2*(a+b));
      |         ^
a.cc:11:9: error: missing terminating " character
   11 |  printf("%d\n,a*b,2*(a+b));
      |         ^~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:19: error: expected primary-expression before '%' token
    9 |  scanf("%d %d",&a,%b);
      |                   ^
a.cc:13:2: error: 'return0' was not declared in this scope
   13 |  return0;
      |  ^~~~~~~
Language: C++

#include<stdio.h>

int main(){
 int a, b;

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

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

 return0;

}


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

#include <stdio.h>

int main()
{
 int a, b;

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

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

 return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected primary-expression before '%' token
    9 |  scanf("%d",%b);
      |             ^
a.cc:11:9: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
   11 |  printf("%d\n"a*b 2*(a+b));
      |         ^~~~~~~
Language: C++

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



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

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



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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ')' before numeric constant
    6 | printf("%d",a+b 2*(a+b));
      |       ~        ^~
      |                )
Language: C++

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



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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:5:26: error: unable to find numeric literal operator 'operator""a'
    5 |     printf("%d %d\n",a*b,2a+2b);
      |                          ^~
a.cc:5:29: error: unable to find numeric literal operator 'operator""b'
    5 |     printf("%d %d\n",a*b,2a+2b);
      |                             ^~
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:5:12: error: 'a' was not declared in this scope
    5 |     cin >> a >> b;
      |            ^
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(){
    int a,b;
    cin>>a;
    cout<<' ';
    cin>>b;
    cout<<a*b
    cout<<' ';
    cout<<2*(a+b);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before 'cout'
    9 |     cout<<a*b
      |              ^
      |              ;
   10 |     cout<<' ';
      |     ~~~~
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:6:1: error: extended character 　 is not valid in an identifier
    6 | 　　cin >> a >> b;
      | ^
a.cc:6:1: error: extended character 　 is not valid in an identifier
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　　cout << a * b << " " << 2 * a + 2 * b endl;
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:6:1: error: '\U00003000\U00003000cin' was not declared in this scope
    6 | 　　cin >> a >> b;
      | ^~~~~~~
a.cc:7:1: error: '\U00003000\U00003000cout' was not declared in this scope
    7 | 　　cout << a * b << " " << 2 * a + 2 * b endl;
      | ^~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
    7 |     cin>>a,b;
      |     ^~~
a.cc:8:13: error: 'b' was not declared in this scope
    8 |     cout<<a*b<<endl;
      |             ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
    7 |     cin>>a,b;
      |     ^~~
a.cc:8:13: error: 'b' was not declared in this scope
    8 |     cout<<a*b<<endl;
      |             ^
Language: C++

#include<iostream>
#include<string>
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:7:5: error: expected initializer before 'cin'
    7 |     cin>>a,b;
      |     ^~~
a.cc:8:13: error: 'b' was not declared in this scope
    8 |     cout<<a*b<<endl
      |             ^
Language: C++

#include<iostream>
#include<string>
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:7:5: error: expected initializer before 'cin'
    7 |     cin>>a,b;
      |     ^~~
a.cc:8:13: error: 'b' was not declared in this scope
    8 |     cout<<a*b<<endl;
      |             ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
    7 |     cin>>a>>b;
      |     ^~~
a.cc:8:13: error: 'b' was not declared in this scope
    8 |     cout<<a*b<<endl;
      |             ^
Language: C++

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


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

#include <iostream>
using namespace std;

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

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

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

#include <iostream>

using namespace std;
int cube(int v, int h);


int main(int argc, char *argv[]){
  int v, h,sq,rim;
  std::cin >> v;
  std::cin >> h;
  sq = cube(int v ,int h);
  auto lmd = [v, h](int v, int h) -> {return (2*v,2*h)};
  rim = lmd(v, h);
  cout << sq << " " << rim << endl
    return 0;
}
int cube(int v, int h){
  i = v * h;
  return i;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:11:13: error: expected primary-expression before 'int'
   11 |   sq = cube(int v ,int h);
      |             ^~~
a.cc:11:20: error: expected primary-expression before 'int'
   11 |   sq = cube(int v ,int h);
      |                    ^~~
a.cc:12:38: error: expected type-specifier before '{' token
   12 |   auto lmd = [v, h](int v, int h) -> {return (2*v,2*h)};
      |                                      ^
a.cc:14:35: error: expected ';' before 'return'
   14 |   cout << sq << " " << rim << endl
      |                                   ^
      |                                   ;
   15 |     return 0;
      |     ~~~~~~                         
a.cc: In function 'int cube(int, int)':
a.cc:18:3: error: 'i' was not declared in this scope
   18 |   i = v * h;
      |   ^
Language: C++

#include <iostream>

using namespace std;
int cube(int v, int h);


int main(int argc, char *argv[]){
  int i, v, h,sq,rim;
  cin >> v;
  cin >> h;
  sq = cube(v,h);
  auto lmd = [v, h](int v, int h) -> {return (2*v,2*h)};
  rim = lmd(v, h);
  cout << sq << " " << rim << endl;
    return 0;
}
int cube(int v, int h){
  int i = v * h;
  return i;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:12:38: error: expected type-specifier before '{' token
   12 |   auto lmd = [v, h](int v, int h) -> {return (2*v,2*h)};
      |                                      ^
Language: C++

#include <iostream>

using namespace std;
int cube(int v, int h);


int main(int argc, char *argv[]){
  int i, v, h,sq,rim,lmd;
  cin >> v;
  cin >> h;
  sq = cube(v,h);
  lmd = [v, h](int v, int h) -> {return (2*v,2*h);};
  rim = lmd(v, h);
  cout << sq << " " << rim << endl;
    return 0;
}
int cube(int v, int h){
  int i = v * h;
  return i;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:12:33: error: expected type-specifier before '{' token
   12 |   lmd = [v, h](int v, int h) -> {return (2*v,2*h);};
      |                                 ^
a.cc:13:12: error: 'lmd' cannot be used as a function
   13 |   rim = lmd(v, h);
      |         ~~~^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a, b;
	cin >> a >> b;
	int rect = a * b;
	int circuit = 2 * (a + b)
	cout << rect << " " << circuit << "\n";

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ',' or ';' before 'cout'
   10 |         cout << rect << " " << circuit << "\n";
      |         ^~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'xy' was not declared in this scope; did you mean 'y'?
    7 |     cout << xy << ", " << 2(x+y) << endl;
      |             ^~
      |             y
a.cc:7:28: error: expression cannot be used as a function
    7 |     cout << xy << ", " << 2(x+y) << endl;
      |                           ~^~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int x,y;
  int s,n;

  cin >> x >> y;

  s=x*y;
  a=2*(x+y);

  cout << s << a <<endl;

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'a' was not declared in this scope
   11 |   a=2*(x+y);
      |   ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int x,y;
  int s,n;

  cin >> x >> y;

  s=x*y;
  a=2*(x+y);

  cout << s << << a << endl;

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'a' was not declared in this scope
   11 |   a=2*(x+y);
      |   ^
a.cc:13:16: error: expected primary-expression before '<<' token
   13 |   cout << s << << a << endl;
      |                ^~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int x,y;
  int s,n;

  cin >> x >> y;

  s=x*y;
  a=2*(x+y);

  cout << s << a << endl;

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'a' was not declared in this scope
   11 |   a=2*(x+y);
      |   ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int x,y;
  int s,n;

  cin >> x >> y;

  s=x*y;
  a=2*(x+y);

  cout<<s<<a<<endl;

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'a' was not declared in this scope
   11 |   a=2*(x+y);
      |   ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int x,y;
  int s,n;

  cin >> x >> y;

  s=x*y;
  a=2*(x+y);

  cout << s <<" "<< a << endl;

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'a' was not declared in this scope
   11 |   a=2*(x+y);
      |   ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
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:8:10: error: expected '}' at end of input
    8 | return 0;
      |          ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin >> a >> b;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlude <iostream>
a.cc:7:1: error: 'cout' was not declared in this scope
    7 | cout << a*b << 2*(a+b) << "\n";
      | ^~~~
a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected ';' before '}' token
    6 | cout << a*b << 2*(a+b)
      |                       ^
      |                       ;
    7 | }
      | ~
Language: C++

#include <iostream>
using namespace std;

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

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin >> a >> b;
      | ^~~
a.cc:6:1: error: 'cout' was not declared in this scope
    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";
}

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

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

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

#include <iostream>
#include <cstdio>

int main() {
	int a,b;

	scanf_s("%d %d", &a, &b);
	std::cout << a*b << " " << (2*a+2*b) << std::endl;

	return 0;
}

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

#include <iostream>
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:7:15: error: expected ';' before 'b'
    7 |         cin>>a b;
      |               ^~
      |               ;
a.cc:8:26: error: unable to find numeric literal operator 'operator""a'
    8 |         cout <<a*b<<' '<<2a+2b<<endl;
      |                          ^~
a.cc:8:29: 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;
	int round = 2a+2b;
	cout <<a*b <<' ' <<round <<endl;
	
	return 0;
}

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

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

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

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

int main(void)
{
 int x, y;
 int sum, len;

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

 sum = x*y;

 len = 2*(x+y);

 printf("%d %d\n", sum, len);

}

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

#include <iostream>

int main(void)
{
 int x, y;

 cin >> x >> y;

 cout << x*y << 2*(x+y);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |  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:9:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |  cout << x*y << 2*(x+y);
      |  ^~~~
      |  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.h>
using namespace std;
 
int main(void)
{
 int x, y;
 
 cin >> x >> y;
 
 cout << x*y << 2*(x+Y);
 
 return 0;
}

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

#include <iostraem>
using namespace std;

int main () {

 int x,y;

 cin >> x >> y ;
 cout << x*y <<' '<< 2*x+2*y<<endl;

 return 0;
}

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

#include <iostream>

using namespace std;


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

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

#include <stdio.h>
 
int main()
{
    int a = 0, b=0;
    int menn = 0, shuu=0;
    scanf("%d", &a);
    scanf("%d", &b);

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    4 | scanf_s("%d %d",&a,&b);
      | ^~~~~~~
      | scanf
a.cc:6:14: error: expected ';' before 'printf'
    6 | d=(2*a)+(2*b)
      |              ^
      |              ;
    7 | printf("%d %d",c,d);
      | ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:7: error: expected ')' before 'b'
    4 | gets(a b);
      |     ~ ^~
      |       )
a.cc:4:1: error: 'gets' was not declared in this scope; did you mean 'getw'?
    4 | gets(a b);
      | ^~~~
      | getw
a.cc:6:14: error: expected ';' before 'printf'
    6 | d=(2*a)+(2*b)
      |              ^
      |              ;
    7 | printf("%d %d",c,d);
      | ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected ';' before 'printf'
    6 | d=(2*a)+(2*b)
      |              ^
      |              ;
    7 | printf("%d %d",a,b);
      | ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected ';' before 'printf'
    6 | d=(2*a)+(2*b)
      |              ^
      |              ;
    7 | printf("%d %d",c,d);
      | ~~~~~~
Language: C++

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

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

#include <iostream>

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: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 << 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:6:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     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 << " " << 2a+2b << endl;
}

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

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

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

include <stdio.h>

main (){
  scanf("%d %d", &a, &b);
  int round = a * a + b * b;
  int square = a * b;
  printf("%d %d", a, b);
}

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

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

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

	getchar();
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expression cannot be used as a function
   12 |         d = 2(a+b);
      |             ~^~~~~
Language: C++

#include<stdio.h>

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'scanf' was not declared in this scope
    3 | scanf("%d %d",&a,&b);
      | ^~~~~
a.cc:6:1: error: 'printf' was not declared in this scope
    6 | printf("%d %d"),x,y;
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:8:1: error: expected primary-expression before ')' token
    8 | )
      | ^
a.cc:8:2: error: expected '}' at end of input
    8 | )
      |  ^
a.cc:1:11: note: to match this '{'
    1 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'scanf' was not declared in this scope
    3 | scanf("%d %d",&a,&b);
      | ^~~~~
a.cc:6:1: error: 'printf' was not declared in this scope
    6 | printf("%d %d\n"),x,y;
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:8:1: error: expected primary-expression before ')' token
    8 | )
      | ^
a.cc:8:2: error: expected '}' at end of input
    8 | )
      |  ^
a.cc:1:11: note: to match this '{'
    1 | int main(){
      |           ^
Language: C++

using System;

class aoj{

     static void Main(){

          int a,b;

          a = int.Parse(Console.ReadLine());
          b = int.Parse(Console.ReadLine());

          Console.WriteLine("{0} {1}",a*b,a*2+b*2);

     }

}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:16:2: error: expected ';' after class definition
   16 | }
      |  ^
      |  ;
a.cc: In static member function 'static void aoj::Main()':
a.cc:9:15: error: expected primary-expression before 'int'
    9 |           a = int.Parse(Console.ReadLine());
      |               ^~~
a.cc:10:15: error: expected primary-expression before 'int'
   10 |           b = int.Parse(Console.ReadLine());
      |               ^~~
a.cc:12:11: error: 'Console' was not declared in this scope
   12 |           Console.WriteLine("{0} {1}",a*b,a*2+b*2);
      |           ^~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: 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
      |                  ^~~
Language: C++

x, y = gets.split(" ").map{ |x| x.to_i }
area = x * y
round = x * 2 + y * 2
puts "#{area} #{round}"

Compiler output:
a.cc:1:1: error: 'x' does not name a type
    1 | x, y = gets.split(" ").map{ |x| x.to_i }
      | ^
a.cc:2:1: error: 'area' does not name a type
    2 | area = x * y
      | ^~~~
Language: C++

x, y = gets.split(" ").map{ |z| z.to_i }
area = x * y
round = x * 2 + y * 2
puts "#{area} #{round}"

Compiler output:
a.cc:1:1: error: 'x' does not name a type
    1 | x, y = gets.split(" ").map{ |z| z.to_i }
      | ^
a.cc:2:1: error: 'area' does not name a type
    2 | area = x * y
      | ^~~~
Language: C++

x, y = gets.chomp.split(" ").map{ |z| z.to_i }
area = x * y
round = x * 2 + y * 2
puts "#{area} #{round}"

Compiler output:
a.cc:1:1: error: 'x' does not name a type
    1 | x, y = gets.chomp.split(" ").map{ |z| z.to_i }
      | ^
a.cc:2:1: error: 'area' does not name a type
    2 | area = x * y
      | ^~~~
Language: C++

a, b = gets.chomp.split(" ").map{ |x| x.to_i }
area = a * b
round = a * 2 + b * 2
puts "#{area} #{round}"

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = gets.chomp.split(" ").map{ |x| x.to_i }
      | ^
a.cc:2:1: error: 'area' does not name a type
    2 | area = a * b
      | ^~~~
Language: C++

#include <stdio.h>

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
    6 |     printf("%d\n"a*2+b*2);
      |            ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
    7 |     printf("%d\n"a*2+b*2);
      |            ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:18: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    4 | scanf("%d %d",&a &b);
      |               ~~ ^~
      |               |   |
      |               |   int
      |               int*
a.cc:5:1: error: 'c' was not declared in this scope
    5 | c=a*b;
      | ^
a.cc:6:1: error: 'd' was not declared in this scope
    6 | d=(a+a)*(b+b);
      | ^
a.cc:7:19: error: expected ')' before 'd'
    7 | printf("%d %d\n",c d);
      |       ~           ^~
      |                   )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:18: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    4 | scanf("%d %d",&a &b);
      |               ~~ ^~
      |               |   |
      |               |   int
      |               int*
a.cc:5:1: error: 'c' was not declared in this scope
    5 | c=a*b;
      | ^
a.cc:6:1: error: 'd' was not declared in this scope
    6 | d=a*2+b*2;
      | ^
a.cc:7:19: error: expected ')' before 'd'
    7 | printf("%d %d\n",c d);
      |       ~           ^~
      |                   )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:18: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    4 | scanf("%d %d",&a &b);
      |               ~~ ^~
      |               |   |
      |               |   int
      |               int*
a.cc:7:19: error: expected ')' before 'd'
    7 | printf("%d %d\n",c d);
      |       ~           ^~
      |                   )
Language: C++

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

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

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

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

a=a*b;
b=a*2+b*2;

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    5 | scanf("%d %d",&a &b);
      |               ~~ ^~
      |               |   |
      |               |   int
      |               int*
a.cc:10:19: error: expected ')' before 'b'
   10 | printf("%d %d\n",a b);
      |       ~           ^~
      |                   )
Language: C++

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

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

a=a*b;
b=a*2+b*2;

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

return 0;
}

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

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

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

c=a*b;
d=a*2+b*2;

printf("%d",c);
printf("%d\n",d);

return 0;
}

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

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

int a,b,x,y;

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

x=a*b;
y=2*a+2*b;

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

return 0;
}

Compiler output:
a.cc:1:10: 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 %d",&a,&b);
  printf("%d\n",&a*b);
  printf("%d\n",&2*a+2*b);

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: invalid operands of types 'int*' and 'int' to binary 'operator*'
    5 |   printf("%d\n",&a*b);
      |                 ~~^~
      |                 |  |
      |                 |  int
      |                 int*
a.cc:6:18: error: lvalue required as unary '&' operand
    6 |   printf("%d\n",&2*a+2*b);
      |                  ^
Language: C++

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: invalid operands of types 'int*' and 'int' to binary 'operator*'
    5 |   printf("%d\n",&a*b);
      |                 ~~^~
      |                 |  |
      |                 |  int
      |                 int*
a.cc:6:18: error: lvalue required as unary '&' operand
    6 |   printf("%d\n",&2*a+2*b);
      |                  ^
Language: C++

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

  return 0;
}

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

#include<cstdio>

int main(){
	int a, b, S, L;
	1<=a>=100;
	1<=b>=100;
	scanf("%d %d", &a, &b);
	S=a*b;
	L=a*2+b*2;
	printf("%d %d", &S, &L);

	return 0;

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:4:1: error: 'in' does not name a type; did you mean 'int'?
    4 | in main(){
      | ^~
      | int
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:4:1: error: 'in' does not name a type; did you mean 'int'?
    4 | in main(){
      | ^~
      | int
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:4:1: error: 'in' does not name a type; did you mean 'int'?
    4 | in main(){
      | ^~
      | int