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

#include(iostream)
using namespase std;

int main(){

  int a, b;

  cin >> a >> b;

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

  return 0;
}




Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> a >> b;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << a*b<< " " << 2*(a+b) << endl;
      |   ^~~~
a.cc:10:35: error: 'endl' was not declared in this scope
   10 |   cout << a*b<< " " << 2*(a+b) << endl;
      |                                   ^~~~
Language: C++

#include<iostream>
using namespase std;

int main(){

  int a, b;

  cin >> a >> b;

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

  return 0;
}




Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   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:10:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   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;

  cin >> a >> b;

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


  return 0;
}




Compiler output:
a.cc:2:9: error: #include expects "FILENAME" or <FILENAME>
    2 | #include(iostream)
      |         ^
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   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 | 
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout << a*b<< " " << 2*(a+b) << endl;
      |   ^~~~
a.cc:11:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:35: error: 'endl' was not declared in this scope
   11 |   cout << a*b<< " " << 2*(a+b) << endl;
      |                                   ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 |
Language: C++

#include<iostream>
using namespace std;

int main(){

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before 'length'
   10 |      cout << area length << endl;
      |                  ^~~~~~~
      |                  ;
Language: C++

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before string constant
    9 |      cout << area " " length << endl;
      |                  ^~~~
      |                  ;
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before user-defined string literal
    9 |      cout << area" "length << endl;
      |                  ^~~~~~~~~
      |                  ;
Language: C++

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before user-defined string literal
    9 |      cout <<area" "length
      |                 ^~~~~~~~~
      |                 ;
Language: C++

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected ';' before string constant
    9 |         cout << area " " length<<endl;
      |                     ^~~~
      |                     ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: unable to find numeric literal operator 'operator""a'
    6 | cout << 2a+2b << " " << ab <<endl;
      |         ^~
a.cc:6:12: error: unable to find numeric literal operator 'operator""b'
    6 | cout << 2a+2b << " " << ab <<endl;
      |            ^~
a.cc:6:25: error: 'ab' was not declared in this scope; did you mean 'b'?
    6 | cout << 2a+2b << " " << ab <<endl;
      |                         ^~
      |                         b
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'ab' was not declared in this scope; did you mean 'b'?
    6 | cout << ab << " " << 2a+2b <<endl;
      |         ^~
      |         b
a.cc:6:22: error: unable to find numeric literal operator 'operator""a'
    6 | cout << ab << " " << 2a+2b <<endl;
      |                      ^~
a.cc:6:25: error: unable to find numeric literal operator 'operator""b'
    6 | cout << ab << " " << 2a+2b <<endl;
      |                         ^~
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected ';' before string constant
    6 |     cout << a * b " " 2 ( a + b );
      |                  ^~~~
      |                  ;
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:6:23: error: unable to find numeric literal operator 'operator""a'
    6 | cout << a*b << " " << 2a+2b <<endl;
      |                       ^~
a.cc:6:26: error: unable to find numeric literal operator 'operator""b'
    6 | cout << a*b << " " << 2a+2b <<endl;
      |                          ^~
Language: C++

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


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

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


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

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


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

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


Compiler output:
a.cc:4:1: error: 'cin' does not name a type
    4 | cin>>a>>b;
      | ^~~
a.cc:5:1: error: 'cout' does not name a type
    5 | cout<<a*b<<""<<2*(a+b)<<endl;
      | ^~~~
a.cc:6:1: error: expected unqualified-id before 'return'
    6 | return 0;
      | ^~~~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
Language: C++

import java.util.Scanner;

public interface Main {
	static int a = 1;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		System.out.printf("%d %d\n", a*b,(a+b)*2);
	}
}


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

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


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

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


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

#include<stdio.h>
int main()[
    int a b

    scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/

　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));

    return 0;
]


Compiler output:
a.cc:5:29: error: unterminated comment
    5 |     scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/
      |                             ^
a.cc:3:5: 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
      |     ~~~
Language: C++

#include<stdio.h>
int main()[
    int a^b

    scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/

　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));

    return 0;
]


