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

#include <iostream>
using namespace std;

int main() {
  string a,b,c;
  cin >> a >> b;
  int x,y;
  cin >> c;
  if(strcmp(a,c)==0)
    x--;
  else if (strcmp(b,c)==0)
    y--;
  cout << x << y;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: 'strcmp' was not declared in this scope
    9 |   if(strcmp(a,c)==0)
      |      ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C

#include<stdio.h>
#include<string.h>
int main() {
	int i, j;
	char x[10], y[10], z[10];
	scanf_s("%s %s", x, y);
	scanf_s("%d %d", &i, &j);
	scanf_s("%s", z);

	if (strcmp(x,z) == 0) {
		i = i - 1;
		printf_s("%d %d", i, j);
	}
	else{
		j = j - 1;
		printf_s("%d %d",i,j);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%s %s", x, y);
      |         ^~~~~~~
      |         scanf
main.c:12:17: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |                 printf_s("%d %d", i, j);
      |                 ^~~~~~~~
      |                 printf
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String word1 = sc.next();
    String word2 = sc.next();
    int word1Cnt = sc.nextInt();
    int word2Cnt = sc.nextInt();
    String word3 = sc.next();
    
    if(word1.equals(word3)){
      word1Cnt--;
    }else if(word2.equals(word3){
      word2Cnt--;
    }else {
    }
    
    System.out.println(word1Cnt +" "+ word2Cnt);
  }
}


Compiler output:
Main.java:14: error: ')' expected
    }else if(word2.equals(word3){
                                ^
1 error
Language: C++

##include<stdio.h>
int main(void){
	char a[10],b[10],c[10];
	int i,j;
  	scanf("%s %s %d %d %s",a,b,&i,&j,c);
  if(a[0]==c[0]){
  		i--;
  	}
  	else{
    	j--;
    }
  printf("%d %d",i,j);
}

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

#include <iostream>
#include <stdlib.h>
#include <string>

using namespace std;

int main(){
  string color1, color2;
  cin >> color1 >> color2;
  int num1, num2;
  cin >> num1 >> num2;
  string sel;
  cin >> sel;
  if(sel == color1)
    num1--;
  else
    num2--;
  cout << num1 << " " << num2 << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:18:39: error: expected '}' at end of input
   18 |   cout << num1 << " " << num2 << endl;
      |                                       ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string S, T, U;
  int A, B;
  cin >> S >> T >> A >> B >> U;
  if (S == U) {
    cout << A - 1 << << B << endl;
  }
  else {
    cout << A << << B - 1 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected primary-expression before '<<' token
    8 |     cout << A - 1 << << B << endl;
      |                      ^~
a.cc:11:18: error: expected primary-expression before '<<' token
   11 |     cout << A << << B - 1 << endl;
      |                  ^~
Language: C++

#include <iostream>
using namespace std;

int main(){
	str a,b,s;
  int x,y;
  cin >> a >> b >> x >> y >> s;
  if(a==s) x--;
  else y--;
  cout << x << y;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |         str a,b,s;
      |         ^~~
      |         std
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a >> b >> x >> y >> s;
      |          ^
a.cc:7:15: error: 'b' was not declared in this scope
    7 |   cin >> a >> b >> x >> y >> s;
      |               ^
a.cc:7:30: error: 's' was not declared in this scope
    7 |   cin >> a >> b >> x >> y >> s;
      |                              ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  string rm,str[2];
  citn>>str[0]>>str[1];
  int num[2];
  cin>>num[0]>>num[1];
  cin>>rm;
  if(rm==str[0]) num[0]--;
  else num[1]--;
  cout<<num[0]<<" "<<num[1]<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'citn' was not declared in this scope
    5 |   citn>>str[0]>>str[1];
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
void main() {
	string s, t, k; int a, b; cin >> s >> t >> a >> b >> k;
  	if (k == t & b != 0) b--;
  	else if (k == s && a != 0) a--;
  	cout << a << " " << b;
}

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

import java.util.*;
public class Balls
{
  public static void main(String[] args)
  {
    Scanner s=new Scanner(System.in);
    String st1=s.next();
    String st2=s.next();
    int a=s.nextInt();
    int b=s.nextInt();
    String st3=s.next();
    if(st3.equals(st1))
      a--;
    else
      b--;
    System.out.println(a+" "+b);
  }
}


Compiler output:
Main.java:2: error: class Balls is public, should be declared in a file named Balls.java
public class Balls
       ^
1 error
Language: C++

#include<stdio.h>

int main()
{
  int A,B;
  1<=A;
  B<=10;
  string S;
  string T;
  string U;
  1<=S,T<=10;
  S!=T;
    if(U==S)
      A=A-1;
    else
      B=B-1;
  printf("%s %s",S,T¥n);
  printf("%d %d",A,B¥n);
  printf("%s",U¥n);
  
  return 0;
}
  

Compiler output:
a.cc:17:20: error: extended character ¥ is not valid in an identifier
   17 |   printf("%s %s",S,T¥n);
      |                    ^
a.cc:18:20: error: extended character ¥ is not valid in an identifier
   18 |   printf("%d %d",A,B¥n);
      |                    ^
a.cc:19:15: error: extended character ¥ is not valid in an identifier
   19 |   printf("%s",U¥n);
      |               ^
a.cc: In function 'int main()':
a.cc:8:3: error: 'string' was not declared in this scope; did you mean 'stdin'?
    8 |   string S;
      |   ^~~~~~
      |   stdin
a.cc:9:9: error: expected ';' before 'T'
    9 |   string T;
      |         ^~
      |         ;
a.cc:10:9: error: expected ';' before 'U'
   10 |   string U;
      |         ^~
      |         ;
a.cc:11:6: error: 'S' was not declared in this scope
   11 |   1<=S,T<=10;
      |      ^
a.cc:11:8: error: 'T' was not declared in this scope
   11 |   1<=S,T<=10;
      |        ^
a.cc:13:8: error: 'U' was not declared in this scope
   13 |     if(U==S)
      |        ^
a.cc:17:20: error: 'T\U000000a5n' was not declared in this scope
   17 |   printf("%s %s",S,T¥n);
      |                    ^~~
a.cc:18:20: error: 'B\U000000a5n' was not declared in this scope
   18 |   printf("%d %d",A,B¥n);
      |                    ^~~
a.cc:19:15: error: 'U\U000000a5n' was not declared in this scope
   19 |   printf("%s",U¥n);
      |               ^~~
Language: C++

#include<stdio.h>
 
 
int main(){
 
int A[200000],N,i=0,i2=0;
 
scanf("%d", &N);
for(i=0;i<N;i++)scanf("%d",A+i);
/**バブルソートで昇順にし、同数があればNO表示で終了*/
for(i=0;i<N-1;i++){
	for(i2=N-1;i2>i;i2--){
		if(A[i2]<A[i2-1]){
			t=A[i2]; A[i2]=A[i2-1]; A[i2-1]=t;
		}else if(A[i2]==A[i2-1]){
			printf("NO\n"); return 0;
		}
	}
}
	printf("YES\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: 't' was not declared in this scope
   14 |                         t=A[i2]; A[i2]=A[i2-1]; A[i2-1]=t;
      |                         ^
Language: C++

#include <iostrem>
using namespace std;
int main(void){
  string s,t,u;
  int a,b;
  cin>>s>>t;
  cin>>a>>b;
  cin>>u;
  if(s==u) cout<<a-1<<" "<<b<<endl;
  else cout<<a<<" "<<b-1<<endl;
  return 0;
}

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

#include <iostream>
using namespace std;
int main(void){
  string s,t,u;
  int a,b;
  cin>>s>>t;
  cin>>a>>b;
  cin>>u;
  if(s==u) cout<<a-1<<" "<<b<<endl;
  else cout<<a<" "<<b-1<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<'
   10 |   else cout<<a<" "<<b-1<<endl;
      |                ~~~^~~~~
      |                |     |
      |                |     int
      |                const char [2]
Language: C++

#include <iostrem>
using namespace std;
int main(void){
  string s,t,u;
  int a,b;
  cin>>s>>t;
  cin>>a>>b;
  cin>>u;
  if(s==u) cout<<a-1<<" "<<b<<endl;
  else cout<<a<" "<<b-1<<endl;
  return 0;
}

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

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {

  	
  	Scanner scan = new Scanner(System.in);
  	
  	String S = String.valueOf(scan.next());
  	String T = String.valueOf(scan.next());
  	int A = Integer.parseInt(scan.next());
  	int B = Integer.parseInt(scan.next());
  	String U = String.valueOf(scan.next());
  	
  	if(S == U){
      A --;
    } else if (T == U){
      B --;
    }
  
  	System.out.println(String.valueOf(A) & " " & String.valueOf(B));
  	
    }
}
  

Compiler output:
Main.java:21: error: bad operand types for binary operator '&'
  	System.out.println(String.valueOf(A) & " " & String.valueOf(B));
  	                                     ^
  first type:  String
  second type: String
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  
  int A;
  int B;
  string S;
  string T;
  string U;
 
  cin >> S >> T;
  cin >> A >> B;
  cin >> U;
  
  
  if(S[i] == U[i]){
    cout << A - 1 << " " << B << endl;
  }
  else{
    cout << A << " " << B - 1 << endl;
  }
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: 'i' was not declared in this scope
   16 |   if(S[i] == U[i]){
      |        ^
Language: C

#include<stdio.h>

int main(){
int n,m;
  char* S;
  scanf("%d &d",&n,&m);
  scanf("%s",S);
  if(S == 'red'){
  n=n-1;
  }else{
  m=m-1;
  }
  printf("%d",n);
  printf("");
  printf(%d,m);
  retun 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:11: warning: multi-character character constant [-Wmultichar]
    8 |   if(S == 'red'){
      |           ^~~~~
main.c:8:8: warning: comparison between pointer and integer
    8 |   if(S == 'red'){
      |        ^~
main.c:15:10: error: expected expression before '%' token
   15 |   printf(%d,m);
      |          ^
main.c:16:3: error: 'retun' undeclared (first use in this function)
   16 |   retun 0;
      |   ^~~~~
main.c:16:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:8: error: expected ';' before numeric constant
   16 |   retun 0;
      |        ^~
      |        ;
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
  
  	String S,T;
  	int A,B;
  	String U;
  	
  	Scanner scan = new Scanner(System.in);
  	S = String.valueOf(scan.next());
  	T = String.valueOf(scan.next());
  	A = Integer.perseInt(scan.next());
  	B = Integer.perseInt(scan.next());
  	U = String.valueOf(scan.next());
  	
  	if(U == S){
      A--;
    } else if (U == T){
      B--;
    }
  
  	System.out.print(String.valueOf(A) + " " + String.valueOf(B));
    }
}
  

Compiler output:
Main.java:13: error: cannot find symbol
  	A = Integer.perseInt(scan.next());
  	           ^
  symbol:   method perseInt(String)
  location: class Integer
Main.java:14: error: cannot find symbol
  	B = Integer.perseInt(scan.next());
  	           ^
  symbol:   method perseInt(String)
  location: class Integer
2 errors
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
  
  	String S,T;
  	int A,B;
  	String U;
  	
  	Scanner scan = new Scanner(System.in);
  	S = String.valueOf(scan.next());
  	T = String.valueOf(scan.next());
  	A = scan.next();
  	B = scan.next();
  	U = String.valueOf(scan.next());
  	
  	if(U == S){
      A--;
    } else if (U == T){
      B--;
    }
  
  	System.out.print(String.valueOf(A) + " " + String.valueOf(B));
    }
}
  

Compiler output:
Main.java:13: error: incompatible types: String cannot be converted to int
  	A = scan.next();
  	             ^
Main.java:14: error: incompatible types: String cannot be converted to int
  	B = scan.next();
  	             ^
2 errors
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
  
  	String S,T;
  	int A,B;
  	String U;
  	
  	Scanner scan = new Scanner(System.in);
  	S = scan.next();
  	T = scan.next();
  	A = scan.next();
  	B = scan.next();
  	U = scan.next();
  	
  	if(U == S){
      A--;
    } else if (U == T){
      B--;
    }
  
  	System.out.print(String.valueOf(A) + " " + String.valueOf(B));
    }
}
  

Compiler output:
Main.java:13: error: incompatible types: String cannot be converted to int
  	A = scan.next();
  	             ^
Main.java:14: error: incompatible types: String cannot be converted to int
  	B = scan.next();
  	             ^
2 errors
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
  
  	String S,T;
  	int A,B;
  	String U;
  	
  	Scanner scan = new Snanner(System.in);
  	S = scan.next();
  	T = scan.next();
  	A = scan.next();
  	B = scan.next();
  	U = scan.next();
  	
  	if(U == S){
      A--;
    } else if (U == T){
      B--;
    }
  
  	System.out.print(String.valueOf(A) + " " + String.valueOf(B));
    }
}
  

Compiler output:
Main.java:10: error: cannot find symbol
  	Scanner scan = new Snanner(System.in);
  	                   ^
  symbol:   class Snanner
  location: class Main
Main.java:13: error: incompatible types: String cannot be converted to int
  	A = scan.next();
  	             ^
Main.java:14: error: incompatible types: String cannot be converted to int
  	B = scan.next();
  	             ^
3 errors
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
  
  	String S,T;
  	int A,B;
  	String U;
  
  	if(U == S){
      A--;
    } else if (U == T){
      B--;
    }
  
  	System.out.print(String.valueOf(A) + " " + String.valueOf(B));
    }
}
  

Compiler output:
Main.java:10: error: variable U might not have been initialized
  	if(U == S){
  	   ^
Main.java:10: error: variable S might not have been initialized
  	if(U == S){
  	        ^
Main.java:11: error: variable A might not have been initialized
      A--;
      ^
Main.java:12: error: variable T might not have been initialized
    } else if (U == T){
                    ^
Main.java:13: error: variable B might not have been initialized
      B--;
      ^
Main.java:16: error: variable A might not have been initialized
  	System.out.print(String.valueOf(A) + " " + String.valueOf(B));
  	                                ^
Main.java:16: error: variable B might not have been initialized
  	System.out.print(String.valueOf(A) + " " + String.valueOf(B));
  	                                                          ^
7 errors
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
  
  	String S,T;
  	int A,B;
  	String U;
  
  	if(U == S){
      A--;
    } else if (U == T){
      B--;
    }
  
  	system.out.print(String.valueOf(A) + " " + String.valueOf(B));
    }
}
  

Compiler output:
Main.java:16: error: package system does not exist
  	system.out.print(String.valueOf(A) + " " + String.valueOf(B));
  	      ^
1 error
Language: Java

public class Main {
    public static void main(String[] args) throws Exception {
  
  	String S,T;
  	int A,B;
  	String U;
  
  	if(U == S){
      A--;
    } else if (U == T){
      B--;
    }
  
  	system.out.print(String.valueOf(A) + " " + String.valueOf(B));
    }
}
  

Compiler output:
Main.java:14: error: package system does not exist
  	system.out.print(String.valueOf(A) + " " + String.valueOf(B));
  	      ^
1 error
Language: Java

public class Main {
    public static void main(String[] args) throws Exception {
  
  	String S,T;
  	int A,B;
  	String U;
  
  	if(U == S){
      A--;
    } else if (U == T){
      B--;
    }
  
  	system.out.print(String.valueOf(A) + " " + String.valueOf(B));
  
}

Compiler output:
Main.java:16: error: reached end of file while parsing
}
 ^
1 error
Language: Java

void Main (args[]){
  
  	String S,T;
  	int A,B;
  	String U;
  
  	if (U == S){
      A--;
    } else if (U == T){
      B--;
    }
  
  	system.out.print(String.valueOf(A) + " " + String.valueOf(B));
  
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
void Main (args[]){
^
  (use --enable-preview to enable unnamed classes)
Main.java:1: error: <identifier> expected
void Main (args[]){
                 ^
2 errors
Language: Java

public int void main (args[]){
  
  	String S,T;
  	int A,B;
  	String U;
  
  	if (U == S){
      A--;
    } else if (U == T){
      B--;
    }
  
  	system.out.print(String.valueOf(A) + " " + String.valueOf(B));
  
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
public int void main (args[]){
       ^
Main.java:4: error: class, interface, enum, or record expected
  	int A,B;
  	^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
  	String U;
  	^
  (use --enable-preview to enable unnamed classes)
Main.java:7: error: class, interface, enum, or record expected
  	if (U == S){
  	^
Main.java:9: error: class, interface, enum, or record expected
    } else if (U == T){
    ^
Main.java:11: error: class, interface, enum, or record expected
    }
    ^
Main.java:15: error: class, interface, enum, or record expected
}
^
7 errors
Language: Java

public void main (args[]){
  
  	String S,T;
  	int A,B;
  	String U;
  
  	if (U == S){
      A--;
    } else if (U == T){
      B--;
    }
  
  	system.out.print(String.valueOf(A) + " " + String.valueOf(B));
  
}
      

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public void main (args[]){
       ^
  (use --enable-preview to enable unnamed classes)
Main.java:1: error: <identifier> expected
public void main (args[]){
                        ^
2 errors
Language: Java



pubic void main (args[]){
  
  	String S,T;
  	int A,B;
  	String U;
  
  	if (U == S){
      A--;
    } else if (U == T){
      B--;
    }
  
  	system.out.print(A && " " && B);
  
}
       
      
      

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
pubic void main (args[]){
^
Main.java:6: error: class, interface, enum, or record expected
  	int A,B;
  	^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
  	String U;
  	^
  (use --enable-preview to enable unnamed classes)
Main.java:9: error: class, interface, enum, or record expected
  	if (U == S){
  	^
Main.java:11: error: class, interface, enum, or record expected
    } else if (U == T){
    ^
Main.java:13: error: class, interface, enum, or record expected
    }
    ^
Main.java:17: error: class, interface, enum, or record expected
}
^
7 errors
Language: C++

<?php
fscanf(STDIN, "%s %s", $s, $t);
fscanf(STDIN, "%d %d", $a, $b);
fscanf(STDIN, "%s", $u);
if($u == $s) {
  $a--;
} else {
  $b--;
}
echo $a." ".$b;
?>

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:7: error: expected constructor, destructor, or type conversion before '(' token
    3 | fscanf(STDIN, "%d %d", $a, $b);
      |       ^
a.cc:4:7: error: expected constructor, destructor, or type conversion before '(' token
    4 | fscanf(STDIN, "%s", $u);
      |       ^
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if($u == $s) {
      | ^~
a.cc:7:3: error: expected unqualified-id before 'else'
    7 | } else {
      |   ^~~~
a.cc:10:1: error: 'echo' does not name a type
   10 | echo $a." ".$b;
      | ^~~~
a.cc:11:1: error: expected unqualified-id before '?' token
   11 | ?>
      | ^
Language: C++

int N, K;
    float ans=0.0000000000;
    cin >> N >> K;
    vector<float> p(N);
    for(int i=0; i<N; i++){
        cin >> p[i];
    }
    sort(p.begin(), p.end());
    for(int i=N-1; i>=N-K; i--){
        for(int j=1; j<=p[i]; j++){
            ans+=(long)j/p[i];
        }
    }
    cout << (long double)(ans) << endl;
    
}

Compiler output:
a.cc:3:5: error: 'cin' does not name a type
    3 |     cin >> N >> K;
      |     ^~~
a.cc:4:5: error: 'vector' does not name a type
    4 |     vector<float> p(N);
      |     ^~~~~~
a.cc:5:5: error: expected unqualified-id before 'for'
    5 |     for(int i=0; i<N; i++){
      |     ^~~
a.cc:5:18: error: 'i' does not name a type
    5 |     for(int i=0; i<N; i++){
      |                  ^
a.cc:5:23: error: 'i' does not name a type
    5 |     for(int i=0; i<N; i++){
      |                       ^
a.cc:8:9: error: expected constructor, destructor, or type conversion before '(' token
    8 |     sort(p.begin(), p.end());
      |         ^
a.cc:9:5: error: expected unqualified-id before 'for'
    9 |     for(int i=N-1; i>=N-K; i--){
      |     ^~~
a.cc:9:20: error: 'i' does not name a type
    9 |     for(int i=N-1; i>=N-K; i--){
      |                    ^
a.cc:9:28: error: 'i' does not name a type
    9 |     for(int i=N-1; i>=N-K; i--){
      |                            ^
a.cc:14:5: error: 'cout' does not name a type
   14 |     cout << (long double)(ans) << endl;
      |     ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
string s, t, x;
int main(){
    int a, b;
    cin >> s >> t;   
    cin >> a >> b;
    cin >> x;
    if(s == x) a--;
    if(s -- t) b--;

    cout << a << " " << b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: no 'operator--(int)' declared for postfix '--' [-fpermissive]
   10 |     if(s -- t) b--;
      |        ~~^~
a.cc:10:12: error: expected ')' before 't'
   10 |     if(s -- t) b--;
      |       ~    ^~
      |            )
Language: C

int main(void){
str s, t;
int a, b;
str u;
scanf("%s %s", &s, &t);
scanf("%d %d", &a, &b);
scanf("%s", &u);
if (strcmp(s, u)){
  a = a - 1;
}
else{
  b = b - 1;
}
printf("%d %d\n", a, b);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:2:1: error: unknown type name 'str'
    2 | str s, t;
      | ^~~
main.c:4:1: error: unknown type name 'str'
    4 | str u;
      | ^~~
main.c:5:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 | scanf("%s %s", &s, &t);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:5:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 | scanf("%s %s", &s, &t);
      | ^~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:5: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    8 | if (strcmp(s, u)){
      |     ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strcmp'
  +++ |+#include <string.h>
    1 | int main(void){
main.c:8:12: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    8 | if (strcmp(s, u)){
      |            ^
      |            |
      |            int
main.c:8:12: note: expected 'const char *' but argument is of type 'int'
main.c:8:15: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    8 | if (strcmp(s, u)){
      |               ^
      |               |
      |               int
main.c:8:15: note: expected 'const char *' but argument is of type 'int'
main.c:14:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   14 | printf("%d %d\n", a, b);
      | ^~~~~~
main.c:14:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:14:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: Java

import java.awt.Point;
import java.io.*;
import java.util.*;
import java.math.BigInteger;

public class A {
    static class Solver {
        MyReader mr = new MyReader();

        public void solve() {
            String fir = mr.next();
            String sec = mr.next();

            int a = mr.nextInt();
            int b= mr.nextInt();

            String u = mr.next();

            if(u.equals(fir))a--;
            else if(u.equals(sec))b--;

            System.out.println(a+" "+b);
        }
    }

    public static void main(String[] args) {
        new Solver().solve();
    }

    static class MyReader {
        BufferedReader br;
        StringTokenizer st;

        MyReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }

            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String res = "";
            try {
                res = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }

            return res;
        }

        Integer[] nextIntArray(int n) {
            Integer[] arr = new Integer[n];
            for (int i = 0; i < n; i++) {
                arr[i] = nextInt();
            }

            return arr;
        }

        Long[] nextLongArray(int n) {
            Long[] arr = new Long[n];
            for (int i = 0; i < n; i++) {
                arr[i] = nextLong();
            }

            return arr;
        }

        String[] nextStringArray(int n) {
            String[] arr = new String[n];
            for (int i = 0; i < n; i++) {
                arr[i] = next();
            }
            return arr;
        }
    }

    static void swap(int[] arr, int i, int j) {
        int tmp = arr[i];
        arr[i] = arr[j];
        arr[j] = tmp;
    }

}




Compiler output:
Main.java:6: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	string a,b;
  	cin>>a>>b;
  	lli n1,n2;
  	cin>>n1>>n2;
  	string s;cin>>s;
  	if(s==a)	cout<<n1-1<<" "<<n2<<endl;
  	else	cout<<n1<<" "<<n2-1<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'lli' was not declared in this scope
    6 |         lli n1,n2;
      |         ^~~
a.cc:7:14: error: 'n1' was not declared in this scope; did you mean 'y1'?
    7 |         cin>>n1>>n2;
      |              ^~
      |              y1
a.cc:7:18: error: 'n2' was not declared in this scope
    7 |         cin>>n1>>n2;
      |                  ^~
Language: C

#include <stdio.h>
 
char c1[11];
char c2[11];
char c3[11];
int a,b;
 
scanf("%s %s", c1, c2 );
scanf("%d %d", &a, &b);
scanf("%s", c3);
 
if(strcmp(c1,c3) == 0){
  a-=1;
}
if(strcmp(c2,c3) == 0){
  b-=1;
}
 
printf("%d %d",a, b);

Compiler output:
main.c:8:7: error: expected declaration specifiers or '...' before string constant
    8 | scanf("%s %s", c1, c2 );
      |       ^~~~~~~
main.c:8:16: error: expected declaration specifiers or '...' before 'c1'
    8 | scanf("%s %s", c1, c2 );
      |                ^~
main.c:8:20: error: expected declaration specifiers or '...' before 'c2'
    8 | scanf("%s %s", c1, c2 );
      |                    ^~
main.c:9:7: error: expected declaration specifiers or '...' before string constant
    9 | scanf("%d %d", &a, &b);
      |       ^~~~~~~
main.c:9:16: error: expected declaration specifiers or '...' before '&' token
    9 | scanf("%d %d", &a, &b);
      |                ^
main.c:9:20: error: expected declaration specifiers or '...' before '&' token
    9 | scanf("%d %d", &a, &b);
      |                    ^
main.c:10:7: error: expected declaration specifiers or '...' before string constant
   10 | scanf("%s", c3);
      |       ^~~~
main.c:10:13: error: expected declaration specifiers or '...' before 'c3'
   10 | scanf("%s", c3);
      |             ^~
main.c:12:1: error: expected identifier or '(' before 'if'
   12 | if(strcmp(c1,c3) == 0){
      | ^~
main.c:15:1: error: expected identifier or '(' before 'if'
   15 | if(strcmp(c2,c3) == 0){
      | ^~
main.c:19:8: error: expected declaration specifiers or '...' before string constant
   19 | printf("%d %d",a, b);
      |        ^~~~~~~
main.c:19:16: error: expected declaration specifiers or '...' before 'a'
   19 | printf("%d %d",a, b);
      |                ^
main.c:19:19: error: expected declaration specifiers or '...' before 'b'
   19 | printf("%d %d",a, b);
      |                   ^
Language: C

#include<stdio.h>

char c1[10];
char c2[10];
char c3[10];
int a,b;

scanf("%s %s", c1, c2 );
scanf("%d %d", &a, &b);
scanf("%s", c3);

if(strcmp(c1,c3) == 0){
  a-=1;
}
if(strcmp(c2,c3) == 0){
  b-=1;
}

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

Compiler output:
main.c:8:7: error: expected declaration specifiers or '...' before string constant
    8 | scanf("%s %s", c1, c2 );
      |       ^~~~~~~
main.c:8:16: error: expected declaration specifiers or '...' before 'c1'
    8 | scanf("%s %s", c1, c2 );
      |                ^~
main.c:8:20: error: expected declaration specifiers or '...' before 'c2'
    8 | scanf("%s %s", c1, c2 );
      |                    ^~
main.c:9:7: error: expected declaration specifiers or '...' before string constant
    9 | scanf("%d %d", &a, &b);
      |       ^~~~~~~
main.c:9:16: error: expected declaration specifiers or '...' before '&' token
    9 | scanf("%d %d", &a, &b);
      |                ^
main.c:9:20: error: expected declaration specifiers or '...' before '&' token
    9 | scanf("%d %d", &a, &b);
      |                    ^
main.c:10:7: error: expected declaration specifiers or '...' before string constant
   10 | scanf("%s", c3);
      |       ^~~~
main.c:10:13: error: expected declaration specifiers or '...' before 'c3'
   10 | scanf("%s", c3);
      |             ^~
main.c:12:1: error: expected identifier or '(' before 'if'
   12 | if(strcmp(c1,c3) == 0){
      | ^~
main.c:15:1: error: expected identifier or '(' before 'if'
   15 | if(strcmp(c2,c3) == 0){
      | ^~
main.c:19:8: error: expected declaration specifiers or '...' before string constant
   19 | printf("%d %d",a, b);
      |        ^~~~~~~
main.c:19:16: error: expected declaration specifiers or '...' before 'a'
   19 | printf("%d %d",a, b);
      |                ^
main.c:19:19: error: expected declaration specifiers or '...' before 'b'
   19 | printf("%d %d",a, b);
      |                   ^
Language: C++

#include <iostream>
#include <vector>
//
using namespace std;
int main(void){
    string s,t;
    cin >> s >> t;
    int a,b;
    cin >> a >> b;
    string u;
    sin >> u;
    if(s == u){
        a--;
    }else{
        b--;
    }
    cout << a << " " << b << endl;
}


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

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

int main(){

string a,b;
	cin >>a>>b;
int x,y;
  	cin>>x>>y;
string temp;
  cin>>temp;
if(strcmp(temp,a))
  x--;
  else
    y--;
  
  cout<<x<<y;
  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   12 | if(strcmp(temp,a))
      |           ^~~~
      |           |
      |           std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
Language: C

#include<stdio.h>
#include<string.h>
int main(){
  char x[],y[],z[];
  int i,j;
  scanf("%s%s",x,y);
  scanf("%d%d",i,j);
  scanf("%s",z);
  if(strcmp(x,z)==0){
      i=i-1;
      printf("%d %d",i,j);
    }
  else{
      j=j-1;
      printf("%d %d",i,j);
    }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:8: error: array size missing in 'x'
    4 |   char x[],y[],z[];
      |        ^
main.c:4:12: error: array size missing in 'y'
    4 |   char x[],y[],z[];
      |            ^
main.c:4:16: error: array size missing in 'z'
    4 |   char x[],y[],z[];
      |                ^
Language: Java

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

public class A
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String t = sc.next();
    int a = sc.nextInt();
    int b = sc.nextInt();
    String u = sc.next();
    if(u.equals(s))
      a--;
    else
      b--;
    System.out.println(a + " " + b);
  }
}

Compiler output:
Main.java:4: error: class A is public, should be declared in a file named A.java
public class A
       ^
1 error
Language: Java

import java.util.Scanner;
 
public class Main {
 
	public static void main(String[] args) {
		FastScanner sc = new FastScanner(System.in);
		int n = sc.nextInt();
		int a[] = new int [n];
 
		for(int i=0;i<n;i++) {
			a[i] = sc.nextInt();
		}
		sc.close();
 
		for(int i=0;i<n;i++) {
			for(int j=0;j<n;j++) {
				if(i==j) continue;
				if(a[i]==a[j]) {
					System.out.println("NO");
					return ;
				}
			}
		}
 
		System.out.println("YES");
 
	}
 
}

Compiler output:
Main.java:6: error: cannot find symbol
		FastScanner sc = new FastScanner(System.in);
		^
  symbol:   class FastScanner
  location: class Main
Main.java:6: error: cannot find symbol
		FastScanner sc = new FastScanner(System.in);
		                     ^
  symbol:   class FastScanner
  location: class Main
2 errors
Language: C++

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

int main() {
  string S,T,U;
  int A,B;
  
  cin >> S >> T;
  cin >> A >> B;
  cin >> U;
  if(S == U){
    A--;
  }
  else {
    B--;
  }
  cout << A << << B;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: expected primary-expression before '<<' token
   17 |   cout << A << << B;
      |                ^~
Language: C

import sys

S,T = input().split()
A,B = input().split()
U = input()

A,B = int(A),int(B)

if(S==U):
    A -= 1
else:
    B -= 1

print(A,B)


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import sys
      | ^~~~~~
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'S'
    3 | S,T = input().split()
      | ^
Language: C++

 #include <iostream>
  #include <vector>
  #include <string>

  using namespace std;

  int main(void) {
      string s, t, u;
      int a, b;
      cin >> s;
      cin >> t;
      cin >> a;
      cin >> b;
      cin >> u;
      int d = a + b;
      if (u == t) {
      ⎸   d-=1;
      }
      if (u == s) {
      ⎸   d-=1;
      }
      cout << d << endl;
  }                   

Compiler output:
a.cc:17:7: error: extended character ⎸ is not valid in an identifier
   17 |       ⎸   d-=1;
      |       ^
a.cc:20:7: error: extended character ⎸ is not valid in an identifier
   20 |       ⎸   d-=1;
      |       ^
a.cc: In function 'int main()':
a.cc:17:7: error: '\U000023b8' was not declared in this scope
   17 |       ⎸   d-=1;
      |       ^
a.cc:20:7: error: '\U000023b8' was not declared in this scope
   20 |       ⎸   d-=1;
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
 
  string S,T,U;
  int A,B;
 
  cin >> S >> T;
  cin >> A >> B;
  cin >> U;
 
  if(S == U){
    A--;
  }
  
  else{
    B--;
  }
  
  cout << A << B endl;
  
}

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

#include<iostream>
using namespace std;

int main()
{
    // get two strings separated with half-width break
    string S, T;
    cin >> S >> T;
    // get two integers separated with half-width break
    int b,c;
    cin >> b >> c;
    // get a string
    string picked;
    cin >> picked;
  	if (S == picked){
      b--;
    else if (T == picked){
      c--;
    }
    // output
    cout << b << " " << c << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: expected '}' before 'else'
   17 |     else if (T == picked){
      |     ^~~~
a.cc:15:25: note: to match this '{'
   15 |         if (S == picked){
      |                         ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
    // get two strings separated with half-width break
    string S, T;
    cin >> S >> T;
    // get two integers separated with half-width break
    int b,c;
    cin >> b >> c;
    // get a string
    string picked;
    cin >> picked;
  	if (S == picked){
      b--;
    else if (T == picked){
      c--;
    }
    // output
    cout << a << " " << b << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: expected '}' before 'else'
   17 |     else if (T == picked){
      |     ^~~~
a.cc:15:25: note: to match this '{'
   15 |         if (S == picked){
      |                         ^
a.cc:21:13: error: 'a' was not declared in this scope
   21 |     cout << a << " " << b << endl;
      |             ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
    // get two strings separated with half-width break
    string S, T;
    cin >> S >> T;
    // get two integers separated with half-width break
    int b,c;
    cin >> a >> b;
    // get a string
    string picked;
    cin >> picked;
  	if (S == picked){
      a--;
    else if (T == picked){
      b--;
    };
    // output
    cout << a << " " << b << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'a' was not declared in this scope
   11 |     cin >> a >> b;
      |            ^
a.cc:17:5: error: expected '}' before 'else'
   17 |     else if (T == picked){
      |     ^~~~
a.cc:15:25: note: to match this '{'
   15 |         if (S == picked){
      |                         ^
Language: C++

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

int main(){
  string s, t;
  cin >> s >> t;
  
  int a, b;
  cin >> a >> b;
  
  string se;
  cin >> se;
  
  if(se == s){
    a--;
    else if(se == t){
      b--;
    }
  
    cout << a << b << endl;
  }
}




  
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: expected '}' before 'else'
   16 |     else if(se == t){
      |     ^~~~
a.cc:14:14: note: to match this '{'
   14 |   if(se == s){
      |              ^
a.cc: At global scope:
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

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

int main(){
  string s, t;
  cin >> s >> t;
  
  int a, b;
  cin >> a >> b;
  
  string select;
  cin >> select;
  
  if(select == s){
    a--;
    else if(select == t){
      b--;
    }
  
    cout << a << b << endl;
  }
}




  
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: expected '}' before 'else'
   16 |     else if(select == t){
      |     ^~~~
a.cc:14:18: note: to match this '{'
   14 |   if(select == s){
      |                  ^
a.cc: At global scope:
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: Java

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

int main()
{
   string s1, s2, ans;
   int n1, n2;
   cin >> s1 >> s2 >> n1 >> n2 >> ans;
   if(ans == s1){
      n1--;
   }
   else{
      n2--;
   }
   cout << n1 << " " << n2 << endl;
   return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include<bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<bits/stdc++.h>
        ^
Main.java:8: error: not a statement
   cin >> s1 >> s2 >> n1 >> n2 >> ans;
                               ^
Main.java:15: error: not a statement
   cout << n1 << " " << n2 << endl;
                           ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: Java

import org.w3c.dom.ls.LSOutput;

import java.util.Scanner;

public class Hello {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String S = scanner.next();
        String T = scanner.next();
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        String U = scanner.next();
        if(U.equals(S)) {
            A--;
        } else {
            B--;
        }
        System.out.println(A + " " + B);
    }
}


Compiler output:
Main.java:5: error: class Hello is public, should be declared in a file named Hello.java
public class Hello {
       ^
1 error
Language: C

#include<stdio.h>

int main(void)
{
char S[10];
char T[10];
char U[10];
int A,B;

scanf("%s", S[10]);
scanf("%s", T[10]);
scanf("%d", &A);
scanf("%d", &B);
scanf("%s", U)[10];

if(S==U)
{
    A=A-1;
}
if(T==U)
{
    B=B-1;
}
printf("%d", A);
printf("%d", B);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:15: error: subscripted value is neither array nor pointer nor vector
   14 | scanf("%s", U)[10];
      |               ^
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.h>

int main(void){
    int n,count=0;
    int a[210000};

    scanf("%d",&n);
    for(int i=0;i<n;i++)
        scanf("%d",a+i);


    for(int k=0;k<n;k++){
        for(int j=0;j<n;j++){
            if(a[k] == a[j]){
                count ++;
                break;
            }
        }
        if(count !=0) break;
    }

    if(count==1){
        printf("YES");
    }else if(count==0){
        printf("NO");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected ']' before '}' token
    7 |     int a[210000};
      |                 ^
      |                 ]
main.c:11:20: error: 'a' undeclared (first use in this function)
   11 |         scanf("%d",a+i);
      |                    ^
main.c:11:20: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.Scanner;

public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
String s=scan.next();
String t=scan.next();
int a=scan.nextInt();
int b=scan.nextInt();
String u=scan.next();

  if(s.equals("u")){
    a=a-1;
  }else{
    b=b-1;
  }
  System.out.println(a+" "+b)
}
}


Compiler output:
Main.java:17: error: ';' expected
  System.out.println(a+" "+b)
                             ^
1 error
Language: Java

mport java.util.Scanner;

public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
String s=scan.next();
String t=scan.next();
int a=scan.nextInt();
int b=scan.nextInt();
String u=scan.next();

  if(s.equals("u")){
    a=a-1;
  }else{
    b=b-1;
  }
  System.out.println(a+" "+b)
}
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
Main.java:17: error: ';' expected
  System.out.println(a+" "+b)
                             ^
2 errors
Language: Java

mport java.util.Scanner;

public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
String s=scan.next();
String t=scan.next();
int a=scan.nextInt();
int b=scan.nextInt();
String u=scan.next();

  if(s.equals(u)){
    a=a-1;
  }else{
    b=b-1;
  }
  System.out.println(a+" "+b)
}
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
Main.java:17: error: ';' expected
  System.out.println(a+" "+b)
                             ^
2 errors
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
  
  string s;
  getline(cin, s);
  
  string a = "", b= "";
  for(int i = 0; i<s.length(); ++i){
  	if(s[i] == ' '){
    	b = s.substr(i);
    }
    else{
    	a += s[i];
    }
  }
  
  int n1, n2;
  cin >> n1 >> n2;
  
  cin.ignore();
  getline(cin, s);
  
  if(strcmp(s, a) == 0)
    --n1;
  else
    --n2;
  
  cout << n1 << " " << n2;
    
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:13: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   26 |   if(strcmp(s, a) == 0)
      |             ^
      |             |
      |             std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
Language: C++

clude <bits/stdc++.h>
 
using namespace std;
 
int main()
{
int n,k;
long long sum=0,mx=0;
cin>>n>>k;
vector<double>dp(n);
for (int i=0;i<n;i++)
{
    long long a;
    cin>>a;
    dp[i]=a+1;
    sum+=dp[i];
    if (i>=k-1)
    {
        if (i!=k-1)
            sum-=dp[i-k];
         mx=max(mx,sum);
    }
 
}
cout<<setw(6)<<setprecision(6)<<mx/2.0;
    return 0;
}

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude <bits/stdc++.h>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: 'cin' was not declared in this scope
    9 | cin>>n>>k;
      | ^~~
a.cc:10:1: error: 'vector' was not declared in this scope
   10 | vector<double>dp(n);
      | ^~~~~~
a.cc:10:8: error: expected primary-expression before 'double'
   10 | vector<double>dp(n);
      |        ^~~~~~
a.cc:15:5: error: 'dp' was not declared in this scope
   15 |     dp[i]=a+1;
      |     ^~
a.cc:21:13: error: 'max' was not declared in this scope; did you mean 'mx'?
   21 |          mx=max(mx,sum);
      |             ^~~
      |             mx
a.cc:25:1: error: 'cout' was not declared in this scope
   25 | cout<<setw(6)<<setprecision(6)<<mx/2.0;
      | ^~~~
a.cc:25:7: error: 'setw' was not declared in this scope
   25 | cout<<setw(6)<<setprecision(6)<<mx/2.0;
      |       ^~~~
a.cc:25:16: error: 'setprecision' was not declared in this scope
   25 | cout<<setw(6)<<setprecision(6)<<mx/2.0;
      |                ^~~~~~~~~~~~