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

#include<iostream>
using namespace std;

int main () {
	int a,b;
	cin >> a >> b;
int = area, length;

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

	cout << area << " " << length <<endl:
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected unqualified-id before '=' token
    7 | int = area, length;
      |     ^
a.cc:9:1: error: 'area' was not declared in this scope
    9 | area = a * b;
      | ^~~~
a.cc:10:1: error: 'length' was not declared in this scope
   10 | length = 2*a + 2*b;
      | ^~~~~~
Language: C++

#include<iostream>
using namespace std;

int a;
int b;

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

}

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


#include "stdafx.h"
#include <iostream>

using namespace std;

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

	int area = a * b;
	int circumferential = 2 * (a + b);

	cout << area << " " << circumferential;
    return 0;
}

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

#include <iostream>
using namespace std;

int main() {
	int x,y,a,b;
	cin>>x y;
	a=x*2+y*2;
	b=x*y;
	cout <<a b<<endl;
	// your code goes here
	return 0;
}

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

#include <iostream>
using namespace std;

int main() {
	int x,y,a,b;
	cin>>x y;
	a=x*2+y*2;
	b=x*y;
	cout <<b a<<endl;
	// your code goes here
	return 0;
}

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

#include <cstdio>

using namespace std;

int main(){
    int a, b;
    scanf("%d %d", &a, &b);

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

    return 0;
}

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