Compiler output:
a.cc:5:29: error: unterminated comment
    5 |     scanf("%d %d", &a, &b); /*　変数a,bに二つの整数をこの順番で入力する　＊/
      |                             ^
a.cc:3:5: 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
      |     ~~~
Language: C++

#include<stdio.h>
int main()[
    int a^b

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

　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));

    return 0;
]


Compiler output:
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc:3:5: 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:7:11: error: expected constructor, destructor, or type conversion before '(' token
    7 | 　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));
      |           ^
a.cc:9:5: error: expected unqualified-id before 'return'
    9 |     return 0;
      |     ^~~~~~
a.cc:10:1: error: expected unqualified-id before ']' token
   10 | ]
      | ^
Language: C++

#include<stdio.h>
int main()[
    int a^b

    scanf("%d %d", &a, &b);/*変数a,bに二つの整数をこの順番で入力する＊/

　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));

    return 0;
]


Compiler output:
a.cc:5:28: error: unterminated comment
    5 |     scanf("%d %d", &a, &b);/*変数a,bに二つの整数をこの順番で入力する＊/
      |                            ^
a.cc:3:5: 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
      |     ~~~
Language: C++

#include<stdio.h>
int main()[
    int a^b

    scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */

　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));

    return 0;
]


Compiler output:
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc:3:5: 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:7:11: error: expected constructor, destructor, or type conversion before '(' token
    7 | 　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));
      |           ^
a.cc:9:5: error: expected unqualified-id before 'return'
    9 |     return 0;
      |     ^~~~~~
a.cc:10:1: error: expected unqualified-id before ']' token
   10 | ]
      | ^
Language: C++

#include<stdio.h>
int main()[
    int a b

    scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */

　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));

    return 0;
]


Compiler output:
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc:3:5: 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:7:11: error: expected constructor, destructor, or type conversion before '(' token
    7 | 　　printf("面積 周の長さ＝%d￥n", a*b 2*(a+b));
      |           ^
a.cc:9:5: error: expected unqualified-id before 'return'
    9 |     return 0;
      |     ^~~~~~
a.cc:10:1: error: expected unqualified-id before ']' token
   10 | ]
      | ^
Language: C++

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

    scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */

　　printf("面積 周の長さ＝%d￥n", a*b,2*(a+b));

    return 0;
]


Compiler output:
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　　printf("面積 周の長さ＝%d￥n", a*b,2*(a+b));
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc:3:5: 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:5:10: error: expected constructor, destructor, or type conversion before '(' token
    5 |     scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */
      |          ^
a.cc:7:11: error: expected constructor, destructor, or type conversion before '(' token
    7 | 　　printf("面積 周の長さ＝%d￥n", a*b,2*(a+b));
      |           ^
a.cc:9:5: error: expected unqualified-id before 'return'
    9 |     return 0;
      |     ^~~~~~
a.cc:10:1: error: expected unqualified-id before ']' token
   10 | ]
      | ^
Language: C++

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

    scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */

　　printf("面積,周の長さ＝%d￥n", a*b,2*(a+b));

    return 0;
]


Compiler output:
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　　printf("面積,周の長さ＝%d￥n", a*b,2*(a+b));
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc:3:5: 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:5:10: error: expected constructor, destructor, or type conversion before '(' token
    5 |     scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */
      |          ^
a.cc:7:11: error: expected constructor, destructor, or type conversion before '(' token
    7 | 　　printf("面積,周の長さ＝%d￥n", a*b,2*(a+b));
      |           ^
a.cc:9:5: error: expected unqualified-id before 'return'
    9 |     return 0;
      |     ^~~~~~
a.cc:10:1: error: expected unqualified-id before ']' token
   10 | ]
      | ^
Language: C++

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

    scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */

　　printf("面積,周の長さ＝%d￥n", a*b,2*(a+b));

    return 0;
}


Compiler output:
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　　printf("面積,周の長さ＝%d￥n", a*b,2*(a+b));
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:21: error: 'a' was not declared in this scope
    5 |     scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */
      |                     ^
a.cc:5:25: error: 'b' was not declared in this scope
    5 |     scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */
      |                         ^
