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

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

void main() {
        char number[];
        printf("数値を入力してください>");
        scanf("%[0123456789]" , number);

        printf("入力された値 = %s\n" , number);
	if(number < 100 || number > 999) {
	        printf("数値100-999の範囲で入力してください.\n");
	        return;
	}

    char str1[] = "ABC";

    strcat(str1, number);     /* 文字型配列に文字型配列を連結 */
    printf("%s\n", str1);

    return;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:14: error: storage size of 'number' isn't known
    5 |         char number[];
      |              ^~~~~~
a.cc:12:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |                 return;
      |                 ^~~~~~
a.cc:20:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   20 |     return;
      |     ^~~~~~
Language: C++

#inclide<iostream>
using namespace std;

int  x;
int main(){
cin>>x;
cout<<"ABC"<<x<<endl;
return 0;
}

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

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

int main()
{
    int N;
    char s[7]="ABC";
    char t[4]="\0";

    scanf("%d\n",&N);

    itoa(N,t,10);
    strcat(s,t);

    printf("%s\n",s);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:5: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
   13 |     itoa(N,t,10);
      |     ^~~~
Language: C++

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<algorithm>
using namespace std;


int main()
{
    char str[100];
    int n;
    gets(str);
    for( int i=0;str[i];i++ )
    {
        if ( str[i] >='0' && str[i]<='9' )
            n=n*10+str[i]-'0' ;
    }
    printf("%c\n",str);
    return 0;
}

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

#include <stdio.h>
int main(){
    int input,y=2,x=0;
    scanf("%d",&input);
    while(y<input){
        y=y*2
    }
    printf("%d\n", y);

}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected ';' before '}' token
    6 |         y=y*2
      |              ^
      |              ;
    7 |     }
      |     ~
Language: C++

#include <stdio.h>
#include <string.h>
int main()
{
	int n;
	char bur[4];
	char out[7] = {"ABC"};
	scanf_s("%d", &n, sizeof(int));
	snprintf(bur, 4, "%d", n);
	strcat_s(out, bur);
	printf("%s", out);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    8 |         scanf_s("%d", &n, sizeof(int));
      |         ^~~~~~~
      |         scanf
a.cc:10:9: error: 'strcat_s' was not declared in this scope; did you mean 'strcat'?
   10 |         strcat_s(out, bur);
      |         ^~~~~~~~
      |         strcat
Language: C

#include<stdio.h>
int main(){
int cnt=0;

scanf("%d",&cnt);

printf("ABC);
printf("%d\n",cnt);
}

Compiler output:
main.c: In function 'main':
main.c:7:8: warning: missing terminating " character
    7 | printf("ABC);
      |        ^
main.c:7:8: error: missing terminating " character
    7 | printf("ABC);
      |        ^~~~~~
main.c:8:19: error: expected ')' before ';' token
    8 | printf("%d\n",cnt);
      |                   ^
      |                   )
main.c:7:7: note: to match this '('
    7 | printf("ABC);
      |       ^
main.c:8:1: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    8 | printf("%d\n",cnt);
      | ^~~~~~~~~~~~~~~~~~
      | |
      | int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:8:20: error: expected ';' before '}' token
    8 | printf("%d\n",cnt);
      |                    ^
      |                    ;
    9 | }
      | ~
Language: C

#include<stdio.h>
int main(){
int cnt=0;

scanf("%d",&cnt);

printf("ABC);
printf("%d\n",cnt)
}

Compiler output:
main.c: In function 'main':
main.c:7:8: warning: missing terminating " character
    7 | printf("ABC);
      |        ^
main.c:7:8: error: missing terminating " character
    7 | printf("ABC);
      |        ^~~~~~
main.c:8:19: error: expected ')' before '}' token
    8 | printf("%d\n",cnt)
      |                   ^
      |                   )
    9 | }
      | ~                  
main.c:7:7: note: to match this '('
    7 | printf("ABC);
      |       ^
main.c:8:1: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    8 | printf("%d\n",cnt)
      | ^~~~~~~~~~~~~~~~~~
      | |
      | int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:8:19: error: expected ';' before '}' token
    8 | printf("%d\n",cnt)
      |                   ^
      |                   ;
    9 | }
      | ~
Language: C++

#include<set>
#include<map>
#include<stack>
#include<queue>
#include<deque>
#include<cstdio>
#include<string>
#include<vector>
#include<math.h>
#include<time.h>
#include<utility>
#include<cstdlib>
#include<sstream>
#include<cstring>
#include<stdio.h>
#include<iomanip>
#include<iostream>
#include<conio.h>
#include<algorithm>
using namespace std;
int main(){
	int n;
	cin>>n;
	cout<<"ABC"<<n;
	return 0;
}

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

#include <stdio.h>

int main(void)
{
	int N = 0;

	scanf_s("%d", &N, 4);

	if (100 <= N && N <= 999) {
		printf("ABC%d", N);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scanf_s("%d", &N, 4);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <cstdlib> //abs　絶対値

using namespace std;

int main() {
	int n, ans;
	cin >> n;
	//vector <int> A(n);
	//for (int i = 0; i < n; i++) {
		//cin >> A[i];
	//}
	ans = "ABC" + n;
	//sort(A.begin(), A.end());

	cout << ans << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   15 |         ans = "ABC" + n;
      |               ~~~~~~^~~
      |                     |
      |                     const char*
Language: C

#include <iostream>
#define FI(__n) for(int i = 0; i < __n; ++i)
#define FJ(__n) for(int j = 0; j < __n; ++j)
#define INT_MAX 2147483647
#define INT_MIN -2147483648
#define l first
#define r second
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int MOD=1000000007;
int solve()
{
    int a;
    cin>>a;
    cout<<"ABC"<<a;
    return 0;
}
int main()
{
    ofstream coutf;
    coutf.open("output.txt");
    ifstream cinf;
    cinf.open("input.txt");
    solve();
    cinf.close();
    coutf.close();
    return 0;
}


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

#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<queue>
#include<vector>
#include<cstdio>
#include<iomanip>
using namespace std;
//int father[100001];
/*int cmp(wo a,wo b)
return a.   <b.   ;
*/
/*
void unionn (int x,int y){
x=find(x);y=find(y);
father[y]=x;
}
int find(int x)
{
if(father[x]!=x)father[x]=find(father[x]);
return father[x];
}
int judge(int a,int b){
if(find(a)!=find(b))return 0;
else return 1;
}
*/
/*
int dij(){
for(int i=1;i<=n;i++){
	for(int j=i+1;j<=n;j++){
		t++;
		dis[t].distance=0;
	   for(int k=0;k<7;k++){
	   	if(car[i][k]!=car[j][k]){
	   		dis[t].distance++;
		   }
	   }
	   dis[t].x=i;dis[t].y=j;
	}
}
for(int i=1;i<=n;i++){
	father[i]=i;
}
sort(dis+1,dis+t+1,cmp);
for(int i=1;i<=t;i++){
	if(find(dis[i].x)!=find(dis[i].y)){
		unionn(dis[i].x,dis[i].y);
		ans+=dis[i].distance;
	}
}
}
?
*/
int main(){
long long a[101111]={0},ans,n;
//char b[100001];
cin>>n;
/*for(int i=1;i<=n;i++){
cin>>a[i];
}*/
/*
if()cout<<"No";
else cout<<"Yes";
*/
?
cout<</*fixed<<setprecision()*/"ABC"<<n<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:67:1: error: expected primary-expression before '?' token
   67 | ?
      | ^
a.cc:68:46: error: expected ':' before ';' token
   68 | cout<</*fixed<<setprecision()*/"ABC"<<n<<endl;
      |                                              ^
      |                                              :
a.cc:68:46: error: expected primary-expression before ';' token
Language: C

#include <bits/stdc++.h>
#define FI(__n) for(int i = 0; i < __n; ++i)
#define FJ(__n) for(int j = 0; j < __n; ++j)
#define INT_MAX 2147483647
#define INT_MIN -2147483648
#define l first
#define r second
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int MOD=1000000007;
int solve()
{
    int a;
    cin>>a;
    cout<<"ABC"<<a;
    return 0;
}
int main()
{
    ofstream coutf;
    coutf.open("output.txt");
    ifstream cinf;
    cinf.open("input.txt");
    solve();
    cinf.close();
    coutf.close();
    return 0;
}


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

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

int main(int argc, char *argv[]) {
        int num = atoi(argv[1]);

        printf("ABC%d", num);
        return 0;
}
~                                                                               
~                                                                               
~                        

Compiler output:
main.c:10:1: error: expected identifier or '(' before '~' token
   10 | ~
      | ^
Language: C++

#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <string.h>
#include <conio.h>
#define INF 123456789
#define MOD 1000000007

int main()
{
	int N;
	scanf("%d\n", &N);
	printf("ABC%03d\n", N);

	return 0;
}

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

import java.util.Scanner;

public class MainPage {
	public static void main(String[] args) {
		try{
			Scanner sc = new Scanner(System.in);
			String a = "ABC" + sc.nextInt();
			System.out.println(a);
			
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}

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

#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<queue>
#include<vector>
#include<cstdio>
#include<iomanip>
using namespace std;
//int father[100001];
struct wo{
int x;
int y;
int dis;
}
/*int cmp(wo a,wo b)
return a.   <b.   ;
*/
/*
void unionn (int x,int y){
x=find(x);y=find(y);
father[y]=x;
}
int find(int x)
{
if(father[x]!=x)father[x]=find(father[x]);
return father[x];
}
int judge(int a,int b){
if(find(a)!=find(b))return 0;
else return 1;
}
*/
/*
int dij(){
for(int i=1;i<=n;i++){
	for(int j=i+1;j<=n;j++){
		t++;
		dis[t].distance=0;
	   for(int k=0;k<7;k++){
	   	if(car[i][k]!=car[j][k]){
	   		dis[t].distance++;
		   }
	   }
	   dis[t].x=i;dis[t].y=j;
	}
}
for(int i=1;i<=n;i++){
	father[i]=i;
}
sort(dis+1,dis+t+1,cmp);
for(int i=1;i<=t;i++){
	if(find(dis[i].x)!=find(dis[i].y)){
		unionn(dis[i].x,dis[i].y);
		ans+=dis[i].distance;
	}
}
}
 
*/
int main(){
long long a[101111]={0},ans,n;
//char b[100001];
cin>>n;
/*for(int i=1;i<=n;i++){
cin>>a[i];
}*/
/*
if()cout<<"No";
else cout<<"Yes";
*/
 
cout<</*fixed<<setprecision()*/"ABC"<<n<<endl;
return 0;
}

Compiler output:
a.cc:72:1: error: extended character   is not valid in an identifier
   72 |  
      | ^
a.cc:15:2: error: expected ';' after struct definition
   15 | }
      |  ^
      |  ;
a.cc: In function 'int main()':
a.cc:72:1: error: '\U000000a0' was not declared in this scope
   72 |  
      | ^
Language: C++

#include <iostream>

int main() {
    int n = 0, i = 09;
    std::cin >> n;
    for (i = 1; i <= n; i *= 2) {

    }
    std::cout << i / 2 << "\n";
    system("pause");
}

Compiler output:
a.cc:4:20: error: invalid digit "9" in octal constant
    4 |     int n = 0, i = 09;
      |                    ^~
Language: C++

#include<cstdio>
int main()
{
	int n;
	scanf("%d"&n);
	printf("ABC%d\n",n);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
    5 |         scanf("%d"&n);
      |               ~~~~^~
      |               |    |
      |               |    int
      |               const char [3]
Language: C

#include <stdio.h>
#include <conio.h>

int main(){

	int n = 0;

	scanf(" %d",&n);

	printf("ABC%d",n);
	return 0;
}

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

#include <stdio.h>
#include <conio.h>

int main(){

	int n = 0;

	scanf(" %d",&n);

	printf("ABC%d",n);
	_getch();
	return 0;
}

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

import java.util.*;
import java.lang.*;
 
public class Main {
    public static void main(String[] args) {

        Scanner sc  = new Scanner(System.in);

        String s = sc.next();
        
        System.out.print("ABC"+s);

        System.out.println();
    }

}

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

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

int main()
{
        ios_base::sync_with_stdio(0);
        int a; cin >> a;
        cout << "ABC" << a << '\n';
}
~                                                                               
~                                                                               
~                     

Compiler output:
a.cc:11:1: error: expected class-name before '~' token
   11 | ~
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	int n;
	cin >> n;
	cout << "ABC" << n << endl;
	// your code goes here
	return 0;
}#include <iostream>
using namespace std;

int main() {
	int n;
	cin >> n;
	cout << "ABC" << n << endl;
	// your code goes here
	return 0;
}

Compiler output:
a.cc:10:2: error: stray '#' in program
   10 | }#include <iostream>
      |  ^
a.cc:10:3: error: 'include' does not name a type
   10 | }#include <iostream>
      |   ^~~~~~~
a.cc:13:5: error: redefinition of 'int main()'
   13 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<queue>
#include<vector>
#include<cstdio>
#include<iomanip>
using namespace std;
//int father[100001];
struct wo{
int x;
int y;
int dis;
}
//queue<int>p;
priority_queue<long long ,vector<long long>,greater<long long> >pp;
/*int cmp(wo a,wo b)
return a.   <b.   ;
*/
/*
void unionn (int x,int y){
x=find(x);y=find(y);
father[y]=x;
}
int find(int x)
{
if(father[x]!=x)father[x]=find(father[x]);
return father[x];
}
int judge(int a,int b){
if(find(a)!=find(b))return 0;
else return 1;
}
*/
/*
int dij(){
for(int i=1;i<=n;i++){
	for(int j=i+1;j<=n;j++){
		t++;
		dis[t].distance=0;
	   for(int k=0;k<7;k++){
	   	if(car[i][k]!=car[j][k]){
	   		dis[t].distance++;
		   }
	   }
	   dis[t].x=i;dis[t].y=j;
	}
}
for(int i=1;i<=n;i++){
	father[i]=i;
}
sort(dis+1,dis+t+1,cmp);
for(int i=1;i<=t;i++){
	if(find(dis[i].x)!=find(dis[i].y)){
		unionn(dis[i].x,dis[i].y);
		ans+=dis[i].distance;
	}
}
}

*/
int main(){
long long a[101111]={0},ans,n;
//char b[100001];
cin>>n;
/*for(int i=1;i<=n;i++){
cin>>a[i];
}*/
/*
if()cout<<"No";
else cout<<"Yes";
*/

cout<</*fixed<<setprecision()*/"ABC"<<n<<endl;
return 0;
}


Compiler output:
a.cc:17:65: error: invalid declarator before 'pp'
   17 | priority_queue<long long ,vector<long long>,greater<long long> >pp;
      |                                                                 ^~
Language: C++

#include <iostream>
#include <string>

int main()
{
		int N;
		cin >> N;
		string n = to_string(N);
		cout << "ABC" << n << endl;	
		return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |                 cin >> N;
      |                 ^~~
      |                 std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:17: error: 'string' was not declared in this scope
    8 |                 string n = to_string(N);
      |                 ^~~~~~
a.cc:8:17: 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:
/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:9:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |                 cout << "ABC" << n << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:34: error: 'n' was not declared in this scope
    9 |                 cout << "ABC" << n << endl;
      |                                  ^
a.cc:9:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |                 cout << "ABC" << n << endl;
      |                                       ^~~~
      |                                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include <stdio.h>

int main(){

	int n = 0;

	scanf_s(" %d",&n);

	printf("ABC%d",n);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scanf_s(" %d",&n);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <string>
#include <vector>
#include <algorithm>

using namespace std;

int main() {
    int n;

    cin >> n;

    cout << "ABC" << n << endl;


    return 0;
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'cin' was not declared in this scope
   10 |     cin >> n;
      |     ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <algorithm>
  +++ |+#include <iostream>
    4 | 
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "ABC" << n << endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:27: error: 'endl' was not declared in this scope
   12 |     cout << "ABC" << n << endl;
      |                           ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    3 | #include <algorithm>
  +++ |+#include <ostream>
    4 |
Language: C++

# coding: utf-8
# Here your code !
N=input()
print("ABC"+str(N))

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:2:3: error: invalid preprocessing directive #Here
    2 | # Here your code !
      |   ^~~~
a.cc:3:1: error: 'N' does not name a type
    3 | N=input()
      | ^
Language: C++

#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
/*
//#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
*/

// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
/*
//#if __cplusplus >= 201103L
#include <array>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
*/
using namespace std;
#define fi first
#define se second
#define repl(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define rep(i,n) repl(i,0,n)
#define each(itr,v) for(auto itr:v)
#define pb(s) push_back(s)
#define mmax(x,y) (x>y?x:y)
#define mmin(x,y) (x<y?x:y)
#define maxch(x,y) x=mmax(x,y)
#define minch(x,y) x=mmin(x,y)
#define mp(a,b) make_pair(a,b)
#define all(x) (x).begin(),(x).end()
#define dbg(x) cout<<#x"="<<x<<endl

#define uni(x) x.erase(unique(all(x)),x.end())
template<class T,class U>inline void chmin(T &t,U f){if(t>f)t=f;}
template<class T,class U>inline void chmax(T &t,U f){if(t<f)t=f;}
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) > (b) ? (b) : (a))

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> P;
typedef pair<P, int> PPI;

#define INF INT_MAX/3
#define MAX_N 1000
#define M_INF 1000000000
int n,m,v,i;
void solve(){
   cin.tie(0);
  ios::sync_with_stdio(false);
  cin>>n;
  cout<"ABC"<<n<<endl;
}

int main(){
  solve();
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:117:13: error: invalid operands of types 'const char [4]' and 'int' to binary 'operator<<'
  117 |   cout<"ABC"<<n<<endl;
      |        ~~~~~^~~
      |        |      |
      |        |      int
      |        const char [4]
Language: C++


#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <conio.h>
#include <string>
#include <vector>

using namespace std;

int main()
{
	int n;
	cin >> n;
	cout << "ABC" << n;
	//_getch();
	return 0;
}

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

#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<queue>
#include<vector>
#include<cstdio>
#include<iomanip>
using namespace std;
//int father[100001];
struct wo{
int x;
int y;
int dis;
}
queue<int>p;
priority_queue<long long ,vector<long long>,greater<long long> >pp;
/*int cmp(wo a,wo b)
return a.   <b.   ;
*/
/*
void unionn (int x,int y){
x=find(x);y=find(y);
father[y]=x;
}
int find(int x)
{
if(father[x]!=x)father[x]=find(father[x]);
return father[x];
}
int judge(int a,int b){
if(find(a)!=find(b))return 0;
else return 1;
}
*/
/*
int dij(){
for(int i=1;i<=n;i++){
	for(int j=i+1;j<=n;j++){
		t++;
		dis[t].distance=0;
	   for(int k=0;k<7;k++){
	   	if(car[i][k]!=car[j][k]){
	   		dis[t].distance++;
		   }
	   }
	   dis[t].x=i;dis[t].y=j;
	}
}
for(int i=1;i<=n;i++){
	father[i]=i;
}
sort(dis+1,dis+t+1,cmp);
for(int i=1;i<=t;i++){
	if(find(dis[i].x)!=find(dis[i].y)){
		unionn(dis[i].x,dis[i].y);
		ans+=dis[i].distance;
	}
}
}

*/
int main(){
long long a[101111]={0},ans,n;
//char b[100001];
cin>>n;
/*for(int i=1;i<=n;i++){
cin>>a[i];
}*/
/*
if()cout<<"No";
else cout<<"Yes";
*/

cout<</*fixed<<setprecision()*/"ABC"<<n<<endl;
return 0;
}


Compiler output:
a.cc:16:11: error: invalid declarator before 'p'
   16 | queue<int>p;
      |           ^
Language: C++

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

int main(){
	int n,cou=0,res=0;
  	cin >> n;
  	for(int i=1;i<=n;i++){
    	if(i%2==0){
          	int a =i,counter=1;
        	while(a>=0){
            	a /= 2;
              	if(a%2==1) break;
              	counter++;
            }
        }
      	if(counter>cou){
        	cou=counter;
          	res=i;
        }
    }
	cout<<res<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: 'counter' was not declared in this scope
   16 |         if(counter>cou){
      |            ^~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
  itn N;
  cin >> N;
  int ans = 1;
  while (ans <= N) {
    if (ans*2 <= N) {
      ans *= 2;
    } else {
      break;
    }
  }
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'itn' was not declared in this scope; did you mean 'int'?
    5 |   itn N;
      |   ^~~
      |   int
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N;
      |          ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
  itn N;
  cin >> N;
  int ans = 1;
  while (ans <= N) {
    if (ans*2 <= N) {
      ans *= 2;
    }
  }
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'itn' was not declared in this scope; did you mean 'int'?
    5 |   itn N;
      |   ^~~
      |   int
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N;
      |          ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

//マクロ
//forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
//Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define REP(i,n) for(ll i=0;i<(ll)(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
#define FORD(i,a,b) for(ll i=a;i>=(ll)(b);i--)
//xにはvectorなどのコンテナ
#define ALL(x) (x).begin(),(x).end() //sortなどの引数を省略したい
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値を求める
#define MIN(x) *min_element(ALL(x)) //最小値を求める
//定数
#define INF 1000000000000 //10^12:極めて大きい値,∞
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange(素数列挙などで使用)
#define PI 3.14159265359 //πの値
//略記
#define PB push_back //vectorヘの挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pairの一つ目の要素
#define S second //pairの二つ目の要素
#define C(x) cout << x << endl //テスト出力

//関数
//nCkの計算の関数(呼び出しは[cbn])
ll cbn(ll n, ll k) {
    ll r = 1;
    for (ll d = 1; d <= k; ++d) {
        r *= n--;
        r /= d;
    }
    return r;
}
// a^n mod を計算する
ll powmod(ll a, ll n) {
    ll res = 1;
    while (n > 0) {
        if (n & 1) res = res * a % MOD;
        a = a * a % MOD;
        n >>= 1;
    }
    return res;
}
//２つの最大公約数
int gcb(int a, int b){
    if(a < b){
        int x = a;
        a = b;
        b = x;
    }
    int amari = a % b;
    if(amari == 0) return b;

    return gcb(b, amari);
}
//３つの最大公約数
int gcb_3(int a, int b, int c){
    return gcb(gcb(a, b), c);
}
/*-----------------------------ここから-----------------------------*/

int main() {
cin.tie(0);
ios::sync_with_stdio(false);
ll n; cin>>n;1 2 4 8 16 32 64
if(n==1) cout << n;
else if(n<4) cout << 2;
else if(n<8) cout << 4;
else if(n<16) cout << 8;
else if(n<32) cout << 16;
else if(n<64) cout << 32;
else cout << 64;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:72:15: error: expected ';' before numeric constant
   72 | ll n; cin>>n;1 2 4 8 16 32 64
      |               ^~
      |               ;
a.cc:74:1: error: 'else' without a previous 'if'
   74 | else if(n<4) cout << 2;
      | ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
  cin>>n;
  int ans = -1;
  int pos ;
  for(int i =1;i<=n;i++)
  {int m = 0;
   for(int j =1;j<=i;j++)
   {
   if(j%2==0) m++;
   }
  if(m>ans)
  {
    ans = m;
    pos=i;
  }
  cout<<pos<<endl;
}

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

#include <iostream>

int main(void){
    int N, ans=1;
    std::cin >> N;

    for (int i = 1; i<7; ++i){
        if (ans * 2 <= N){
            ans *= 2;
        }
    }

    std::cout << ans << std::endl;

    return 0;


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

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

int main(){
  int N;cin>>N;
  int ans=1;
  int X=2;
  while(X<101){
    if(N>=X) ans*=2;
    X*=2;
  }
  
  

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

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower

using namespace std;



int main() {
	int n;
	cin >> n;
	int cnt = 0;
	for (int i=0;n > 0;i++) {
		n /= 2;
		cnt++;
	}
	cout << pow(2, cnt-1) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:17: error: 'pow' was not declared in this scope
   31 |         cout << pow(2, cnt-1) << endl;
      |                 ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
 int n;
 cin >> n;
 int x = 1; 
 whlie(x <= n)
   x <<= 1;
 
 x/=2;
 cout << x;
 return 0;
}

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

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

int main(){

int n;
  cin >> n;
  if(n=>1 && n<2)cout << 1 << endl;
  if(n=>2 && n<4)cout << 2 << endl;
  if(n=>4 && n<8)cout << 4 << endl;
  if(n=>8 && n<16)cout << 8 << endl;
  if(n=>16 && n<32)cout << 16 << endl;
  if(n=>32 && n<64)cout << 32 << endl;
  if(n=>64 && n<100)cout << 64 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected primary-expression before '>' token
    8 |   if(n=>1 && n<2)cout << 1 << endl;
      |        ^
a.cc:9:8: error: expected primary-expression before '>' token
    9 |   if(n=>2 && n<4)cout << 2 << endl;
      |        ^
a.cc:10:8: error: expected primary-expression before '>' token
   10 |   if(n=>4 && n<8)cout << 4 << endl;
      |        ^
a.cc:11:8: error: expected primary-expression before '>' token
   11 |   if(n=>8 && n<16)cout << 8 << endl;
      |        ^
a.cc:12:8: error: expected primary-expression before '>' token
   12 |   if(n=>16 && n<32)cout << 16 << endl;
      |        ^
a.cc:13:8: error: expected primary-expression before '>' token
   13 |   if(n=>32 && n<64)cout << 32 << endl;
      |        ^
a.cc:14:8: error: expected primary-expression before '>' token
   14 |   if(n=>64 && n<100)cout << 64 << endl;
      |        ^
Language: C++

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

int main(){
  int N;
  cin >> N;
  
  int max = -1;
  int n = 0;
  
  for(int i=0; i<N; i++){
    int count = 0;
    int num = i;
    
    while(true){
    if(num%2 == 0 ){
      count++;
      num /= 2;
    }else{
      break;
    }
    }
    
    if(max < count){
      max = count;
      n = i;
    }
  }
  
  count << n << endl;
      
  
}

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

int main() {
  int N, count = 0, max_count = -1, max_N = -1;
  cin >> N;
  for(int i=1; i<N+1; i++){
    count = 0;
    int j = i;
    while(j%2 == 0){
      j = j/2;
      count++;
    }
    if(count > max_count){
      max_count = count;
      max_N = i;
    }
  }
  
  cout << max_N << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> N;
      |   ^~~
a.cc:17:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   17 |   cout << max_N << endl;
      |   ^~~~
      |   count
a.cc:17:20: error: 'endl' was not declared in this scope
   17 |   cout << max_N << endl;
      |                    ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int N;
  cin >> N;
  for(int ans = 1; ans < N; ans *=2){
  }
  cout << ans;
  return 0;
}

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

#include<iostream>
using namespace std;
int main()
{
  int a,i=1;
  cin>>a;
  while(ans<i){
    i*=2;
  }
  cout<<i/2;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   while(ans<i){
      |         ^~~
      |         abs
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a,ans=1;
  cin>>a;
  while(ans<i){
    i*=2;
  }
  cout<<i/2;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'i' was not declared in this scope
    7 |   while(ans<i){
      |             ^
a.cc:10:9: error: 'i' was not declared in this scope
   10 |   cout<<i/2;
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)
#define rep1(i,n) for(int i=0; i+1<n; i++)

int main(){
  int N;
  scanf("%d", &N);
  
  int count = 0;
  int a = 2;
  
  while(a < N){
    count++;
    a = a*2;
  }
  
  if(count == 0) printf("%d\n",N);
  else prinf("%d\n", a/2);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:8: error: 'prinf' was not declared in this scope; did you mean 'printf'?
   19 |   else prinf("%d\n", a/2);
      |        ^~~~~
      |        printf
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)

int main(){
  int N;
  scanf("%d", &N);
  int a[N];
  rep(i,N){
    a[i] = i;
  }
  
  int count = 0;
  int ans = 0;
  
  rep(i+1,N){
    while(a[i+1]%2 == 0){
      a[i+1] = a[i+1]/2;
      count++;
    }
    
    if(count>ans) ans = count;
    
  }
  
  printf("%d\n", &ans);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: expected ';' before '+' token
   16 |   rep(i+1,N){
      |        ^
a.cc:3:26: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0; i<n; i++)
      |                          ^
a.cc:16:8: error: lvalue required as left operand of assignment
   16 |   rep(i+1,N){
      |        ^~
a.cc:3:26: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0; i<n; i++)
      |                          ^
a.cc:3:34: error: expected ')' before ';' token
    3 | #define rep(i,n) for(int i=0; i<n; i++)
      |                     ~            ^
a.cc:16:3: note: in expansion of macro 'rep'
   16 |   rep(i+1,N){
      |   ^~~
a.cc:16:7: error: 'i' was not declared in this scope
   16 |   rep(i+1,N){
      |       ^
a.cc:3:36: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0; i<n; i++)
      |                                    ^
a.cc:16:9: error: lvalue required as increment operand
   16 |   rep(i+1,N){
      |         ^
a.cc:3:36: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0; i<n; i++)
      |                                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  cin >>n;
  
  int ans, countans = 0;
  
  for (int i = 1, i <= n; i++) {
    int a = i;
    int counta = 0;
    while (a % 2 == 0) {
      counta ++;
      a /= 2;
    }
    if (counta > countans) {
      ans = i;
      countans = counta;
    }
  }
  cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before '<=' token
   10 |   for (int i = 1, i <= n; i++) {
      |                    ^~~
      |                    ;
a.cc:10:21: error: expected primary-expression before '<=' token
   10 |   for (int i = 1, i <= n; i++) {
      |                     ^~
Language: C++

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

int main() {
  int N ,a=0,ans=1;
  cin >> N ;
  for (int i=N ; j>1 ; j= (j-j%2)/2 ){
    a++ ;
  }
  for (int i= 0 ; i< a ; i++){
    ans*=2;
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'j' was not declared in this scope
    7 |   for (int i=N ; j>1 ; j= (j-j%2)/2 ){
      |                  ^
Language: C++

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

int main() {
  int N ,a=0,ans=1;
  cin >> N ;
  for (int i=N ; j>1 ; j= (j-j%2)/2 ){
    a++ ;
  }
  for (int i= 0 ; i< a ; i++){
    ans*=2
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'j' was not declared in this scope
    7 |   for (int i=N ; j>1 ; j= (j-j%2)/2 ){
      |                  ^
a.cc:11:11: error: expected ';' before '}' token
   11 |     ans*=2
      |           ^
      |           ;
   12 |   }
      |   ~
Language: C++

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

int main() {
 　int N,X=1;
  cin >> N;
  for(int i=1; i<=N; i*=2){
    i=X;
  }
  cout << X << endl;
}


Compiler output:
a.cc:5:2: error: extended character 　 is not valid in an identifier
    5 |  　int N,X=1;
      |  ^
a.cc: In function 'int main()':
a.cc:5:2: error: '\U00003000int' was not declared in this scope
    5 |  　int N,X=1;
      |  ^~~~~
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N;
      |          ^
a.cc:8:7: error: 'X' was not declared in this scope
    8 |     i=X;
      |       ^
a.cc:10:11: error: 'X' was not declared in this scope
   10 |   cout << X << endl;
      |           ^
Language: C++

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

int main() {
  int maxcount = 0;
  int ans;
  for (int i = 1; i < N; i++) {
    int x = i;
    int count = 0;
    
    while (x % 2 == 0) {
      count++;
      x /= 2;
    }
    
    if (count > maxcount) {
      maxcount = count;
      ans = i;
    }
  }
  
  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: 'N' was not declared in this scope
    7 |   for (int i = 1; i < N; i++) {
      |                       ^
Language: C++

/**
*    created: 05.07.2020 17:48:14
**/
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
// #include <boost/multiprecision/cpp_int.hpp>
// using bint = boost::multiprecision::cpp_int;
using namespace std;
#define int long long
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
#define pcnt(bit) __builtin_popcountll(bit)
template<class T> bool chmax(T &a, const T &b) {if (a < b) {a = b; return 1;} return 0;}
template<class T> bool chmin(T &a, const T &b) {if (b < a) {a = b; return 1;} return 0;}
const long double pi = acos(-1.0);
const int INF = 1LL << 60;
const int MOD = 1000000007;
// const int MOD = 998244353;

signed main() {

    cin.tie(0);
    ios_base::sync_with_stdio(false);

    int n;
    cin >> n;
    if (n >= 64) cout << 64 << endl;
    else if (n >= 32) cout << 32<< endl;;
    else if (n >= 16) cout << 16 << endl;;
    else if (n >= 8) cout << 8 << endl;;
    else if (n >= 4) cout << 4 << endl;;
    else if (n >= 2) cout << 2 << endl;;
    else cout << 1 << endl;;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:5: error: 'else' without a previous 'if'
   31 |     else if (n >= 16) cout << 16 << endl;;
      |     ^~~~
a.cc:32:5: error: 'else' without a previous 'if'
   32 |     else if (n >= 8) cout << 8 << endl;;
      |     ^~~~
a.cc:33:5: error: 'else' without a previous 'if'
   33 |     else if (n >= 4) cout << 4 << endl;;
      |     ^~~~
a.cc:34:5: error: 'else' without a previous 'if'
   34 |     else if (n >= 2) cout << 2 << endl;;
      |     ^~~~
a.cc:35:5: error: 'else' without a previous 'if'
   35 |     else cout << 1 << endl;;
      |     ^~~~
Language: C++

void b_break_number(void) {
	int n,m;
	cin >> n;
	int cnt = 0;
	int cnt_max = 0;
	int n_max=1;
	for (int i = 1; i <= n; i++) {
		m = i;
		cnt = 0;
		while (true) {
			if ((m & 0x1) == 0x1) break;
			m = m >> 1;
			cnt++;
		}
		if (cnt > cnt_max) {
			cnt_max = cnt;
			n_max = i;
		}
	}
	cout << n_max << endl;
}

int main()
{
	b_break_number();
    return 0;
}

Compiler output:
a.cc: In function 'void b_break_number()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> n;
      |         ^~~
a.cc:20:9: error: 'cout' was not declared in this scope
   20 |         cout << n_max << endl;
      |         ^~~~
a.cc:20:26: error: 'endl' was not declared in this scope
   20 |         cout << n_max << endl;
      |                          ^~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
 int a; cin >> a;
  
  int ans = 1;
  
  while(ans * 2 =< a) {
    ans *= 2;
  }
  
  cout << ans << endl;
  
 return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected primary-expression before '<' token
    9 |   while(ans * 2 =< a) {
      |                  ^
Language: Java

mport java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;

public class Main {

	static Scanner scanner;

	public static void main(String[] args) {
	    scanner = new Scanner(System.in);

	    int N=gi();

	    int m= 2;
        for(int i=1; i<=N;i++) {
        	int c=0;
        	int a=i;
           while(true) {
        	   if(a%2!=0) {
        		   break;
        	   }
        	   a/=2;
        	   c++;
           }
           if (c>m) {
        	   m=c;
           }
        }

	   
	    System.out.print(m);

//        if (t.equals("Sunny")) {
//        	System.out.print("Cloudy");
//        }else if(t.equals("Cloudy")){
//        	System.out.print("Rainy");
//        } else {
//        	System.out.print("Sunny");
//        }


	}
	// 文字列として入力を取得
	public static String gs() {
		return scanner.next();
	}

	// intとして入力を取得
	public static int gi() {
		return Integer.parseInt(scanner.next());
	}

	// longとして入力を取得
	public static long gl() {
		return Long.parseLong(scanner.next());
	}

	// doubleとして入力を取得
	public static double gd() {
		return Double.parseDouble(scanner.next());
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.HashMap;
^
Main.java:2: error: class, interface, enum, or record expected
import java.util.List;
^
Main.java:3: error: class, interface, enum, or record expected
import java.util.Map;
^
Main.java:4: error: class, interface, enum, or record expected
import java.util.Scanner;
^
4 errors
Language: Java

import java.util.Scanner;
public class void Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int result = 1;
		for(int i = 1; i <= N; i *= 2) {
			result = i;
		}
		System.out.println(result);
	}

}


Compiler output:
Main.java:2: error: <identifier> expected
public class void Main {
            ^
Main.java:3: 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:13: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

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

int main(){
  int N;
  cin >> N;
  vector<int>A(N);
  for(int i=0;i<N;i++){
    cin>>A.at(i);
  }
  
  while(true){
   bool exist_num=false;
    for(int i=0;i<N;i++){
      if(A.at(i)%2==1)  exist_num=true;
      if(exist_num) break;
    }
    
    int res=0;
    for(int i=0;i<N;i++){
    if(A.at(i)%2==0) A.at(i)/=2;
    }
    ++res;
   }
  }
  cout << pow(2,res) << endl;
return 0;
}


Compiler output:
a.cc:26:3: error: 'cout' does not name a type
   26 |   cout << pow(2,res) << endl;
      |   ^~~~
a.cc:27:1: error: expected unqualified-id before 'return'
   27 | return 0;
      | ^~~~~~
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <tuple>
#include <cstdint>
#include <cstdio>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <deque>
#include <unordered_map>
#include <unordered_set>
#include <bitset>
#include <cctype>
#define ll long long int
#define pb push_back
#define rep(i,n) for(int i=0;i<(n);i++)
#define REP(i,n) for(int i=1;i<=(n);i++)
using namespace std;

int mx8[] = {0,0,1,-1,-1,1,-1,1};
int my8[] = {-1,1,0,0,-1,-1,1,1};
int mx4[] = {1,-1,0,0};
int my4[] = {0,0,-1,1};
const int MOD = 1000000007;

int main() {
    int n,cnt = 0, ans = 0; cin >> n;
    REP(i,n){
        cnt = 0;
        int I = i;
        while(I % 2 == 0) {
             cnt++;
             I /= 2;
        }
        ans = max(ans,cnt);
    }
    cout << pow(2,ans) << endl;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:41:13: error: 'pow' was not declared in this scope
   41 |     cout << pow(2,ans) << endl;
      |             ^~~