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

import java.io.*;

class Main {
	public static void main(String[] arg)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] div = str.split(" ");
		int s =  Integer.parseInt(div[0]);
		int l =  Integer.parseInt(div[1]);
		System.out.println(s*l + " "+ 2*(s+l));
	}	
}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.io.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.io.*;
      |            ^
main.c:3:1: error: unknown type name 'class'
    3 | class Main {
      | ^~~~~
main.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | class Main {
      |            ^
Language: C

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

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

import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner scan = null;
		try{
			scan = new Scanner(System.in);
			int a = scan.nextInt();
			int b = scan.nextInt();
			System.out.println(a*b +" "+2*(a+b));
		}finally{
			if(scan !=null)scan.close();
		}

	}
}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:2:1: error: unknown type name 'public'
    2 | public class Main{
      | ^~~~~~
main.c:2:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    2 | public class Main{
      |              ^~~~
Language: C

#include<stdio.h>

int main(void){

int a,b;

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:22: error: invalid suffix "a" on integer constant
    9 | printf("%d %d\n",a*b,2a+2b);
      |                      ^~
main.c:9:25: error: invalid suffix "b" on integer constant
    9 | printf("%d %d\n",a*b,2a+2b);
      |                         ^~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:25: error: expected ')' before 'a'
    9 |     printf("%d\n", a * b a + b);
      |           ~             ^~
      |                         )
Language: C

#include<stdio.h>

int main(void){

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

Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
    5 |    int LENGTH a;
      |               ^
main.c:5:15: error: 'a' undeclared (first use in this function)
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    6 |    int WIDE b;
      |             ^
main.c:6:13: error: 'b' undeclared (first use in this function)
Language: C

#include <esrudio.h>

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

Compiler output:
main.c:1:10: fatal error: esrudio.h: No such file or directory
    1 | #include <esrudio.h>
      |          ^~~~~~~~~~~
compilation terminated.
Language: C

#include <esrudio.h>

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

Compiler output:
main.c:1:10: fatal error: esrudio.h: No such file or directory
    1 | #include <esrudio.h>
      |          ^~~~~~~~~~~
compilation terminated.
Language: C

#include <studio.h>

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

Compiler output:
main.c:1:10: fatal error: studio.h: No such file or directory
    1 | #include <studio.h>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

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

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

a,b = gets.split.map {|x|x.to_i}
puts "#{a*b} #{a*2+b*2}"

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b = gets.split.map {|x|x.to_i}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b = gets.split.map {|x|x.to_i}
      |   ^
main.c:1:7: error: 'gets' undeclared here (not in a function)
    1 | a,b = gets.split.map {|x|x.to_i}
      |       ^~~~
main.c:1:22: error: expected ',' or ';' before '{' token
    1 | a,b = gets.split.map {|x|x.to_i}
      |                      ^
main.c:2:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before string constant
    2 | puts "#{a*b} #{a*2+b*2}"
      |      ^~~~~~~~~~~~~~~~~~~
Language: C

import java.io.*;
import java.util.StringTokenizer;

public class Main {
	public static void main(String[] args) throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String s = br.readLine();
		StringTokenizer st = new StringTokenizer(s, " ");
		int x = Integer.parseInt(st.nextToken());
		int y = Integer.parseInt(st.nextToken());
		
		System.out.println(x*y+" "+ (x*2+y*2));
	}

}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.io.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.io.*;
      |            ^
main.c:2:1: error: unknown type name 'import'
    2 | import java.util.StringTokenizer;
      | ^~~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | import java.util.StringTokenizer;
      |            ^
main.c:4:1: error: unknown type name 'public'
    4 | public class Main {
      | ^~~~~~
main.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    4 | public class Main {
      |              ^~~~
Language: C++

#include <iostream>

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


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

#include <iostream>

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


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

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

    cout << c d << endl;
 
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'c'
    7 | cin >>b
      |        ^
      |        ;
    8 | c = a * b;
      | ~       
a.cc:11:14: error: expected ';' before 'd'
   11 |     cout << c d << endl;
      |              ^~
      |              ;
Language: C++

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


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

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

int main() {
	int a,b; cin>>a>>B;
	cout<<a*b<<' '<<2*(a+b)<<'\n';
}


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

#include <iostream>

int main(){
    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:4:17: error: 'a' was not declared in this scope
    4 |     std::cin >> a >> b;
      |                 ^
a.cc:4:22: error: 'b' was not declared in this scope
    4 |     std::cin >> 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));

    return0;
}


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


1
2
3
4
5
6
7
8
#include <stdio.h>
int main(void){
    // Your code here!
    int a,b;
    scanf("%d %d",&a,&b);
    printf("%d %d\n",a*b,a*2+b*2);
    return 0;
}


Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 1
      | ^
a.cc: In function 'int main()':
a.cc:14:5: error: 'scanf' was not declared in this scope
   14 |     scanf("%d %d",&a,&b);
      |     ^~~~~
a.cc:15:5: error: 'printf' was not declared in this scope
   15 |     printf("%d %d\n",a*b,a*2+b*2);
      |     ^~~~~~
a.cc:11:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
   10 | #include <stdio.h>
  +++ |+#include <cstdio>
   11 | int main(void){
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:5:30: error: expected ')' before '}' token
    5 |     printf("%d\n",n*m,2*n+2*m
      |           ~                  ^
      |                              )
    6 | }
      | ~
Language: C++

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


Compiler output:
a.cc:5:12: warning: missing terminating " character
    5 |     printf("%d 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111v1111111111111111111111111111111111111111111111111);
      |            ^
a.cc:5:12: error: missing terminating " character
    5 |     printf("%d 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111v1111111111111111111111111111111111111111111111111);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: expected primary-expression before 'return'
    6 |     return 0;
      |     ^~~~~~
Language: C++

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


Compiler output:
a.cc:5:12: warning: missing terminating " character
    5 |     printf("%d1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111v1111111111111111111111111111111111111111111111111);
      |            ^
a.cc:5:12: error: missing terminating " character
    5 |     printf("%d1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111v1111111111111111111111111111111111111111111111111);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: expected primary-expression before 'return'
    6 |     return 0;
      |     ^~~~~~
Language: C++


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



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

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



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

int main(int argc, const char * arg[] ){
 int a, b;
 scans(%d %d, &a, &b);
 printf("%d %d\n", a*b, 2*a+2*b);
 return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:3:8: error: expected primary-expression before '%' token
    3 |  scans(%d %d, &a, &b);
      |        ^
a.cc:3:9: error: 'd' was not declared in this scope
    3 |  scans(%d %d, &a, &b);
      |         ^
a.cc:3:2: error: 'scans' was not declared in this scope
    3 |  scans(%d %d, &a, &b);
      |  ^~~~~
a.cc:4:2: error: 'printf' was not declared in this scope
    4 |  printf("%d %d\n", a*b, 2*a+2*b);
      |  ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(int argc, const char * arg[] ){
Language: C++

int main(int argc, const char * arg[] ){
 int a, b;
 scanf(%d %d, &a, &b);
 printf("%d %d", a*b, 2*a+2*b);
 return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:3:8: error: expected primary-expression before '%' token
    3 |  scanf(%d %d, &a, &b);
      |        ^
a.cc:3:9: error: 'd' was not declared in this scope
    3 |  scanf(%d %d, &a, &b);
      |         ^
a.cc:3:2: error: 'scanf' was not declared in this scope
    3 |  scanf(%d %d, &a, &b);
      |  ^~~~~
a.cc:4:2: error: 'printf' was not declared in this scope
    4 |  printf("%d %d", a*b, 2*a+2*b);
      |  ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(int argc, const char * arg[] ){
Language: C++

int main(int argc, const char * arg[] ){
 int a, b;
 scanf("%d %d, &a, &b");
 printf("%d %d\n", a*b, 2*a+2*b);
 return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:3:2: error: 'scanf' was not declared in this scope
    3 |  scanf("%d %d, &a, &b");
      |  ^~~~~
a.cc:4:2: error: 'printf' was not declared in this scope
    4 |  printf("%d %d\n", a*b, 2*a+2*b);
      |  ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(int argc, const char * arg[] ){
Language: C++

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

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


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

int main(){
    int a,b;
    std::cin>>a;
    std::cout<<" ";
    std::cin>>b;
    
    if(1<=a&1<=b&a<=100&b<=100)
        std::cout<<a*b<<" "<<2*a+2*b<<std::endl;
    
    
    
}



Compiler output:
a.cc: In function 'int main()':
a.cc:3:10: error: 'cin' is not a member of 'std'
    3 |     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:4:10: error: 'cout' is not a member of 'std'
    4 |     std::cout<<" ";
      |          ^~~~
a.cc:4:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:10: error: 'cin' is not a member of 'std'
    5 |     std::cin>>b;
      |          ^~~
a.cc:5:10: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:14: error: 'cout' is not a member of 'std'
    8 |         std::cout<<a*b<<" "<<2*a+2*b<<std::endl;
      |              ^~~~
a.cc:8:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:44: error: 'endl' is not a member of 'std'
    8 |         std::cout<<a*b<<" "<<2*a+2*b<<std::endl;
      |                                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main(){
Language: C++

int main(){
    int a,b;
    std::cin>>a;
    std::cout<<" ";
    std::cin>>b;
    
    if(1<=a&1<=b&a<=100&b<=100){
        std::cout<<a*b<<" "<<2*a+2*b<<std::endl;
    }
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:3:10: error: 'cin' is not a member of 'std'
    3 |     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:4:10: error: 'cout' is not a member of 'std'
    4 |     std::cout<<" ";
      |          ^~~~
a.cc:4:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:10: error: 'cin' is not a member of 'std'
    5 |     std::cin>>b;
      |          ^~~
a.cc:5:10: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:14: error: 'cout' is not a member of 'std'
    8 |         std::cout<<a*b<<" "<<2*a+2*b<<std::endl;
      |              ^~~~
a.cc:8:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:44: error: 'endl' is not a member of 'std'
    8 |         std::cout<<a*b<<" "<<2*a+2*b<<std::endl;
      |                                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main(){
Language: C++

include<stdio.h>

int main(void)
{
int a,b;

a >= 1;
b >= 100;

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

return 0;
}


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

#include<iostream>

using namespace std;

intmain()
{
    inta,b;
    cin>>a>>b;
    if((1<=a)&&(a<=100)&&(1<=b)&&(b<=100))
        cout<<a*b<<""<<2*(a+b)<<endl;
    return0;
}



Compiler output:
a.cc:5:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
    5 | intmain()
      | ^~~~~~~
a.cc: In function 'int intmain()':
a.cc:7:5: error: 'inta' was not declared in this scope; did you mean 'int'?
    7 |     inta,b;
      |     ^~~~
      |     int
a.cc:7:10: error: 'b' was not declared in this scope
    7 |     inta,b;
      |          ^
a.cc:8:10: error: 'a' was not declared in this scope
    8 |     cin>>a>>b;
      |          ^
a.cc:11:5: error: 'return0' was not declared in this scope
   11 |     return0;
      |     ^~~~~~~
a.cc:12:1: warning: no return statement in function returning non-void [-Wreturn-type]
   12 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int rectangle_menseki(int a, int b);
int rectangle_syu(int a, int b);

int main(){
    int tate, yoko;
    
    cin >> tate;
    cin >> yoko;
    
    cout << rectangle_menseki(tate, yoko); << " " <<  rectangle_syu(tate, yoko) << endl;
    return 0;
}

int rectangle_menseki(a,b){
    int menseki;
    menseki = a * b;
    return menseki;
}

int rectangle_syu(a, b){
    int syu;
    syu = 2 * a + 2 * b;
    return syu;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:44: error: expected primary-expression before '<<' token
   13 |     cout << rectangle_menseki(tate, yoko); << " " <<  rectangle_syu(tate, yoko) << endl;
      |                                            ^~
a.cc: At global scope:
a.cc:17:23: error: 'int rectangle_menseki' redeclared as different kind of entity
   17 | int rectangle_menseki(a,b){
      |                       ^
a.cc:4:5: note: previous declaration 'int rectangle_menseki(int, int)'
    4 | int rectangle_menseki(int a, int b);
      |     ^~~~~~~~~~~~~~~~~
a.cc:17:23: error: 'a' was not declared in this scope
   17 | int rectangle_menseki(a,b){
      |                       ^
a.cc:17:25: error: 'b' was not declared in this scope
   17 | int rectangle_menseki(a,b){
      |                         ^
a.cc:23:19: error: 'int rectangle_syu' redeclared as different kind of entity
   23 | int rectangle_syu(a, b){
      |                   ^
a.cc:5:5: note: previous declaration 'int rectangle_syu(int, int)'
    5 | int rectangle_syu(int a, int b);
      |     ^~~~~~~~~~~~~
a.cc:23:19: error: 'a' was not declared in this scope
   23 | int rectangle_syu(a, b){
      |                   ^
a.cc:23:22: error: 'b' was not declared in this scope
   23 | int rectangle_syu(a, b){
      |                      ^
Language: C++

#include<iostream>
using namespace std;

int rectangle_menseki(int a, int b);
int rectangle_syu(int a, int b);

int main(){
    int tate, yoko;
    
    cin >> tate;
    cin >> yoko;
    
    cout << rectangle_menseki(tate, yoko) << " " <<  rectangle_syu(tate, yoko) << endl;
    return 0;
}

int rectangle_menseki(a,b){
    int menseki;
    menseki = a * b;
    return menseki;
}

int rectangle_syu(a, b){
    int syu;
    syu = 2 * a + 2 * b;
    return syu;
}


Compiler output:
a.cc:17:23: error: 'int rectangle_menseki' redeclared as different kind of entity
   17 | int rectangle_menseki(a,b){
      |                       ^
a.cc:4:5: note: previous declaration 'int rectangle_menseki(int, int)'
    4 | int rectangle_menseki(int a, int b);
      |     ^~~~~~~~~~~~~~~~~
a.cc:17:23: error: 'a' was not declared in this scope
   17 | int rectangle_menseki(a,b){
      |                       ^
a.cc:17:25: error: 'b' was not declared in this scope
   17 | int rectangle_menseki(a,b){
      |                         ^
a.cc:23:19: error: 'int rectangle_syu' redeclared as different kind of entity
   23 | int rectangle_syu(a, b){
      |                   ^
a.cc:5:5: note: previous declaration 'int rectangle_syu(int, int)'
    5 | int rectangle_syu(int a, int b);
      |     ^~~~~~~~~~~~~
a.cc:23:19: error: 'a' was not declared in this scope
   23 | int rectangle_syu(a, b){
      |                   ^
a.cc:23:22: error: 'b' was not declared in this scope
   23 | int rectangle_syu(a, b){
      |                      ^
Language: C++

#include <iostream>

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



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

w = input('')
h = input('')
print(w*h)


Compiler output:
a.cc:1:11: error: empty character constant
    1 | w = input('')
      |           ^~
a.cc:2:11: error: empty character constant
    2 | h = input('')
      |           ^~
a.cc:1:1: error: 'w' does not name a type
    1 | w = input('')
      | ^
Language: C++

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

  cin >> x >> y;

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

  return 0;		 
}


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

#include "stdafx.h"


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


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

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

  cin >> x >> y;

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

  return 0;		 
}


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

#include<ios tream>
using namespace std;

int main(){
    int a,b;
    scanf("%d %d",&a.&d);
    prantintf("%d %d",a*b,2*(a+b));
}



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

#include<iostrem>

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


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

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

int a,b;

cin>>a>>b;

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

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: 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(){

inta,b;//変数を宣言

cin>>a>>b;//外部入力を変数を二つ読み込む


//面積・空白スペース・周の長さ・改行を出力
cout<<a*b<<""<<2*(a+b)<<endl;


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'inta' was not declared in this scope; did you mean 'int'?
    5 | inta,b;//変数を宣言
      | ^~~~
      | int
a.cc:5:6: error: 'b' was not declared in this scope
    5 | inta,b;//変数を宣言
      |      ^
a.cc:7:6: error: 'a' was not declared in this scope
    7 | cin>>a>>b;//外部入力を変数を二つ読み込む
      |      ^
Language: C++

#include <stdio.h>
using namespace std; 
int main(){
int a,b;//1,100
cin>>a>>b;3,5,15,16
cout<<a*b<<""<<2*(a+b)<<endl;


return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a>>b;3,5,15,16
      | ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:5:20: error: expected ';' before 'cout'
    5 | cin>>a>>b;3,5,15,16
      |                    ^
      |                    ;
    6 | cout<<a*b<<""<<2*(a+b)<<endl;
      | ~~~~
Language: C++

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

inta,b;//変数を宣言

cin>>a>>b;//外部入力から変数を二つ読み込む

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


return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'inta' was not declared in this scope; did you mean 'int'?
    5 | inta,b;//変数を宣言
      | ^~~~
      | int
a.cc:5:6: error: 'b' was not declared in this scope
    5 | inta,b;//変数を宣言
      |      ^
a.cc:7:6: error: 'a' was not declared in this scope
    7 | cin>>a>>b;//外部入力から変数を二つ読み込む
      |      ^
Language: C++

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


inta,b;//変数を宣言


cin>>a>>b;//外部入力を変数を二つ読み込む


//面積・空白スペース・周の長さ・改行を出力
cout<<a*b<<""<<2*(a+b)<<endl;


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'inta' was not declared in this scope; did you mean 'int'?
    6 | inta,b;//変数を宣言
      | ^~~~
      | int
a.cc:6:6: error: 'b' was not declared in this scope
    6 | inta,b;//変数を宣言
      |      ^
a.cc:9:6: error: 'a' was not declared in this scope
    9 | cin>>a>>b;//外部入力を変数を二つ読み込む
      |      ^
Language: C++

#include <stdio.h>
using namespace std; 
int main(){

int a,b;//1,100

cin>>a>>b;

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


return 0;

}javascript:void(0)


Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | cin>>a>>b;
      | ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<a*b<<""<<2*(a+b)<<endl;
      | ^~~~
a.cc:9:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:25: error: 'endl' was not declared in this scope
    9 | cout<<a*b<<""<<2*(a+b)<<endl;
      |                         ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc: At global scope:
a.cc:14:2: error: 'javascript' does not name a type
   14 | }javascript:void(0)
      |  ^~~~~~~~~~
Language: C++

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

int a,b    //変数を宣言

cin>>a>>b	//外部入力を変数を2つ読み込む

cout<<a*b<<" "<<2*(a+b)<<endl;	//面積・空白スペース・州の長さ・改行を出力
//ここに処理を記述していきます（この行は残しておいても、消しても大丈夫です）


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: expected initializer before 'cin'
    7 | cin>>a>>b       //外部入力を変数を2つ読み込む
      | ^~~
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:11:20: 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(){


inta,b;//変数を宣言


cin>>a>>b;//外部入力を変数を2つ読み込む


//面積・空白スペース・周の長さ・改行を出力
cout<<a*b<<""<<2*(a+b)<<endl;


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'inta' was not declared in this scope; did you mean 'int'?
    6 | inta,b;//変数を宣言
      | ^~~~
      | int
a.cc:6:6: error: 'b' was not declared in this scope
    6 | inta,b;//変数を宣言
      |      ^
a.cc:9:6: error: 'a' was not declared in this scope
    9 | cin>>a>>b;//外部入力を変数を2つ読み込む
      |      ^
Language: C++

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

int a,b    //変数を宣言

cin >> a >> b	//外部入力を変数を2つ読み込む

cout <<a*b<<" "<<2*(a+b)<< endl;	//面積・空白スペース・州の長さ・改行を出力
//ここに処理を記述していきます（この行は残しておいても、消しても大丈夫です）


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: expected initializer before 'cin'
    7 | cin >> a >> b   //外部入力を変数を2つ読み込む
      | ^~~
Language: C++

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


inta,b;//変数を宣言


cin>>a>>b;//外部入力から変数を2つ読み込む


//面積・空白スペース・周の長さ・改行を出力
cout<<a*b<<""<<2*(a+b)<<endl;


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'inta' was not declared in this scope; did you mean 'int'?
    6 | inta,b;//変数を宣言
      | ^~~~
      | int
a.cc:6:6: error: 'b' was not declared in this scope
    6 | inta,b;//変数を宣言
      |      ^
a.cc:9:6: error: 'a' was not declared in this scope
    9 | cin>>a>>b;//外部入力から変数を2つ読み込む
      |      ^
Language: C++

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


inta,b;//変数を宣言


cin>>a>>b;//外部入力から変数を二つ読み込む

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


//面積空白スペース周の長さ改行を出力
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'inta' was not declared in this scope; did you mean 'int'?
    6 | inta,b;//変数を宣言
      | ^~~~
      | int
a.cc:6:6: error: 'b' was not declared in this scope
    6 | inta,b;//変数を宣言
      |      ^
a.cc:9:6: error: 'a' was not declared in this scope
    9 | cin>>a>>b;//外部入力から変数を二つ読み込む
      |      ^
Language: C++

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

cin>>a>>b;

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


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

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

inta,b;//変数を宣言

cin>>a>>b;//外部入力から変数を二つ読み込む

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


//面積空白スペース周の長さ改行を出力
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'inta' was not declared in this scope; did you mean 'int'?
    5 | inta,b;//変数を宣言
      | ^~~~
      | int
a.cc:5:6: error: 'b' was not declared in this scope
    5 | inta,b;//変数を宣言
      |      ^
a.cc:7:6: error: 'a' was not declared in this scope
    7 | cin>>a>>b;//外部入力から変数を二つ読み込む
      |      ^
Language: C++

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

inta,b;//変数を宣言

cin>>a>>b;//外部入力から変数を2つ読み込む

//面積・空白スペース・周の長さ・改行を出力
cout<<a*b<<""<<2*(a+b)<<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'inta' was not declared in this scope; did you mean 'int'?
    5 | inta,b;//変数を宣言
      | ^~~~
      | int
a.cc:5:6: error: 'b' was not declared in this scope
    5 | inta,b;//変数を宣言
      |      ^
a.cc:7:6: error: 'a' was not declared in this scope
    7 | cin>>a>>b;//外部入力から変数を2つ読み込む
      |      ^
Language: C++

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

int a,b; //変数を宣言

cin >> a >> b ; //外部入力を変数を2つ読み込む

//面積・空白スペース・周の長さ・改行を出力
cout<<1  <<" "<< 4<< endl
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected ';' before 'return'
   10 | cout<<1  <<" "<< 4<< endl
      |                          ^
      |                          ;
   11 | return 0;
      | ~~~~~~
Language: C++

#include <stdio.h>

int main(){
    
    int x1,x2;
    scanf("%d %d", &x1,&x2);
    printf("%d %d\n", x1*5, (x2*3)*1)
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:38: error: expected ';' before 'return'
    7 |     printf("%d %d\n", x1*5, (x2*3)*1)
      |                                      ^
      |                                      ;
    8 | 
    9 |     return 0;
      |     ~~~~~~
Language: C++

#include <stdio.h>

int main(){
    
    int x1,x2;
    scanf("%d %d", &x1,&x2);
    luas=x1*x2;
    luas1=(x1*x2)+1;
    printf("%d %d\n",luas,luas1)
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'luas' was not declared in this scope
    7 |     luas=x1*x2;
      |     ^~~~
a.cc:8:5: error: 'luas1' was not declared in this scope
    8 |     luas1=(x1*x2)+1;
      |     ^~~~~
Language: C++

#include <stdio.h>

int main(){
    
    int x1,x2;
    scanf("%d %d", &x1,&x2);
    luas=x1*x2;
    luas1=(x1+x2)*2;
    printf("%d %d\n",luas,luas1)
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'luas' was not declared in this scope
    7 |     luas=x1*x2;
      |     ^~~~
a.cc:8:5: error: 'luas1' was not declared in this scope
    8 |     luas1=(x1+x2)*2;
      |     ^~~~~
Language: C++

#include <stdio.h>

int main(){
    
    int x1,x2,luas,luas1;
    scanf("%d %d", &x1,&x2);
    luas=x1*x2;
    luas1=(x1+x2)*2;
    printf("%d %d\n",luas,luas1)
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: expected ';' before 'return'
    9 |     printf("%d %d\n",luas,luas1)
      |                                 ^
      |                                 ;
   10 | 
   11 |     return 0;
      |     ~~~~~~
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:12: error: 'a' was not declared in this scope
    5 |     cin >> a >> b;
      |            ^
a.cc:5:17: error: 'b' was not declared in this scope
    5 |     cin >> a >> b;
      |                 ^
Language: C++

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


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

#include<csstdio>

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


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

#include<cstdio>
using namespace std;

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



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

#include <bits/stdc++.h>

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:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     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:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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:8:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     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 a,b,c;
    cin >> a >> b;
    c = (a+b)*2
    cout << a*b <<  << endl;
}


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

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


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

#include <iostream>

using namespace std;

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



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

#include <iostream>

using namespace std;

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



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

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


Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <iostream>using namespace std;int main(void){int a,b;cin >> a>>b;cout <<a*b <<" "<<a*2+b*2<<endl;}
      |                          ^~~~~~~~~
a.cc:1:10: fatal error: iostream>usin: No such file or directory
    1 | #include <iostream>using namespace std;int main(void){int a,b;cin >> a>>b;cout <<a*b <<" "<<a*2+b*2<<endl;}
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;

int  main() {
    int a b;
    cin a b
    int x = a*b y = 2*a + 2*b
    cout << x << " " << y << 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:8: error: expected ';' before 'a'
    6 |     cin a b
      |        ^~
      |        ;
Language: C++

#include<iostream>
using namespace std;

int  main() {
    int a b;
    cin a b;
    int x = a*b y = 2*a + 2*b
    cout << x << " " << y << 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:8: error: expected ';' before 'a'
    6 |     cin a b;
      |        ^~
      |        ;
a.cc:7:13: error: 'a' was not declared in this scope
    7 |     int x = a*b y = 2*a + 2*b
      |             ^
a.cc:7:15: error: 'b' was not declared in this scope
    7 |     int x = a*b y = 2*a + 2*b
      |               ^
Language: C++

#include<iostream>
using namespace std;

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

    


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'cout'
    8 |     cout << x << " " << y << endl;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
    int x.y;
    cin >> x >> y;
    cout << x*y << x*2+y*2 << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: expected initializer before '.' token
    4 |     int x.y;
      |          ^
a.cc:5:12: error: 'x' was not declared in this scope
    5 |     cin >> x >> y;
      |            ^
a.cc:5:17: error: 'y' was not declared in this scope; did you mean 'yn'?
    5 |     cin >> x >> y;
      |                 ^
      |                 yn
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int h,w,i,j;
  while(1){
    cin >> h >> w;
      if(h==0 && w==0) break;
    for(j=1;j<=h;j++){
      for(i=1;i<=w;i++){
	if(j%2==1){
	  if(i%2==1) cout << '#';
	  else cout << '.';
	}else{
	  	  if(i%2==0) cout << '#';
		  else cout << '.';
	}
      
      }
      cout << endl
    }
    cout <<endl;
  }
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:19:19: error: expected ';' before '}' token
   19 |       cout << endl
      |                   ^
      |                   ;
   20 |     }
      |     ~