a.cc:7:1: error: '\U00003000\U00003000printf' was not declared in this scope
    7 | 　　printf("面積,周の長さ＝%d￥n", a*b,2*(a+b));
      | ^~~~~~~~~~
Language: C++

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

    scanf("%d %d", &a, &b); /* 変数a,bに二つの整数をこの順番で入力する */

　　printf("面積＝%d￥n", a*b);

    printf("周の長さ=%d\n", 2*(a+b));

    return 0;
}


Compiler output:
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　　printf("面積＝%d￥n", a*b);
      | ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:4:7: error: expected initializer before 'b'
    4 | int a b
      |       ^
a.cc:8:27: error: 'a' was not declared in this scope
    8 | 　　printf("面積＝%d￥n", a*b);
      |                           ^
a.cc:8:29: error: 'b' was not declared in this scope
    8 | 　　printf("面積＝%d￥n", a*b);
      |                             ^
a.cc:8:1: error: '\U00003000\U00003000printf' was not declared in this scope
    8 | 　　printf("面積＝%d￥n", a*b);
      | ^~~~~~~~~~
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:9:21: error: expression cannot be used as a function
    9 |    cout<<a*b<<" "<<2(a+b)<<endl;
      |                    ~^~~~~
a.cc:9:33: error: expected '}' at end of input
    9 |    cout<<a*b<<" "<<2(a+b)<<endl;
      |                                 ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
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:9:21: error: expression cannot be used as a function
    9 |    cout<<a*b<<" "<<2(a+b)<<endl;
      |                    ~^~~~~
Language: C++

#include<iostream>
using namespace std;