#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:9:17: error: stray '\' in program
    9 |     printf(%d %d\n", a * b, 2 * (a + b));
      |                 ^
a.cc:9:19: warning: missing terminating " character
    9 |     printf(%d %d\n", a * b, 2 * (a + b));
      |                   ^
a.cc:9:19: error: missing terminating " character
    9 |     printf(%d %d\n", a * b, 2 * (a + b));
      |                   ^~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:12: error: expected primary-expression before '%' token
    9 |     printf(%d %d\n", a * b, 2 * (a + b));
      |            ^
a.cc:9:13: error: 'd' was not declared in this scope
    9 |     printf(%d %d\n", a * b, 2 * (a + b));
      |             ^
Language: C++

#include <iostream.h>
using namespace std;

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

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

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

#include <iostream>

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

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

int main()
{
     int a;
     int b;
     std::cin >> a;
     std::sin >> b;
	 std::cout << a * b 2 * ( a + b )
	 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'cin' is not a member of 'std'
    5 |      std::cin >> a;
      |           ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main()
a.cc:6:11: error: 'sin' is not a member of 'std'
    6 |      std::sin >> b;
      |           ^~~
a.cc:7:15: error: 'cout' is not a member of 'std'
    7 |          std::cout << a * b 2 * ( a + b )
      |               ^~~~
a.cc:7:15: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

using System;

class ITP1_1_C
{
    public static void Main()
    {
        const int iNum = 2; //??\???????????????????????°

        /* Input */
        string strInput = Console.ReadLine();

        /* ?????????????????? */
        string[] strInputValue = new string[iNum];
        strInputValue = strInput.Split(' ');

        /* ??????????´? */
        int iHeight = int.Parse(strInputValue[0]);
        int iWidth = int.Parse(strInputValue[1]);

        /* ?????? */
        int iLength = iHeight * 2 + iWidth * 2; //??¨?????????
        int iSurface = iHeight * iWidth;    //??¢???

        /* Output */
        Console.WriteLine("{0} {1}", iSurface, iLength);
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void Main()
      |           ^~~~~~~
      |           :
a.cc:27:2: error: expected ';' after class definition
   27 | }
      |  ^
      |  ;
a.cc: In static member function 'static void ITP1_1_C::Main()':
a.cc:10:9: error: 'string' was not declared in this scope
   10 |         string strInput = Console.ReadLine();
      |         ^~~~~~
a.cc:13:16: error: expected primary-expression before ']' token
   13 |         string[] strInputValue = new string[iNum];
      |                ^
a.cc:14:9: error: 'strInputValue' was not declared in this scope
   14 |         strInputValue = strInput.Split(' ');
      |         ^~~~~~~~~~~~~
a.cc:14:25: error: 'strInput' was not declared in this scope
   14 |         strInputValue = strInput.Split(' ');
      |                         ^~~~~~~~
a.cc:17:23: error: expected primary-expression before 'int'
   17 |         int iHeight = int.Parse(strInputValue[0]);
      |                       ^~~
a.cc:18:22: error: expected primary-expression before 'int'
   18 |         int iWidth = int.Parse(strInputValue[1]);
      |                      ^~~
a.cc:25:9: error: 'Console' was not declared in this scope
   25 |         Console.WriteLine("{0} {1}", iSurface, iLength);
      |         ^~~~~~~
Language: C++

#include <iostream>

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

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

#include<iostream>
using namespace std;
int main(){
  int a(1 < a < 100);
  cin >> a
  cout << " " << endl
  int b(1 < b < 100)
  cin >> b;
  int A;
  int A = a * b;
  int B;
  int B = a + a + b + b;
  cout << A << endl
  cout << " "<< endl
  cout << B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected ';' before 'cout'
    5 |   cin >> a
      |           ^
      |           ;
    6 |   cout << " " << endl
      |   ~~~~     
a.cc:10:7: error: redeclaration of 'int A'
   10 |   int A = a * b;
      |       ^
a.cc:9:7: note: 'int A' previously declared here
    9 |   int A;
      |       ^
a.cc:10:15: error: 'b' was not declared in this scope
   10 |   int A = a * b;
      |               ^
a.cc:12:7: error: redeclaration of 'int B'
   12 |   int B = a + a + b + b;
      |       ^
a.cc:11:7: note: 'int B' previously declared here
   11 |   int B;
      |       ^
a.cc:13:20: error: expected ';' before 'cout'
   13 |   cout << A << endl
      |                    ^
      |                    ;
   14 |   cout << " "<< endl
      |   ~~~~
Language: C++

#include<iostream>
using name space std;
int main(){
  int  ;
  int B(1<B<100);
  cin >> , B;
  int A = * B;
  int B = A + A + B + B;
???cout << A, B << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name space std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:4:3: error: declaration does not declare anything [-fpermissive]
    4 |   int  ;
      |   ^~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> , 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:10: error: expected primary-expression before ',' token
    6 |   cin >> , B;
      |          ^
a.cc:7:11: error: invalid type argument of unary '*' (have 'int')
    7 |   int A = * B;
      |           ^~~
a.cc:8:7: error: redeclaration of 'int B'
    8 |   int B = A + A + B + B;
      |       ^
a.cc:5:7: note: 'int B' previously declared here
    5 |   int B(1<B<100);
      |       ^
a.cc:9:1: error: expected primary-expression before '?' token
    9 | ???cout << A, B << endl;
      | ^
a.cc:9:2: error: expected primary-expression before '?' token
    9 | ???cout << A, B << endl;
      |  ^
a.cc:9:3: error: expected primary-expression before '?' token
    9 | ???cout << A, B << endl;
      |   ^
a.cc:9:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | ???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:9:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | ???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)
      |     ^~~~
a.cc:9:24: error: expected ':' before ';' token
    9 | ???cout << A, B << endl;
      |                        ^
      |                        :
a.cc:9:24: error: expected primary-expression before ';' token
a.cc:9:24: error: expected ':' before ';' token
    9 | ???cout << A, B << endl;
      |                        ^
      |                        :
a.cc:9:24: error: expected primary-expression before ';' token
a.cc:9:24: error: expected ':' before ';' token
    9 | ???cout << A, B << endl;
      |                        ^
      |                        :
a.cc:9:24: error: expected primary-expression before ';' token
Language: C++

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

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

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

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   cout << A, B << endl;
      |              ~~^~~~~~~
Language: C++

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

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:7: error: expected unqualified-id before numeric constant
    6 |   int 1 <= a,b <= 100
      |       ^
Language: C++

#include<iostream>
using namespace std;
main(){
  int a,b(1 <= a,b <= 100);
  cin >> a, b;
  int A = a * b;
  int B = a + a + b + b;
  cout << A, B << endl;
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:26: error: expression list treated as compound expression in initializer [-fpermissive]
    4 |   int a,b(1 <= a,b <= 100);
      |                          ^
a.cc:8:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout << A, B << endl;
      |              ~~^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a;
  int b;
  1<=a,b<=100;
  cin >> a, b;
  int A = a * b;
  int B = a + a + b + b;
  cout << A, B << endl;
}

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

#include<iostream>
using namespace std;
int main(){
  int a;
  int b;
  cin >> a, b(1<=a,b<=100);
  int A = a * b;
  int B = a + a + b + b;
  cout << "A, B" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'b' cannot be used as a function
    6 |   cin >> a, b(1<=a,b<=100);
      |             ~^~~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  cin >> a, b(1<=a,b<=100);
  int A = a * b;
  int B = a + a + b + b;
  cout << "A, B" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'a' was not declared in this scope
    4 |   cin >> a, b(1<=a,b<=100);
      |          ^
a.cc:4:20: error: 'b' was not declared in this scope
    4 |   cin >> a, b(1<=a,b<=100);
      |                    ^
a.cc:4:13: error: 'b' was not declared in this scope
    4 |   cin >> a, b(1<=a,b<=100);
      |             ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a(1 <= a <= 100);
  int b(1 <= b <= 100);
  cin >> a, b;
  int A = a * b;
  int B = a + a + b + b;
  cout << A, B << endl;
}

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


<?php

$input = trim(fgets(STDIN));

$input =explode(" ",$input);

echo $input[0]*$input[1];
echo " ";
echo $input[0]*2+$input[1]*2; 

Compiler output:
a.cc:2:1: error: expected unqualified-id before '<' token
    2 | <?php
      | ^
a.cc:6:1: error: '$input' does not name a type
    6 | $input =explode(" ",$input);
      | ^~~~~~
a.cc:8:1: error: 'echo' does not name a type
    8 | echo $input[0]*$input[1];
      | ^~~~
a.cc:9:1: error: 'echo' does not name a type
    9 | echo " ";
      | ^~~~
a.cc:10:1: error: 'echo' does not name a type
   10 | echo $input[0]*2+$input[1]*2;
      | ^~~~
Language: C++

#include <iostream>
using namespace std;

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

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

   cout << sq << " " << l << endl;

   return 0;
}

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

import sys
num = input().split()
a = int(num[0])
b = int(num[1])
print( a*b , 2 * (a+b) )

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

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

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

#include <iostream>
using namespace std;

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

	return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected initializer before 'int'
    6 |         int a int b;
      |               ^~~
a.cc:7:16: error: 'a' was not declared in this scope
    7 |         cin >> a cin >> b;
      |                ^
a.cc:8:21: error: 'b' was not declared in this scope
    8 |         cout << a * b << endl;
      |                     ^
a.cc:11:17: error: expected ';' before '}' token
   11 |         return 0
      |                 ^
      |                 ;
   12 | }
      | ~
Language: C++

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

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

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

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

#include <iostream>
using namespace std;
int shuu(int x, int y);
int menseki(int x, int y);
int main()
{
  int a,b;
  cin >> a >> b;
  cout << menseki(a, b) << shuu(a, b) << endl;
  return 0;
}

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

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

Compiler output:
/usr/bin/ld: /tmp/cciCtmpa.o: in function `main':
a.cc:(.text+0x5f): undefined reference to `shuu(int, int)'
collect2: error: ld returned 1 exit status
Language: C++


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

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: found ':' in nested-name-specifier, expected '::'
   11 |         cout << a : b << " " << 2(a + b) << endl;
      |                   ^
      |                   ::
a.cc:11:17: error: 'a' is not a class, namespace, or enumeration
   11 |         cout << a : b << " " << 2(a + b) << endl;
      |                 ^
a.cc:11:34: error: expression cannot be used as a function
   11 |         cout << a : b << " " << 2(a + b) << endl;
      |                                 ~^~~~~~~
a.cc:11:50: error: expected '}' at end of input
   11 |         cout << a : b << " " << 2(a + b) << endl;
      |                                                  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++


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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:34: error: expression cannot be used as a function
   11 |         cout << a * b << " " << 2(a + b) << endl;
      |                                 ~^~~~~~~
a.cc:11:50: error: expected '}' at end of input
   11 |         cout << a * b << " " << 2(a + b) << endl;
      |                                                  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++


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

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


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

return 0;
}

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

return 0;
}

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: redeclaration of 'int a'
    4 |         int a = 3;
      |             ^
a.cc:3:13: note: 'int a' previously declared here
    3 |         int a, b;
      |             ^
a.cc:5:13: error: redeclaration of 'int b'
    5 |         int b = 5;
      |             ^
a.cc:3:16: note: 'int b' previously declared here
    3 |         int a, b;
      |                ^
Language: C++

#include<stdio.h>
int main(){
	int a, b;
	int a = 3;
	int b = 5;
	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: redeclaration of 'int a'
    4 |         int a = 3;
      |             ^
a.cc:3:13: note: 'int a' previously declared here
    3 |         int a, b;
      |             ^
a.cc:5:13: error: redeclaration of 'int b'
    5 |         int b = 5;
      |             ^
a.cc:3:16: note: 'int b' previously declared here
    3 |         int a, b;
      |                ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
	int x.y;
	int i;
	
	for(i=0;i<3000;i++){
		cin >> a >> b;
		if(a = 0 && b= 0){
		break;
		}
		
		if(x < y){
			cout << a << " " << b << end1;
		}else(x >= y)(
			cout << b << " " << a << end1;
		)
	}
	return 

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected initializer before '.' token
    7 |         int x.y;
      |              ^
a.cc:11:24: error: 'a' was not declared in this scope
   11 |                 cin >> a >> b;
      |                        ^
a.cc:11:29: error: 'b' was not declared in this scope
   11 |                 cin >> a >> b;
      |                             ^
a.cc:16:20: error: 'x' was not declared in this scope
   16 |                 if(x < y){
      |                    ^
a.cc:16:24: error: 'y' was not declared in this scope
   16 |                 if(x < y){
      |                        ^
a.cc:17:50: error: 'end1' was not declared in this scope
   17 |                         cout << a << " " << b << end1;
      |                                                  ^~~~
a.cc:19:50: error: 'end1' was not declared in this scope
   19 |                         cout << b << " " << a << end1;
      |                                                  ^~~~
a.cc:20:17: error: expected primary-expression before ')' token
   20 |                 )
      |                 ^
a.cc:22:15: error: expected primary-expression at end of input
   22 |         return
      |               ^
a.cc:22:15: error: expected ';' at end of input
   22 |         return
      |               ^
      |               ;
a.cc:22:15: error: expected '}' at end of input
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
	int x.y;
	int i;
	
	for(i=0;i<3000;i++){
		cin >> x >> y;
		if(a = 0 && b= 0){
		break;
		}
		
		if(x < y){
			cout << a << " " << b << end1;
		}else(x >= y)(
			cout << b << " " << a << end1;
		)
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected initializer before '.' token
    7 |         int x.y;
      |              ^
a.cc:11:24: error: 'x' was not declared in this scope
   11 |                 cin >> x >> y;
      |                        ^
a.cc:11:29: error: 'y' was not declared in this scope
   11 |                 cin >> x >> y;
      |                             ^
a.cc:12:20: error: 'a' was not declared in this scope
   12 |                 if(a = 0 && b= 0){
      |                    ^
a.cc:12:29: error: 'b' was not declared in this scope
   12 |                 if(a = 0 && b= 0){
      |                             ^
a.cc:17:33: error: 'a' was not declared in this scope
   17 |                         cout << a << " " << b << end1;
      |                                 ^
a.cc:17:45: error: 'b' was not declared in this scope
   17 |                         cout << a << " " << b << end1;
      |                                             ^
a.cc:17:50: error: 'end1' was not declared in this scope
   17 |                         cout << a << " " << b << end1;
      |                                                  ^~~~
a.cc:19:33: error: 'b' was not declared in this scope
   19 |                         cout << b << " " << a << end1;
      |                                 ^
a.cc:19:45: error: 'a' was not declared in this scope
   19 |                         cout << b << " " << a << end1;
      |                                             ^
a.cc:19:50: error: 'end1' was not declared in this scope
   19 |                         cout << b << " " << a << end1;
      |                                                  ^~~~
a.cc:20:17: error: expected primary-expression before ')' token
   20 |                 )
      |                 ^
Language: C++

#include<iostream>
#include<iostream>

using namespace std;

int main()
{
	int x.y;
	int i;
	
	for(i=0;i<3000;i++){
		cin >> x >> y;
		if(x = 0 && y= 0){
		break;
		}
		
		if(x < y){
			cout << x << " " << y << end1;
		}else(x >= y)(
			cout << x << " " << y << end1;
		)
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected initializer before '.' token
    8 |         int x.y;
      |              ^
a.cc:12:24: error: 'x' was not declared in this scope
   12 |                 cin >> x >> y;
      |                        ^
a.cc:12:29: error: 'y' was not declared in this scope
   12 |                 cin >> x >> y;
      |                             ^
a.cc:18:50: error: 'end1' was not declared in this scope
   18 |                         cout << x << " " << y << end1;
      |                                                  ^~~~
a.cc:20:50: error: 'end1' was not declared in this scope
   20 |                         cout << x << " " << y << end1;
      |                                                  ^~~~
a.cc:21:17: error: expected primary-expression before ')' token
   21 |                 )
      |                 ^
Language: C++

#include<iostream>
#include<iostream>

using namespace std;

int main()
{
	int x.y;
#include<iostream>

using namespace std;

int main()
{
	int x.y;
	int i;
	
	for(i=0;i<3000;i++){
		cin >> x >> y;
		if(x = 0 && y = 0){
		break;
		}
		
		if(x < y){
			cout << x << " " << y << endl;
		}else(x >= y)(
			cout << x << " " << y << endl;
		)
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected initializer before '.' token
    8 |         int x.y;
      |              ^
a.cc:13:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   13 | int main()
      |         ^~
a.cc:13:9: note: remove parentheses to default-initialize a variable
   13 | int main()
      |         ^~
      |         --
a.cc:13:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:14:1: error: a function-definition is not allowed here before '{' token
   14 | {
      | ^
a.cc:31:2: error: expected '}' at end of input
   31 | }
      |  ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
	int x.y;
	int i;
	
	for(i=0;i<3000;i++){
		cin >> x >> y;
		if(x = 0 && y = 0){
		break;
		}
		
		if(x < y){
			cout << x << " " << y << endl;
		}else(x >= y)(
			cout << x << " " << y << endl;
		)
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected initializer before '.' token
    7 |         int x.y;
      |              ^
a.cc:11:24: error: 'x' was not declared in this scope
   11 |                 cin >> x >> y;
      |                        ^
a.cc:11:29: error: 'y' was not declared in this scope
   11 |                 cin >> x >> y;
      |                             ^
a.cc:20:17: error: expected primary-expression before ')' token
   20 |                 )
      |                 ^
Language: C++

#include <iostream>
using namesace std;

int main()
{
	int x, y;

	cin >> x >> y;

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

	return (0);
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesace'
    2 | using namesace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         cin >> 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:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout << x * y << (x + 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:10:41: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         cout << x * y << (x + 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 <iostream>
using namesace std;

int main()
{
	int x, y;

	cin >> x >> y;

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

	return (0);
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesace'
    2 | using namesace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         cin >> 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:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout << x * y << " " << (x + 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:10:48: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         cout << x * y << " " << (x + 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???
    int b???
    scanf(???%d %d???,&a,&b)???
    printf(???%d %d?\n???,a???b,2???a???2???b)???
    return 0???
???

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include ???stdio.h???
      |          ^
a.cc:6:21: error: stray '\' in program
    6 |     printf(???%d %d?\n???,a???b,2???a???2???b)???
      |                     ^
a.cc:2:12: error: expected initializer before '?' token
    2 | int main ()???
      |            ^
Language: C++

#include <iostream>
using namespace std;

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

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

#include <stdio.h>
int main(void){
    // Here your code !
    int n,m;
    scanf("%d %d",&n,&m);
    printf("%d %d\n",n+n+m+m,n*m);
    return 0;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'x' was not declared in this scope
    7 |         cin>>x>>y;
      |              ^
a.cc:7:17: error: 'y' was not declared in this scope
    7 |         cin>>x>>y;
      |                 ^
a.cc:9:33: error: expected ';' before '}' token
    9 |         cout<<a*2+b*2<<a*b<<"\n"
      |                                 ^
      |                                 ;
   10 | }
      | ~
Language: C++

#include<iostream>

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

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

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

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

(a,b)=map(int(),input().split())
print(a*b,(a+b)*2)

Compiler output:
a.cc:1:3: error: expected ')' before ',' token
    1 | (a,b)=map(int(),input().split())
      | ~ ^
      |   )
a.cc:1:5: error: expected constructor, destructor, or type conversion before ')' token
    1 | (a,b)=map(int(),input().split())
      |     ^
Language: C++

#include<cstdio>
int main()[
	int a,b;
	scanf(%d %d,&a,&b)
	int c=a*b
	int d=2a+2b;
	scanf(%d %d,&c,&d)
return 0;
}

Compiler output:
a.cc:3:9: error: expected primary-expression before 'int'
    3 |         int a,b;
      |         ^~~
a.cc:2:12: error: expected ']' before 'int'
    2 | int main()[
      |            ^
      |            ]
    3 |         int a,b;
      |         ~~~ 
a.cc:4:14: error: expected constructor, destructor, or type conversion before '(' token
    4 |         scanf(%d %d,&a,&b)
      |              ^
a.cc:7:14: error: expected constructor, destructor, or type conversion before '(' token
    7 |         scanf(%d %d,&c,&d)
      |              ^
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: expected primary-expression before '%' token
    4 |         scanf(%d %d,&a,&b);
      |               ^
a.cc:4:16: error: 'd' was not declared in this scope
    4 |         scanf(%d %d,&a,&b);
      |                ^
a.cc:6:15: error: unable to find numeric literal operator 'operator""a'
    6 |         int d=2a+2b;
      |               ^~
a.cc:6:18: error: unable to find numeric literal operator 'operator""b'
    6 |         int d=2a+2b;
      |                  ^~
a.cc:7:15: error: expected primary-expression before '%' token
    7 |         scanf(%d %d,&c,&d);
      |               ^
Language: C++

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

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 >>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:5:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 | cout<<x*y << 2*x+2*y <<endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 | cout<<x*y << 2*x+2*y <<endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
??
if __FILE__ == $0
????while line = STDIN.gets
????????tokens = line.chomp!.split.map!(&:to_i)
????????a, b = tokens[0], tokens[1]
????????x = a * b
????????y = (a + b) * 2
????????puts "#{x} #{y}"
????end
end

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env ruby
      |  ^
a.cc:2:3: error: invalid preprocessing directive #-
    2 | # -*- coding: utf-8 -*-
      |   ^
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
Language: C++

#include<stdio.h>

int main(){
??????int tate,yoko,shuu,menseki;
    scanf("%d %d", &tate, %yoko)
    shuu = tate * 2 + yoko * 2;
    menseki = tate * yoko;
    printf("%d %d\n", shuu, menseki);
    
    return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: expected primary-expression before '?' token
    4 | ??????int tate,yoko,shuu,menseki;
      | ^
a.cc:4:2: error: expected primary-expression before '?' token
    4 | ??????int tate,yoko,shuu,menseki;
      |  ^
a.cc:4:3: error: expected primary-expression before '?' token
    4 | ??????int tate,yoko,shuu,menseki;
      |   ^
a.cc:4:4: error: expected primary-expression before '?' token
    4 | ??????int tate,yoko,shuu,menseki;
      |    ^
a.cc:4:5: error: expected primary-expression before '?' token
    4 | ??????int tate,yoko,shuu,menseki;
      |     ^
a.cc:4:6: error: expected primary-expression before '?' token
    4 | ??????int tate,yoko,shuu,menseki;
      |      ^
a.cc:4:7: error: expected primary-expression before 'int'
    4 | ??????int tate,yoko,shuu,menseki;
      |       ^~~
a.cc:4:7: error: expected ':' before 'int'
    4 | ??????int tate,yoko,shuu,menseki;
      |       ^~~
      |       :
a.cc:4:7: error: expected primary-expression before 'int'
    4 | ??????int tate,yoko,shuu,menseki;
      |       ^~~
a.cc:4:7: error: expected ':' before 'int'
    4 | ??????int tate,yoko,shuu,menseki;
      |       ^~~
      |       :
a.cc:4:7: error: expected primary-expression before 'int'
    4 | ??????int tate,yoko,shuu,menseki;
      |       ^~~
a.cc:4:7: error: expected ':' before 'int'
    4 | ??????int tate,yoko,shuu,menseki;
      |       ^~~
      |       :
a.cc:4:7: error: expected primary-expression before 'int'
    4 | ??????int tate,yoko,shuu,menseki;
      |       ^~~
a.cc:4:7: error: expected ':' before 'int'
    4 | ??????int tate,yoko,shuu,menseki;
      |       ^~~
      |       :
a.cc:4:7: error: expected primary-expression before 'int'
    4 | ??????int tate,yoko,shuu,menseki;
      |       ^~~
a.cc:4:7: error: expected ':' before 'int'
    4 | ??????int tate,yoko,shuu,menseki;
      |       ^~~
      |       :
a.cc:4:7: error: expected primary-expression before 'int'
    4 | ??????int tate,yoko,shuu,menseki;
      |       ^~~
a.cc:4:7: error: expected ':' before 'int'
    4 | ??????int tate,yoko,shuu,menseki;
      |       ^~~
      |       :
a.cc:4:7: error: expected primary-expression before 'int'
    4 | ??????int tate,yoko,shuu,menseki;
      |       ^~~
a.cc:5:21: error: 'tate' was not declared in this scope
    5 |     scanf("%d %d", &tate, %yoko)
      |                     ^~~~
a.cc:5:27: error: expected primary-expression before '%' token
    5 |     scanf("%d %d", &tate, %yoko)
      |                           ^
a.cc:5:28: error: 'yoko' was not declared in this scope
    5 |     scanf("%d %d", &tate, %yoko)
      |                            ^~~~
a.cc:7:5: error: 'menseki' was not declared in this scope
    7 |     menseki = tate * yoko;
      |     ^~~~~~~
a.cc:8:23: error: 'shuu' was not declared in this scope
    8 |     printf("%d %d\n", shuu, menseki);
      |                       ^~~~
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:11: error: expected initializer before 'b'
    5 |     int a b;
      |           ^
a.cc:6:12: error: 'a' was not declared in this scope
    6 |     cin >> a >> b;
      |            ^
a.cc:6:17: error: 'b' was not declared in this scope
    6 |     cin >> a >> b;
      |                 ^
Language: C++

#include<iostream>

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:4: 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:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |    cout << a*b << " " << 2*(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:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |    cout << a*b << " " << 2*(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;
    int S, l; 

    do {
        cin >> a >> b;
    } while ((a < 1 || a > 100) || (b < 1 || b > 100));

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

    cout << S << l endl;
        
    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:19: error: expected ';' before 'endl'
   17 |     cout << S << l endl;
      |                   ^~~~~
      |                   ;
Language: C++

#include<iostream>
using namespace std;

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

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

#incluse<iostream>
using namespace std;

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

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

include <stdio.h>

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

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