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

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

int main(){
    
    int main(){
        string s1,s2,s3;
        cin >> s1 >> s2 >> s3;
        
        cout << s1[0] << s2[0] << s3[0] << endl;
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    6 |     int main(){
      |             ^~
a.cc:6:13: note: remove parentheses to default-initialize a variable
    6 |     int main(){
      |             ^~
      |             --
a.cc:6:13: note: or replace parentheses with braces to value-initialize a variable
a.cc:6:15: error: a function-definition is not allowed here before '{' token
    6 |     int main(){
      |               ^
a.cc:11:6: error: expected '}' at end of input
   11 |     }
      |      ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.solve();
	}
 
	private void solve() {
		Scanner sc = new Scanner(System.in);
		String A = sc.next();
		String B = sc.next();
		String C = sc.next();
		System.out.println("A" + B.charAt(0) + "C");
	}
 
}

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

#include <iostream>

using namespace std;

int main(void){
  
  String name1, name2, name3, name0;
  
  cin >> name1 >> name2 >> name3;
  
  name0 = name1[0] + name2[0] + name3[0];
  
  cout << name0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'String' was not declared in this scope
    7 |   String name1, name2, name3, name0;
      |   ^~~~~~
a.cc:9:10: error: 'name1' was not declared in this scope
    9 |   cin >> name1 >> name2 >> name3;
      |          ^~~~~
a.cc:9:19: error: 'name2' was not declared in this scope
    9 |   cin >> name1 >> name2 >> name3;
      |                   ^~~~~
a.cc:9:28: error: 'name3' was not declared in this scope
    9 |   cin >> name1 >> name2 >> name3;
      |                            ^~~~~
a.cc:11:3: error: 'name0' was not declared in this scope
   11 |   name0 = name1[0] + name2[0] + name3[0];
      |   ^~~~~
Language: C++

#include <iostream>

using namespace: std;

int main(void){
  string FirstName, SecoundName, ThirdName;
  string abbreviation; //英語で略称
  
  //入力を全て受け取る：C++はスペースごとに区切って入力される
  cin >> FirstName >> SecoundName >> ThirdName;
  
  abbreviation = FirstName[0] + SecoundName[0] + ThirdName[0];
  
  cout << abbreviation;
  
  return 0;
}

Compiler output:
a.cc:3:16: error: expected identifier before ':' token
    3 | using namespace: std;
      |                ^
a.cc:3:16: error: expected ';' before ':' token
    3 | using namespace: std;
      |                ^
      |                ;
a.cc:3:16: error: expected unqualified-id before ':' token
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string FirstName, SecoundName, ThirdName;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:9: error: expected ';' before 'abbreviation'
    7 |   string abbreviation; //英語で略称
      |         ^~~~~~~~~~~~~
      |         ;
a.cc:10:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |   cin >> FirstName >> SecoundName >> ThirdName;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:10: error: 'FirstName' was not declared in this scope
   10 |   cin >> FirstName >> SecoundName >> ThirdName;
      |          ^~~~~~~~~
a.cc:10:23: error: 'SecoundName' was not declared in this scope
   10 |   cin >> FirstName >> SecoundName >> ThirdName;
      |                       ^~~~~~~~~~~
a.cc:10:38: error: 'ThirdName' was not declared in this scope
   10 |   cin >> FirstName >> SecoundName >> ThirdName;
      |                                      ^~~~~~~~~
a.cc:12:3: error: 'abbreviation' was not declared in this scope
   12 |   abbreviation = FirstName[0] + SecoundName[0] + ThirdName[0];
      |   ^~~~~~~~~~~~
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout << abbreviation;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
   string c;
   cin >>c;
char ch=c.at(0);
cout<<"A"+ch+"C"<<endl;

     
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    8 | cout<<"A"+ch+"C"<<endl;
      |       ~~~~~~^~~~
      |          |   |
      |          |   const char [2]
      |          const char*
Language: C++

#include<iostream>
using namespace std;
int main()
{
  string S;
  cin >> S;
  cout << "A" << S.at(0) << "B" endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected ';' before 'endl'
    7 |   cout << "A" << S.at(0) << "B" endl;
      |                                ^~~~~
      |                                ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  string S;
  string s;
  cin>>S>>s;
  cout<<A<<s[0]<<C<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'A' was not declared in this scope
    8 |   cout<<A<<s[0]<<C<<endl;
      |         ^
a.cc:8:18: error: 'C' was not declared in this scope
    8 |   cout<<A<<s[0]<<C<<endl;
      |                  ^
Language: C++

package main

import (
	"fmt"
	"bufio"
	"os"
	"strings"
)

func main(){
	var scanner = bufio.NewScanner(os.Stdin)

	var strs []string 
	if scanner.Scan() {
		strs = strings.Split(scanner.Text(), " ")
	}
	a,b,c := strs[0][0], strs[1][0], strs[2][0]
	
	fmt.Printf("%c%c%c", a,b,c)
}

Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
Language: Java

import java.util.Scanner;

calss Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    
    String A=sc.next();
    String B=sc.next();
    String C=sc.next();
    
    if(character.isUpperCase(B.charAt(0)){
      A.subString(0)+B.subString(0)+C.subString(0);
    }else{
      System.out.println("コンテストの略字を出力せよ");
    }
  }
}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
calss Main{
^
Main.java:12: error: not a statement
      A.subString(0)+B.subString(0)+C.subString(0);
                                   ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
  public static void main(String[] args){
                ^
  (use --enable-preview to enable unnamed classes)
Main.java:11: error: ')' expected
    if(character.isUpperCase(B.charAt(0)){
                                         ^
Main.java:17: error: class, interface, enum, or record expected
}
^
5 errors
Language: Java

package app;

import java.util.Scanner;

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

        Scanner sc = new Scanner(System.in);
        String AtCoder = sc.next();
        String s = sc.next();
        String Contest = sc.next();

        String AsC = AtCoder.substring(0, 1) + s.substring(0, 1) + Contest.substring(0, 1);

        System.out.println(AsC);

    }
}

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

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

#define INF_LL (int64)1e18
#define INF (int32)1e9
#define REP(i, n) for(int64 i = 0;i < (n);i++)
#define FOR(i, a, b) for(int64 i = (a);i < (b);i++)
#define all(x) x.begin(),x.end()
#define fs first
#define sc second

using int32 = int_fast32_t;
using uint32 = uint_fast32_t;
using int64 = int_fast64_t;
using uint64 = uint_fast64_t;
using PII = pair<int32, int32>;
using PLL = pair<int64, int64>;

const double eps = 1e-10;

template<typename A, typename B>inline void chmin(A &a, B b){if(a > b) a = b;}
template<typename A, typename B>inline void chmax(A &a, B b){if(a < b) a = b;}

template<typename T>
vector<T> make_v(size_t a){return vector<T>(a);}

template<typename T,typename... Ts>
auto make_v(size_t a,Ts... ts){
  return vector<decltype(make_v<T>(ts...))>(a,make_v<T>(ts...));
}

template<typename T,typename U,typename... V>
typename enable_if<is_same<T, U>::value!=0>::type
fill_v(U &u,const V... v){u=U(v...);}

template<typename T,typename U,typename... V>
typename enable_if<is_same<T, U>::value==0>::type
fill_v(U &u,const V... v){
  for(auto &e:u) fill_v<T>(e,v...);
}


int main(void) {
    string s[3];
    REP(i, 3) cin >> s[i];
    cout << "A"+s[1][0]+"C" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:46:24: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   46 |     cout << "A"+s[1][0]+"C" << endl;
      |                        ^~~~
      |                         |
      |                         const char [2]
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){

    string s="";
    getline(cin,s);
    int x=s.length();
  
        cout<<s[0]<<s[8]<<s[x-7];
    


Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: expected '}' at end of input
    9 |         cout<<s[0]<<s[8]<<s[x-7];
      |                                  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
string S,B,D;
cin>>S>>B>>D;
cout<<"A"+B.at(0)+"C"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    6 | cout<<"A"+B.at(0)+"C"<<endl;
      |       ~~~~~~~~~~~^~~~
      |          |        |
      |          |        const char [2]
      |          const char*
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
string S,B,D;
cin>>S>>B>>D;
cout<<"A"+'B.at(0)'+"C"<<endl;
}


Compiler output:
a.cc:6:11: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
    6 | cout<<"A"+'B.at(0)'+"C"<<endl;
      |           ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:20: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    6 | cout<<"A"+'B.at(0)'+"C"<<endl;
      |       ~~~~~~~~~~~~~^~~~
      |          |          |
      |          |          const char [2]
      |          const char*
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
string S,B,D;
cin>>S>>B>>D;
cout<<A+B.at(0)+C<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'A' was not declared in this scope
    6 | cout<<A+B.at(0)+C<<endl;
      |       ^
a.cc:6:17: error: 'C' was not declared in this scope
    6 | cout<<A+B.at(0)+C<<endl;
      |                 ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
string = S;
cin >> S;
cout << 'A' + S.at(0) + 'C' << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: expected unqualified-id before '=' token
    4 | string = S;
      |        ^
a.cc:5:8: error: 'S' was not declared in this scope
    5 | cin >> S;
      |        ^
Language: C++

#include<iostream>
using namespace std;
#include<string>
int main() {
           string s;
           getline(cin,s);
           for(int i=0;i<s.length();i++){
                   if(i==0){
                         cout<<s[0];
                          }
                   if(s[i}] ==' ') {
                          cout<<s[i+1];
                          }
}
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: expected ']' before '}' token
   11 |                    if(s[i}] ==' ') {
      |                          ^
      |                          ]
a.cc:11:26: error: expected ')' before '}' token
   11 |                    if(s[i}] ==' ') {
      |                      ~   ^
      |                          )
a.cc:11:26: error: expected primary-expression before '}' token
a.cc:11:27: error: expected primary-expression before ']' token
   11 |                    if(s[i}] ==' ') {
      |                           ^
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
#include<string>
int main() {
string s;
getline(cin,s);
for(int i=0;i<s.length();i++){
if(i==0){
cout<<s[0];
}
if(s[i}] =='') {
cout<<s[i+1];
}
}
} 

Compiler output:
a.cc:11:12: error: empty character constant
   11 | if(s[i}] =='') {
      |            ^~
a.cc: In function 'int main()':
a.cc:11:7: error: expected ']' before '}' token
   11 | if(s[i}] =='') {
      |       ^
      |       ]