int main()
{

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



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

#include <iostream.h>
int main(void)
{
    int a = 3;
    int b = 5;
    int c = a * b;
    int d = (a + b) * 2;
    cout << c << " " << d;
}


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.h>
    int a = 3;
    int b = 5;
    float c = a * b;
    float d = (a + b) * 2;
    cout << c << " " << d;



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.h>
int main(void)
{
    int a = 3;
    int b = 5;
    float c = a * b;
    float d = (a + b) * 2;
    cout << c << " " << d;
    returm 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.h>
int main(void)
{
    int a;
    int b;
    float c = a * b;
    float d = (a + b) * 2;
    cout << c << " " << d;
    returm 0;
}


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


int main(void)
{
    int a;
    int b;
    float c = a * b;
    float d = (a + b) * 2;
    cout << c << " " << d;
    returm 0;
}


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

#include <iostream>

int main(){
    int a = 3;
    int b = 5;
    cout<<a*b<<" "<<(a+b)*2;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout<<a*b<<" "<<(a+b)*2;
      |     ^~~~
      |     std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>

int main(){
    int a = 3;
    int b = 5;
    cout << a*b << " " << (a+b)*2;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << a*b << " " << (a+b)*2;
      |     ^~~~
      |     std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>

int main(){
    int a = 3;
    int b = 5;
    cout << a*b << (a+b)*2;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << a*b << (a+b)*2;
      |     ^~~~
      |     std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a = 3;
    int b = 5;
    cout << a*b <<\<< (a+b)*2;
    return 0;
}


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

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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


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

#incluse(stdio.h)

int main(){
int x;
int y;

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

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

  return 0;
}


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

#incluse(stdio.h)

int main(){
int a;
int b;

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

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

  return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incluse; did you mean #include?
    1 | #incluse(stdio.h)
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'scanf' was not declared in this scope
    7 |   scanf("%d,%d", &a, &b);
      |   ^~~~~
a.cc:9:20: error: expected ')' before numeric constant
    9 |   printf("%d\n",a*b 2*(a+b));
      |         ~          ^~
      |                    )
a.cc:9:3: error: 'printf' was not declared in this scope
    9 |   printf("%d\n",a*b 2*(a+b));
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #incluse(stdio.h)
Language: C++

#include<iostream>

int main(){
    int a, b;
    std::cin >> a b;
    
    std::cout << a*b<< std::endl;

    return 0 ;
}


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

#include<iostream>

int main(){
    int a, b;
    std::cin >> a >> b;
    
    if(!((1 < a < 100) || (1 < b < 100)) return 0;
    std::cout << (a * b) << ((a + b) * 2);
    return 0 ;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:41: error: expected ';' before 'return'
    7 |     if(!((1 < a < 100) || (1 < b < 100)) return 0;
      |                                         ^~~~~~~
      |                                         ;
a.cc:8:42: error: expected ')' before ';' token
    8 |     std::cout << (a * b) << ((a + b) * 2);
      |                                          ^
      |                                          )
a.cc:7:7: note: to match this '('
    7 |     if(!((1 < a < 100) || (1 < b < 100)) return 0;
      |       ^
Language: C++

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


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

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


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

#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
	int a, b;
	scanf_s("%d",&a);
	scanf_s("%d",&b);
	cout << a * b << " " << a * 2 + b * 2 << "\n";
	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",&a);
      |         ^~~~~~~
      |         scanf
Language: C++

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


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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected primary-expression before '<<' token
    8 |     cout << a * b <<  << 2a + 2b << endl;
      |                       ^~
a.cc:8:26: error: unable to find numeric literal operator 'operator""a'
    8 |     cout << a * b <<  << 2a + 2b << endl;
      |                          ^~
a.cc:8:31: 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(void){
    int a;
    cin >> a;
    int b;
    cin >> b;
    cout << a * b << 2a + 2b << endl;
}


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

#include<iostream>
using namespace std;

void main() {
	int a, b;
	cout << "数字を入力してください" << endl;
	cin >> a >> b;
	if (a >= 1 && a <= 100 && b >= 1 && b <= 100) {
		cout << "面積:" << a*b << " " << "周の長さ:" << 2 * a + 2 * b << endl;
	}
	else {
		cout << "error" << endl;
	}
}


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

#include<iostream>
using namespace std;

void main() {
	int a, b;
	cout << "数字を入力してください" << endl;
	cin >> a >> b;
	if (a >= 1 && a <= 100 && b >= 1 && b <= 100) {
		cout << a*b << " " << 2 * a + 2 * b << endl;
	}
	else {
		cout << "error" << endl;
	}
}


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

#include<iostream>
using namespace std;

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



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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tasks
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split(' ');
            int a = int.Parse(s[0]);
            int b = int.Parse(s[1]);
            Console.WriteLine("{0} {1}", a * b, 2 * (a + b));
            
        }
    }
}



Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:10:26: error: 'string' has not been declared
   10 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:10:35: error: expected ',' or '...' before 'args'
   10 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:18:6: error: expected ';' after class definition
   18 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void Tasks::Program::Main(int*)':
a.cc:12:13: error: 'string' was not declared in this scope
   12 |             string[] s = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:12:20: error: expected primary-expression before ']' token
   12 |             string[] s = Console.ReadLine().Split(' ');
      |                    ^
a.cc:13:21: error: expected primary-expression before 'int'
   13 |             int a = int.Parse(s[0]);
      |                     ^~~
a.cc:14:21: error: expected primary-expression before 'int'
   14 |             int b = int.Parse(s[1]);
      |                     ^~~
a.cc:15:13: error: 'Console' was not declared in this scope
   15 |             Console.WriteLine("{0} {1}", a * b, 2 * (a + b));
      |             ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace ctd;
int main () {
int a,b;
cin>>a>>" ">>b;
cout<<a*b<<" "<<(a+b)*2<<endl;
return 0;
}


Compiler output:
a.cc:2:17: error: 'ctd' is not a namespace-name
    2 | using namespace ctd;
      |                 ^~~
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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | cout<<a*b<<" "<<(a+b)*2<<endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 | cout<<a*b<<" "<<(a+b)*2<<endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace ctd;
int main () {
int a,b;
cin>>a>>" ">>b;
cout<<a*b<<" "<<2(a+b)<<endl;
return 0;
}


Compiler output:
a.cc:2:17: error: 'ctd' is not a namespace-name
    2 | using namespace ctd;
      |                 ^~~
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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | cout<<a*b<<" "<<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:18: error: expression cannot be used as a function
    6 | cout<<a*b<<" "<<2(a+b)<<endl;
      |                 ~^~~~~
a.cc:6:25: 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/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/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 ab;
	cin>>ab;
	cout<<a*b 2(a+b)<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'a' was not declared in this scope; did you mean 'ab'?
    6 |         cout<<a*b 2(a+b)<<endl;
      |               ^
      |               ab
a.cc:6:17: error: 'b' was not declared in this scope; did you mean 'ab'?
    6 |         cout<<a*b 2(a+b)<<endl;
      |                 ^
      |                 ab
Language: C++

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


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

#include <iostream>

using namespace std;

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


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

#include <bits/stdc++.h>
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:7:26: error: expected '}' at end of input
    7 |   cout << a*b << 2*(a+b);
      |                          ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h.
using namespace std;

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


Compiler output:
a.cc:1:25: error: missing terminating > character
    1 | #include <bits/stdc++.h.
      |                         ^
a.cc:1:10: fatal error: bits/stdc++.h.: No such file or directory
    1 | #include <bits/stdc++.h.
      |          ^
compilation terminated.
Language: C++

#include <bits/stdc++.h.
using namespace std;
 
int main(){
  int a, b;
  cin >> a >> b;
  cout << a * b << " " << 2 * (a + b);
}


Compiler output:
a.cc:1:25: error: missing terminating > character
    1 | #include <bits/stdc++.h.
      |                         ^
a.cc:1:10: fatal error: bits/stdc++.h.: No such file or directory
    1 | #include <bits/stdc++.h.
      |          ^
compilation terminated.
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'a' was not declared in this scope
    4 |     cin >>a >>b >>endl;
      |           ^
a.cc:4:15: error: 'b' was not declared in this scope
    4 |     cin >>a >>b >>endl;
      |               ^
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:8:10: warning: missing terminating " character
    8 |    scanf("%d %d,&a,&b));
      |          ^
a.cc:8:10: error: missing terminating " character
    8 |    scanf("%d %d,&a,&b));
      |          ^~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:33: error: expected ')' before ';' token
   10 |    printf("%d %d\n",a*b,2*(a+b));
      |                                 ^
      |                                 )
a.cc:8:9: note: to match this '('
    8 |    scanf("%d %d,&a,&b));
      |         ^
Language: C++

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


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

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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


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:32: error: unable to find numeric literal operator 'operator""b'
    9 |         cout << a + b  << 2a + 2b << endl;
      |                                ^~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected initializer before 'b'
    5 |         int a b;
      |               ^
a.cc:6:16: error: 'a' was not declared in this scope
    6 |         cin >> a b;
      |                ^
a.cc:7:21: error: 'b' was not declared in this scope
    7 |         cout << a * b  << 2a + 2b << endl;
      |                     ^
a.cc:7:27: error: unable to find numeric literal operator 'operator""a'
    7 |         cout << a * b  << 2a + 2b << endl;
      |                           ^~
a.cc:7:32: error: unable to find numeric literal operator 'operator""b'
    7 |         cout << a * b  << 2a + 2b << endl;
      |                                ^~
Language: C++

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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


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

#include <iostream>

using namespace std;

int main(){

int n,m;

cin >> n;
cin >> m;

ran = n * m;
lon = (n * 2) + (m * 2);

cout << ran << endl;
cout << lon << endl;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: 'ran' was not declared in this scope; did you mean 'rand'?
   12 | ran = n * m;
      | ^~~
      | rand
a.cc:13:1: error: 'lon' was not declared in this scope; did you mean 'long'?
   13 | lon = (n * 2) + (m * 2);
      | ^~~
      | long
Language: C++

#include <iostream>

int rectangle() {

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

	int rec = a * b;
	int lon = (a * 2) + (b * 2);

	cout << rec << " " << lon << endl;




}


Compiler output:
a.cc: In function 'int rectangle()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> a;
      |         ^~~
      |         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:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         cout << rec << " " << lon << 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:12:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |         cout << rec << " " << lon << 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:17:1: warning: no return statement in function returning non-void [-Wreturn-type]
   17 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

int rectangle() {

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

	int rec = a * b;
	int lon = (a * 2) + (b * 2);

	cout << rec << " " << lon << 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