a.cc:11:7: error: expected ')' before '}' token
   11 | if(s[i}] =='') {
      |   ~   ^
      |       )
a.cc:11:7: error: expected primary-expression before '}' token
a.cc:11:8: error: expected primary-expression before ']' token
   11 | if(s[i}] =='') {
      |        ^
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
#include<string>
int main() {
string m;
getline(cin, s);
for(int i=0;i<s.length();i++){
if(i==0){
cout<<s[0];
}
if(s[i}] =='') {
cout<<s[i+1];
}
}
} 

Compiler output:
a.cc:11:12: error: empty character constant
   11 | if(s[i}] =='') {
      |            ^~
a.cc: In function 'int main()':
a.cc:6:14: error: 's' was not declared in this scope
    6 | getline(cin, s);
      |              ^
a.cc:11:7: error: expected ']' before '}' token
   11 | if(s[i}] =='') {
      |       ^
      |       ]
a.cc:11:7: error: expected ')' before '}' token
   11 | if(s[i}] =='') {
      |   ~   ^
      |       )
a.cc:11:7: error: expected primary-expression before '}' token
a.cc:11:8: error: expected primary-expression before ']' token
   11 | if(s[i}] =='') {
      |        ^
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
#include<string>
int main() {
string m;
getline(cin, s);
for(int i=0;i<s.length();i++){
if(i==0){
cout<<s[0];
}
if(s[i}] ==' ') {
cout<<s[i+1];
}
}
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 's' was not declared in this scope
    6 | getline(cin, s);
      |              ^
a.cc:11:7: error: expected ']' before '}' token
   11 | if(s[i}] ==' ') {
      |       ^
      |       ]
a.cc:11:7: error: expected ')' before '}' token
   11 | if(s[i}] ==' ') {
      |   ~   ^
      |       )
a.cc:11:7: error: expected primary-expression before '}' token
a.cc:11:8: error: expected primary-expression before ']' token
   11 | if(s[i}] ==' ') {
      |        ^
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include<iostream>
#include<string.h>
using namespace std;
int main(){
	string s;
	getline(cin,s);
	for(int j=0;j<s.length();j++){
	
	for(char i='A';i<='Z';i++){
		
		
		if(i==s[j])
          cout<<i;
		  
		  		
	}
	
	
	
	
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
	string x,y,z;
          cin>>x,y,z;
cout<<x[0]<<y[0]<<z[0];

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected '}' at end of input
    6 | cout<<x[0]<<y[0]<<z[0];
      |                        ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<stdio.h>
#include<String.h>
using namespace std;
int main(){
	string x,y,z;
	scanf("%s %s %s",&x,&y,&z);
	printf("%s %s %s",x[0],y[0],z[0]);
}

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

#inculde <stdio.h>
int main(){
  char str[1024];
  scanf("%s",str);
  printf("A%cC\n",str[0]);
 return (0); 
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%s",str);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inculde <stdio.h>
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%s",str);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   printf("A%cC\n",str[0]);
      |   ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

int main () {
  string A,B,C;
  cin >> A >> B >> C;
  cout << A[0] << B[0] << C[0] endl;
}




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

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

int main() {
  string A,B,C;
  cin >> A >> B >> C;
  cout << A[0] << B[0] << C[0] endl;
}


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

#include<iostream>
#include<string.h>
using namespace std;
int main(){
string a={'A','t','c','o','d','e','r'};
string s;
string b={'C','o','n','t','e','s','t'};
getline(cin,s);
cout<<a[0]<<b[0]<<c[0];
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: 'c' was not declared in this scope
    9 | cout<<a[0]<<b[0]<<c[0];
      |                   ^
Language: C++

#include<iostream>
#include<sting.h>
using namespace std;
int main(){
string a={'A','t','c','o','d','e','r'};
string s;
string b={'C','o','n','t','e','s','t'};
getline(cin,s);
cout<<a[0]<<b[0]<<c[0];
}

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

#include<iostream>
#include<sting.h>
using namespace std;
int main(){
string a,b,c;
cin>>a>>b>>c;
cout<<a[0]<<b[0]<<c[0];
}

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

#include<bits/stdc++.h>
using namespace std;
bool upper(char n)
{
return(n>=65&&n<97)
}
int main()
{
string a;
getlin (cin,a);
int len=a.length();
if(upper(a[0]))
cout<<a[0];
for(int i=1;i<len;i++)
{
if (upper(a[i])&&a[i-1]==' ')
cout<<a[i];
}
}


Compiler output:
a.cc: In function 'bool upper(char)':
a.cc:5:20: error: expected ';' before '}' token
    5 | return(n>=65&&n<97)
      |                    ^
      |                    ;
    6 | }
      | ~                   
a.cc: In function 'int main()':
a.cc:10:1: error: 'getlin' was not declared in this scope; did you mean 'getline'?
   10 | getlin (cin,a);
      | ^~~~~~
      | getline
Language: C++

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

int main(){
    string name;
    cin >> name;

    cout << A << name.at(8) << C << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'A' was not declared in this scope
    8 |     cout << A << name.at(8) << C << endl;
      |             ^
a.cc:8:32: error: 'C' was not declared in this scope
    8 |     cout << A << name.at(8) << C << endl;
      |                                ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	string S;
	cin >>a>>S>>b;
	char s;
	s = S[0];
	cout << "A"<<s <<"C"<< endl;
}


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

#include<iostream>

using namespace std;
int main()
{
  char s[100]={'\0'};
   cin.getline(s);
   for( int i=0;i<100;i++)
    if(s[i]>=65&&s[i]<=90)
    {cout <<s[i];}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: no matching function for call to 'std::basic_istream<char>::getline(char [100])'
    7 |    cin.getline(s);
      |    ~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/iostream:42,
                 from a.cc:1:
/usr/include/c++/14/istream:740:5: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(char_type*, std::streamsize, char_type) [with _CharT = char; _Traits = std::char_traits<char>; char_type = char; std::streamsize = long int]'
  740 |     basic_istream<char>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:740:5: note:   candidate expects 3 arguments, 1 provided
/usr/include/c++/14/istream:520:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::getline(char_type*, std::streamsize) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; char_type = char; std::streamsize = long int]'
  520 |       getline(char_type* __s, streamsize __n)
      |       ^~~~~~~
/usr/include/c++/14/istream:520:7: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include<bits/stdc++.h>

using namespace std;
int main()
{
  char s[100]={'\0'};
   cin.getline(s);
   for( int i=0;i<100;i++)
    if(s[i]>=65&&s[i]<=90)
    {cout <<s[i];}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: no matching function for call to 'std::basic_istream<char>::getline(char [100])'
    7 |    cin.getline(s);
      |    ~~~~~~~~~~~^~~
In file included 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,
                 from a.cc:1:
/usr/include/c++/14/istream:740:5: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(char_type*, std::streamsize, char_type) [with _CharT = char; _Traits = std::char_traits<char>; char_type = char; std::streamsize = long int]'
  740 |     basic_istream<char>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:740:5: note:   candidate expects 3 arguments, 1 provided
/usr/include/c++/14/istream:520:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::getline(char_type*, std::streamsize) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; char_type = char; std::streamsize = long int]'
  520 |       getline(char_type* __s, streamsize __n)
      |       ^~~~~~~
/usr/include/c++/14/istream:520:7: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include<iostream>
using namespace std;
int main()
{
   char s[99]={'/0'};
   cin.getline(s,99);

   for( int i=0;i<100;i++)
    if(s[i]>=65&&s[i]<=90)
    {cout <<s[i];}
    return 0;
}


Compiler output:
a.cc:5:16: warning: multi-character character constant [-Wmultichar]
    5 |    char s[99]={'/0'};
      |                ^~~~
a.cc: In function 'int main()':
a.cc:5:16: error: narrowing conversion of '12080' from 'int' to 'char' [-Wnarrowing]
Language: C++

#include<iostream>
using namespace std;
int main()
{
   char s[99]={'/0'};
   cin.getline(s,99);

   for( int i=0;i<100;i++)
    if(s[i]>=65&&s[i]<=90)
    {cout <<s[i];}
    return 0;
}



Compiler output:
a.cc:5:16: warning: multi-character character constant [-Wmultichar]
    5 |    char s[99]={'/0'};
      |                ^~~~
a.cc: In function 'int main()':
a.cc:5:16: error: narrowing conversion of '12080' from 'int' to 'char' [-Wnarrowing]
Language: C

#include<iostream>
#include<string>
#include<bits/stdc++.h>
using namespace std;
char s[100];
int main(){
 int a=3;
char s2[a];
int i=0;
scanf("%[^\n]",&s);
a=0;
s2[a]=s[0];
a++;
for ( i=0;i<100;i++){

if ( a<3&&s[i]==' ')
{
++i;
s2[a]=s[i];
a++;
}
}

for(a=0;a<3;a++)
cout<<s2[a];
}


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

#include<iostream>
#include<string>

using namespace std;
char s[100];
int main(){
 int a=3;
char s2[a];
int i=0;
scanf("%[^\n]",&s);
a=0;
s2[a]=s[0];
a++;
for ( i=0;i<100;i++){

if ( a<3&&s[i]==' ')
{
++i;
s2[a]=s[i];
a++;
}
}

for(a=0;a<3;a++)
cout<<s2[a];
}


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

#include<bits/stdc++.h>
using namespace std;
char s[100];
int main(){

scanf("%[^\n]",s);
for (int i=0;i<100;i++){


if (int (s[i])>=65&&int(s[i])<=90)
cout<<s[i];
}
}


Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
int main()
{
   char s[100]={'/0'};
   cin.getline(s,100);

   for( int i=0;i<100;i++)
    if(s[i]>=65&&s[i]<=90)
    cout <<s[i];
    return 0;
}

Compiler output:
a.cc:5:17: warning: multi-character character constant [-Wmultichar]
    5 |    char s[100]={'/0'};
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:5:17: error: narrowing conversion of '12080' from 'int' to 'char' [-Wnarrowing]
Language: C++

#include<iostream>
using namespace std;
int main()
{
   char S[90]={'A','t','c','o','d','e','r','/0'};
   cin.getline(S,90);

   for( int i=0;i<90;i++)
    if(S[i]>=65&&S[i]<=90)
    cout <<S[i];
    return 0;
}

Compiler output:
a.cc:5:44: warning: multi-character character constant [-Wmultichar]
    5 |    char S[90]={'A','t','c','o','d','e','r','/0'};
      |                                            ^~~~
a.cc: In function 'int main()':
a.cc:5:44: error: narrowing conversion of '12080' from 'int' to 'char' [-Wnarrowing]
Language: C++

#include<iostream>
using namespace std;
int main()
{
   char S[90]={'/0'};
   cin.getline(S,90);

   for( int i=0;i<90;i++)
    if(S[i]>=65&&S[i]<=90)
    cout <<S[i];
    return 0;
}


Compiler output:
a.cc:5:16: warning: multi-character character constant [-Wmultichar]
    5 |    char S[90]={'/0'};
      |                ^~~~
a.cc: In function 'int main()':
a.cc:5:16: error: narrowing conversion of '12080' from 'int' to 'char' [-Wnarrowing]
Language: C++

#include<iostream>
using namespace std;
int main()
{
   char S[100]={'/0'};
   cin.getline(S,100);

   for( int i=0;i<100;i++)
    if(S[i]>=65&&S[i]<=90)
    cout <<S[i];
    return 0;
}


Compiler output:
a.cc:5:17: warning: multi-character character constant [-Wmultichar]
    5 |    char S[100]={'/0'};
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:5:17: error: narrowing conversion of '12080' from 'int' to 'char' [-Wnarrowing]
Language: C++

#include<iostream>
using namespace std;
int main()
{
   char s[100]={'/0'};
   cin.getline(s,100);

   for( int i=0;i<100;i++)
    if(s[i]>=65&&s[i]<=90)
    cout <<s[i];
    return 0;
}


Compiler output:
a.cc:5:17: warning: multi-character character constant [-Wmultichar]
    5 |    char s[100]={'/0'};
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:5:17: error: narrowing conversion of '12080' from 'int' to 'char' [-Wnarrowing]
Language: C++

#include<iostream>
#include<string.h>
using namespace std;
int main()
{
   char s[100]={'/0'};
   cin.getline(s,100);

   for( int i=0;i<100;i++)
    if(s[i]>=65&&s[i]<=90)
    cout <<s[i];
    return 0;
}


Compiler output:
a.cc:6:17: warning: multi-character character constant [-Wmultichar]
    6 |    char s[100]={'/0'};
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:6:17: error: narrowing conversion of '12080' from 'int' to 'char' [-Wnarrowing]
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
int x=s.length();
whlie(1){

scanf("%[^\n]",s);
int x=s.length();
if (int (s[i])>=65&&int(s[i])<=90)
cout<<s[i];
x--
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'whlie' was not declared in this scope
    6 | whlie(1){
      | ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
	string a,b,c;
	cin>>a>>b>>c;
	cout<<a[0<<b[0]<<c[0];
	return 0;		
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:30: error: expected ']' before ';' token
    6 |         cout<<a[0<<b[0]<<c[0];
      |                              ^
      |                              ]
Language: C++

#include<bits\stdc++.h>
using namespace std;
int main(){
	string a;
       string b;
        string c;
	cin>>a>>b>>c;
	cout<<a[0]<<b[0]<<c[0];
	return 0;		
}

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

#include<bits/stdc++.h>
using namespace std;
char s[100];
int main(){
scanf("%[^\n]",s);
for (int i=0;i<100;i++){


if (int (s[i])>=65&&int(s[i])<=90)
cout<<s[i];
}
}


Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
int main(){
string x,y,z;
cin>>x>>y>>z;
cout<<x[0]<<y[0]<<z[0];
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'string' was not declared in this scope
    3 | string x,y,z;
      | ^~~~~~
a.cc:3:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | cin>>x>>y>>z;
      | ^~~
      | std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:6: error: 'x' was not declared in this scope
    4 | cin>>x>>y>>z;
      |      ^
a.cc:4:9: error: 'y' was not declared in this scope
    4 | cin>>x>>y>>z;
      |         ^
a.cc:4:12: error: 'z' was not declared in this scope
    4 | cin>>x>>y>>z;
      |            ^
a.cc:5:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 | cout<<x[0]<<y[0]<<z[0];
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
string x,y,z;
cin>>x>>y>>z;
cout<<x[0]<<y[0]<<z[0]
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected ';' before 'return'
    6 | cout<<x[0]<<y[0]<<z[0]
      |                       ^
      |                       ;
    7 | return 0;
      | ~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	char s;
scanf("%[^\n]",s);
for (int i=0;;i++)

if (int (s[i])>=65&&int(s[i])<=90)
printf("%[^\n]",s[i]);

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: invalid types 'char[int]' for array subscript
    8 | if (int (s[i])>=65&&int(s[i])<=90)
      |           ^
a.cc:8:26: error: invalid types 'char[int]' for array subscript
    8 | if (int (s[i])>=65&&int(s[i])<=90)
      |                          ^
a.cc:9:18: error: invalid types 'char[int]' for array subscript
    9 | printf("%[^\n]",s[i]);
      |                  ^
a.cc:9:23: error: expected '}' at end of input
    9 | printf("%[^\n]",s[i]);
      |                       ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	char s;
scanf("%[^\n]",s);
int x=s;
while(1){

/*scanf("%[^\n]",s);
int x=s.length();*/
if (int (s[i])>=65&&int(s[i])<=90)
cout<<s[i];
x--
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'i' was not declared in this scope
   11 | if (int (s[i])>=65&&int(s[i])<=90)
      |            ^
a.cc:13:4: error: expected ';' before '}' token
   13 | x--
      |    ^
      |    ;
   14 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
scanf("%[^\n]",s);
int x=s.length();
whlie(1){

/*scanf("%[^\n]",s);
int x=s.length();*/
if (int (s[i])>=65&&int(s[i])<=90)
cout<<s[i];
x--
}
}

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

include<bits/stdc++.h>
using namespace std;
int main(){
	int n,d,x,r=0;
	scanf("%d",&x);
	n=x;
	while(x!=0){
		d=x%10;
		r=r*10+d;
		x=x/10;
	}
	if(r==n)
	printf("Yes");
	else
	printf("No");
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf' was not declared in this scope
    5 |         scanf("%d",&x);
      |         ^~~~~
a.cc:13:9: error: 'printf' was not declared in this scope
   13 |         printf("Yes");
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include<bits/stdc++.h>
a.cc:15:9: error: 'printf' was not declared in this scope
   15 |         printf("No");
      |         ^~~~~~
a.cc:15:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<iosteam>
using namespace std;
int main(){
	string a ,b ,c;
	cin>>a>>b>>c;
	for(int i=0;i<100;i++)
		if(65<=(int)b[i]<=90){
			cout<<"A"<<b[0]<<"c";
			break;
		}
	
	
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	char s[100];
	printf("AtCoder ");
	scanf("%c ",&s);
	int q=strlen(s);
	int m=q-1;
	if(s[0]>='A'&&s[0]<='Z'){
		for(int i=1;i<=m;i++)
	//	if(s[i]>96&&s[i]<123){ //
			printf("Contest\n");
			printf("A%cC", s[0]);
		}
		else{
			printf("Error\n");
		}	
	}	
	else{
		printf("Error\n");
	}
			

	
	return 0;
}

Compiler output:
a.cc:20:9: error: expected unqualified-id before 'else'
   20 |         else{
      |         ^~~~
a.cc:26:9: error: expected unqualified-id before 'return'
   26 |         return 0;
      |         ^~~~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	char m[]={'AtCoder '}, s[100], n[]={' Contest'};
	scanf("%c ",&s);
	if(s[0]>='A'&&s[0]<='Z'){
		printf("%c%c%c", m[0], s[0], n[0]);
		
	}	
	else{
		printf("Error\n");
	}	
	return 0;
}

Compiler output:
a.cc:5:19: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    5 |         char m[]={'AtCoder '}, s[100], n[]={' Contest'};
      |                   ^~~~~~~~~~
a.cc:5:45: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    5 |         char m[]={'AtCoder '}, s[100], n[]={' Contest'};
      |                                             ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:19: error: narrowing conversion of '1684369952' from 'int' to 'char' [-Wnarrowing]
    5 |         char m[]={'AtCoder '}, s[100], n[]={' Contest'};
      |                   ^~~~~~~~~~
a.cc:5:45: error: narrowing conversion of '1952805748' from 'int' to 'char' [-Wnarrowing]
    5 |         char m[]={'AtCoder '}, s[100], n[]={' Contest'};
      |                                             ^~~~~~~~~~
Language: C++

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

int main() {
  string s;
  cin s;
  char x;
  x=s.at(8)
  cout << "A" << 'x' << "B" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 's'
    6 |   cin s;
      |      ^~
      |      ;
a.cc:8:12: error: expected ';' before 'cout'
    8 |   x=s.at(8)
      |            ^
      |            ;
    9 |   cout << "A" << 'x' << "B" << endl;
      |   ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
string s;
getline(cin,s);

if(isupper(s[0])
{
cout<<s[0];
}
for( int i=1 ; i<s.length() ; i++)
{
if(isupper(s[i]) && s[i-1]==' ' ){
cout<<s[i];
}}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected ')' before '{' token
    7 | if(isupper(s[0])
      |   ~             ^
      |                 )
    8 | {
      | ~                
a.cc:11:16: error: 'i' was not declared in this scope
   11 | for( int i=1 ; i<s.length() ; i++)
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
string s;
getline(cin,s);

if(isupper(s[0])
{
cout<<s[0];
}
for(int i=1;i<s.length();i++)
{
if(isupper(s[i])&&s[i-1]==' '){
cout<<s[i];
}}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected ')' before '{' token
    7 | if(isupper(s[0])
      |   ~             ^
      |                 )
    8 | {
      | ~                
a.cc:11:13: error: 'i' was not declared in this scope
   11 | for(int i=1;i<s.length();i++)
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
string s;
get line(cin,s);

if(isupper(s[0])
{
cout<<s[0];
}
for(int i=1;i<s.length();I++)
{
if(isupper(s[I])&&s[i-1]==' '){
cout<<s[i];
}}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: expected ';' before 'line'
    5 | get line(cin,s);
      |    ^~~~~
      |    ;
a.cc:5:16: error: statement cannot resolve address of overloaded function
    5 | get line(cin,s);
      |                ^
a.cc:7:17: error: expected ')' before '{' token
    7 | if(isupper(s[0])
      |   ~             ^
      |                 )
    8 | {
      | ~                
a.cc:11:13: error: 'i' was not declared in this scope
   11 | for(int i=1;i<s.length();I++)
      |             ^
a.cc:11:26: error: 'I' was not declared in this scope
   11 | for(int i=1;i<s.length();I++)
      |                          ^
Language: Java

import java.util.Scanner;
public class ah{

public static void main(string[] args){
Scanner in=new Scanner(System in);
int t=in.nextInt();
int sum=0;
int arr=new int [t];
while(t-->0){
	int a=in.nextInt();
		int b=in.nextInt();
		sum-=a;
		sum+=b;
		arr[t]=sum;
}
Arrays.sort(arr)
System.out.println(ar[ar.length-1]);}}

Compiler output:
Main.java:5: error: ')' or ',' expected
Scanner in=new Scanner(System in);
                             ^
Main.java:5: error: not a statement
Scanner in=new Scanner(System in);
                              ^
Main.java:5: error: ';' expected
Scanner in=new Scanner(System in);
                                ^
Main.java:16: error: ';' expected
Arrays.sort(arr)
                ^
4 errors
Language: C++

#include<bits/c++.h>
using namespace std;
int main()
{string s1,s2,s3;
cin>>s1>>s2>>s3; 
Cout<<s1[0]<<s2[0]<<s3[0];
return 0;
}

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



/*@author hussein zayed ;
    ___  ___
   |\  \|\  \
   \ \  \_\  \
    \ \   ___ \USSEIN
     \ \  \\ \ \
      \ \__\\ \_\
       \|__| \|__|
****************************************
*/

#include <bits/stdc++.h>
using namespace std;
#define fr for(int i=0;i<n;++i)
#define fr1 for(int i=1;i<=n;++i)
#define cinA for(int i=0;i<n;++i){cin>>arr[i];}
#define cinA1 for(int i=1;i<=n;++i){cin>>arr[i];}
#define coutA for(int i=0;i<n;++i){cout<<arr[i]<<" ";}
#define ll long long
#define lnarray sizeof(arr)/sizeof(*arr)
#define vi vector<int>
#define vs vector<string>
void Fast()
{
    ios_base :: sync_with_stdio( 0 ) ;
    cin.tie( 0 ) ;
    cout.tie( 0 ) ;
}
inline int RD()
{
    int i ;
    cin>>i;
    return i;
}

inline float RF()
{
    float i ;
    cin>>i;
    return i;
}

inline double RDO()
{
    double i ;
    cin>>i;
    return i;
}

inline string RS()
{
    string i ;
    cin>>i;
    return i;
}

inline ll RLL()
{
    ll i ;
    cin>>i;
    return i;
}

int cm[200000];

ll sumSet(ll n)
{
    return (1ll*n*(n+1))/2;
}
string s;


bool isPrime(int n)
{
    if(n==1)
        return false;
    for(int i=2; i*i<=n; ++i)
    {
        if(n%i==0)
            return false;
    }
    return true;
}
int sumDigit(int n){
int sum =0;
  while (n != 0)
    {
        sum+= + n % 10;
        n = n / 10;
    }
    return sum;
}

ll power2(int n){
  ll ans=(1<<n);
  return ans;
}

ll sumpow2(ll n){
 ll sum=(n*(n+1)*(2*n-1))/6;
 return sum;
}
map<int ,int> mp;
vi vr;
int main(){
    Fast();
//freopen("output.txt" , "w" , stdout);
//freopen("wall.in" , "r" , stdin);




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

#include<bits/stdc++.h>
#include<stdio.h>
using namespace std;
int main(){
string s;
getline(cin,s);
cout<<s;
printf("%c", s[0]);
for(int i=0;i<s.length(); ++i)
{
(if s[i]=='')
printf("%c", s[i+1]);
}
return0;
}

Compiler output:
a.cc:11:11: error: empty character constant
   11 | (if s[i]=='')
      |           ^~
a.cc: In function 'int main()':
a.cc:11:2: error: expected primary-expression before 'if'
   11 | (if s[i]=='')
      |  ^~
a.cc:11:2: error: expected ')' before 'if'
   11 | (if s[i]=='')
      | ~^~
      |  )
a.cc:14:1: error: 'return0' was not declared in this scope
   14 | return0;
      | ^~~~~~~
Language: C++

#include<bits/stdc++.h>
#include<stdio.h>
using namespace std;
int main(){
	char s[101];
	gets(s);
	
	if(s[8]<'a'){
		printf("A%cC",s[8]);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(s);
      |         ^~~~
      |         getw
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	char s[101];
	gets(s);
	
	if(s[8]<'a'){
		printf("A%cC",s[8]);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    5 |         gets(s);
      |         ^~~~
      |         getw
Language: C++

#include<bits/stdc++.h>
#include<cstring>
#include<cstdio>
using namespace std;
int main()
{
	char m[20], n[20], l[20];
	printf("please enter the first name of contest\n");
	gets(m);
	printf("please enter the second name of contest\n");
	gets(n);
	printf("please enter the third name of contest\n");
	gets(l);
	printf("%c%c%c\n", m[0], n[0], l[0]);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    9 |         gets(m);
      |         ^~~~
      |         getw
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main() {
	char a[8];
	char b[100];
	char c[8];
	cin >> a >> b >> c;
	cout << a[0] << b[0] << c[0] << endl ;



Compiler output:
a.cc: In function 'int main()':
a.cc:9:47: error: expected '}' at end of input
    9 |         cout << a[0] << b[0] << c[0] << endl ;
      |                                               ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
#include<cstring>
#include<cstdio>
using namespace std;
int main()
{
	char m[20], n[20], l[20];
	printf("please enter the name of contest\n");
	gets(m );
	gets(n);
	gets(l);
	printf("%c%c%c\n", m[0], n[0], l[0]);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    9 |         gets(m );
      |         ^~~~
      |         getw
Language: C++


    using namespace std;
    int main (){
     string a,b,c;
    cin>>a>>b>>c;
    cout<<a[0]<<b[0]<<c[0]<<endl;
    return 0;
     
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:4:6: error: 'string' was not declared in this scope
    4 |      string a,b,c;
      |      ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | 
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin>>a>>b>>c;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:5:10: error: 'a' was not declared in this scope
    5 |     cin>>a>>b>>c;
      |          ^
a.cc:5:13: error: 'b' was not declared in this scope
    5 |     cin>>a>>b>>c;
      |             ^
a.cc:5:16: error: 'c' was not declared in this scope
    5 |     cin>>a>>b>>c;
      |                ^
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout<<a[0]<<b[0]<<c[0]<<endl;
      |     ^~~~
a.cc:6:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:29: error: 'endl' was not declared in this scope
    6 |     cout<<a[0]<<b[0]<<c[0]<<endl;
      |                             ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 |
Language: C++


    int main (){
     string a,b,c;
    cin>>a>>b>>c;
    cout<<a[0]<<b[0]<<c[0]<<endl;
    return 0;
     
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:3:6: error: 'string' was not declared in this scope
    3 |      string a,b,c;
      |      ^~~~~~
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>a>>b>>c;
      |     ^~~
a.cc:4:10: error: 'a' was not declared in this scope
    4 |     cin>>a>>b>>c;
      |          ^
a.cc:4:13: error: 'b' was not declared in this scope
    4 |     cin>>a>>b>>c;
      |             ^
a.cc:4:16: error: 'c' was not declared in this scope
    4 |     cin>>a>>b>>c;
      |                ^
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout<<a[0]<<b[0]<<c[0]<<endl;
      |     ^~~~
a.cc:5:29: error: 'endl' was not declared in this scope
    5 |     cout<<a[0]<<b[0]<<c[0]<<endl;
      |                             ^~~~