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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int num;
    vector<int> v1;
    while(1)
    {
        for(int i=0;i<5;i++)
        {
            int temp;
            cin>>temp;
            v1.push_back(temp);
        }
        sort(v1.begin(),v.end());
        for(int i=0;i<5;i++)
        {
            if(v1[i]!=i+1)
            {
                cout<<i<<endl;
            }
        }
      v1.clear();
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: 'v' was not declared in this scope; did you mean 'v1'?
   15 |         sort(v1.begin(),v.end());
      |                         ^
      |                         v1
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int A, B, C, D. E;

    cin >> A >> B >> C >> D >> E;

    vector<int> v = {A, B, C, D , E};

    for (int i = 0; i < 5; i++)
    {
        if (v[i] == 0)
        {
            cout << i + 1;
            break;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected initializer before '.' token
    7 |     int A, B, C, D. E;
      |                   ^
a.cc:9:27: error: 'D' was not declared in this scope
    9 |     cin >> A >> B >> C >> D >> E;
      |                           ^
a.cc:9:32: error: 'E' was not declared in this scope
    9 |     cin >> A >> B >> C >> D >> E;
      |                                ^
a.cc:11:36: error: could not convert '{A, B, C, D, E}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
   11 |     vector<int> v = {A, B, C, D , E};
      |                                    ^
      |                                    |
      |                                    <brace-enclosed initializer list>
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int A, B, C, D;

    cin >> A >> B >> C >> D;

    vector<int> v = {A, B, C, D};

    for (int i = 0; i < v.count(); i++)
    {
        if (v[i] == 0)
        {
            cout << i + 1;
            break;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: 'class std::vector<int>' has no member named 'count'
   13 |     for (int i = 0; i < v.count(); i++)
      |                           ^~~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
  int x[5],idx = 1;
  for (int i=0; i<5; i++) cin >> x[i];
  for (int i=0; i<5; i++) if (!x[i]) {cout << i+1 << endl;return;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:59: error: return-statement with no value, in function returning 'int' [-fpermissive]
    6 |   for (int i=0; i<5; i++) if (!x[i]) {cout << i+1 << endl;return;}
      |                                                           ^~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int x;
    int y;
    for (int i = 0; i < x; ++i)
    {
        cin >> x
        
        if ( x == 0)
        {
            y = i;
        }
    }
    cout << y << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before 'if'
    9 |         cin >> x
      |                 ^
      |                 ;
   10 | 
   11 |         if ( x == 0)
      |         ~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;

int main() {
  vector<int> x(5, 0);
  
  int index;
  for(int i = 0; i < 5; i++) {
    cin >> a[i];
    if(a[i] == 0) {
      index = ++i;
    }
  }
  cout << index << endl;
  
  return 0;
}

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

#include<iostream>
#include<cmath>
#include<string>
#include<bits/stdc++.h>

#define ll long long

using namespace std;

int main()
{
	int x1,x2,x3,x4,x5;
	cin>>x1>>x2>>x3>>x4>>x5;
	if(x1==0)
		cout<<"1";
	else if(x2==0)
		cout<<"2";
	else if(x3==0)
		cout<<"3";
	else if(x4==0)
		cout<<"4";
	else
		cout<<"5";
	cout<<ans;
	return 0;
}


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

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

int main(){
for (int i=0; i<5; ++i){
	int x; cin>>x; if (x==0) cout<<i+1<<endl;
}

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

#include<iostream>
using namespace std;
int main()
{
  int a[5];
  for(i=0;i<5;i++)
  {
    cin>>a[i];
  }
  for(i=1;i<=5;i++)
  {
    if(a[i]==0)
    {
      cout<<i;
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   for(i=0;i<5;i++)
      |       ^
a.cc:10:7: error: 'i' was not declared in this scope
   10 |   for(i=1;i<=5;i++)
      |       ^
Language: Java

import java.util.Scanner;

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

		int[] xList = new int[5];

		for(int i=0;i<5;i++) {
			int x = n.nextInt();
			xList[i] = x;
		}

		for(int i=0;i<5;i++) {
			if(xList[i] == 0) {
				System.out.println(i+1);
				break;
			}
		}
	}
}


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

import java.util.Scanner;
public class Main01 {
	public static void main(String args[]) {
		Scanner n = new Scanner(System.in) ;
		
		int[] xList = new int[5];
		
		for(int i=0;i<5;i++) {
			int x = n.nextInt();
			xList[i] = x;
		}
		
		for(int i=0;i<5;i++) {
			if(xList[i] == 0) {
				System.out.println(i+1);
				break;
			}
		}
	}
}


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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	int[] num = new int[5];
		for(int i=0;i<5;i++){
			num[i] = sc.nextInt();
          	if( num[i] != (i+1) ){
              System.out.println( (i+1) );
		}
		//System.out.println(ans);    	
	}
}

Compiler output:
Main.java:13: error: reached end of file while parsing
}
 ^
1 error
Language: C++

/* author : akshatjai258 */
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<string, string> pss;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<pii> vii;
typedef vector<ll> vl;
typedef vector<vl> vvl;
#define mod int(1e9 + 7)
#define inf int(1e9)
#define endl "\n"
#define rep(i,n) for (int(i) = (0); (i) < (n); ++(i))
#define fi first
#define mem0(a) memset(a, 0, sizeof(a))
#define mem1(a) memset(a, -1, sizeof(a))
#define memf(a) memset(a, false, sizeof(a))
#define all(v) v.begin(), v.end()
#define se second
#define mp make_pair
#define pb push_back
#define w(x)  \
	int x;    \
	cin >> x; \
	while (x--)
#define ps(x, y) fixed << setprecision(y) << x
void prep()
{
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
/*#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif*/
}	
int main()
{
	prep();
    int arr[5];
    int ans;
    for(int i=0;i<5;i++){
    cin>>a[i];
    if(a[i]==0)
    ans=i+1;
    }
    cout<<ans;
	return 0;
}

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

 /* author : akshatjai258 */

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

typedef pair<int, int> pii;

typedef pair<ll, ll> pll;

typedef pair<string, string> pss;

typedef vector<int> vi;

typedef vector<vi> vvi;

typedef vector<pii> vii;

typedef vector<ll> vl;

typedef vector<vl> vvl;

#define mod int(1e9 + 7)

#define inf int(1e9)

#define endl "\n"

#define FOR(a, b, c) for (int(a) = (b); (a) < (c); ++(a))

#define FORN(a, b, c) for (int(a) = (b); (a) <= (c); ++(a))

#define fi first

#define mem0(a) memset(a, 0, sizeof(a))

#define mem1(a) memset(a, -1, sizeof(a))

#define memf(a) memset(a, false, sizeof(a))

#define all(v) v.begin(), v.end()

#define se second

#define mp make_pair

#define pb push_back

#define w(x)  \

	int x;    \

	cin >> x; \

	while (x--)

#define ps(x, y) fixed << setprecision(y) << x

void prep()

{

	ios_base::sync_with_stdio(0);

	cin.tie(0);

	cout.tie(0);

/*#ifndef ONLINE_JUDGE

	freopen("input.txt", "r", stdin);

	freopen("output.txt", "w", stdout);

#endif*/

}

int main()

{

	prep();
    int arr[5];
    int ans;
    for(int i=0;i<n;i++){
    cin>>a[i]
    if(a[i]==0)
    ans=i+1;
    }
    cout<<ans;
	return 0;

}

Compiler output:
a.cc:55:9: error: 'cin' does not name a type
   55 |         cin >> x; \
      |         ^~~
a.cc:57:9: error: expected unqualified-id before 'while'
   57 |         while (x--)
      |         ^~~~~
a.cc: In function 'int main()':
a.cc:85:9: error: 'prep' was not declared in this scope
   85 |         prep();
      |         ^~~~
a.cc:88:19: error: 'n' was not declared in this scope
   88 |     for(int i=0;i<n;i++){
      |                   ^
a.cc:89:10: error: 'a' was not declared in this scope
   89 |     cin>>a[i]
      |          ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n=5;
    int arr[n],p;
    for(int i=0){
        cin>>arr[i];
        if(arr[i]==0){
        p=i;}
        
    }
    cout<<p<<endl;
    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before ')' token
    6 |     for(int i=0){
      |                ^
      |                ;
a.cc:6:16: error: expected primary-expression before ')' token
a.cc:6:16: error: expected ';' before ')' token
    6 |     for(int i=0){
      |                ^
      |                ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> vec(4)
for (int i = 0; i < 4; i++) {
  cin >> vec.at(i);
}
  for (int i = 0; i < 4; i++){
    if (vec.at(i)==0) {
      cout << i+1 << endl;
      break
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected ',' or ';' before 'for'
    5 | for (int i = 0; i < 4; i++) {
      | ^~~
a.cc:5:17: error: 'i' was not declared in this scope
    5 | for (int i = 0; i < 4; i++) {
      |                 ^
a.cc:11:12: error: expected ';' before '}' token
   11 |       break
      |            ^
      |            ;
   12 |     }
      |     ~
Language: C++

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

    cout<<"Yes";
    }
    else
    cout<<"No";
    if(b<a)
    cout<<"No"
    



    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: expected ';' before 'return'
   17 |     cout<<"No"
      |               ^
      |               ;
......
   22 |     return 0;
      |     ~~~~~~
Language: C++

#include <bits/stdc++.h>
#define ll long long

int main() {

    int ans = 0;
    for (int i=1; i<=5; i++) {
        int x; cin >> x;
        if (x == 0) ans = i;
    }
    cout << i << endl

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         int x; cin >> x;
      |                ^~~
      |                std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << i << 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:11:13: error: 'i' was not declared in this scope
   11 |     cout << i << endl
      |             ^
a.cc:11:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout << i << endl
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

#include <bits/stdc++.h>

//#define int long long

using namespace std;

signed main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    int res = -1;
    for (int i = 1; i <= 5; i++) {
        int x;
        cin >> x;
        if (x == 0) res = i;
    }
    cout << res << '\n';
}
/*

 */


Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:8: error: not a statement
    ios_base::sync_with_stdio(0);
    ^
Main.java:13: error: not a statement
        cin >> x;
            ^
Main.java:16: error: not a statement
    cout << res << '\n';
                ^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
signed main() {
^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: ';' expected
    ios_base::sync_with_stdio(0);
                             ^
7 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int i=0;
		try (Scanner scn = new Scanner(System.in)) {
			int i++;
			if(scn.nextInt() == 0) {
				System.out.println(i);
				return;
			}
		}
	}
}


Compiler output:
Main.java:7: error: ';' expected
			int i++;
			     ^
1 error
Language: C++

#include <iostream>
#define rep(i, n) for(int i=0;i<(n);++i)
using namespace std;

int main(){
    int a[5];
    rep(i, 5){
        cin >> a[i];
        if(a[i] == 0) cout << i+1 << endl;
    }
    return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   11 |     return;
      |     ^~~~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <vector>

int main(){
  	std::vector<int> a(5);
  	
  	std::cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4];
  	std::sort(a.begin(), a.end());
  
  	int index = -1;
  	for (int i = 0; i < 5; ++i) {
    	if (a[i] == 0) {
        	index = i;
          	break;
        }
    }
  	if (index == 0) {
    	std::cout << a[1] - (a[2] - a[1]);
    } else if (index == 4) {
    	std::cout << a[3] + (a[3] - a[2]);
    }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
    9 |         std::sort(a.begin(), a.end());
      |              ^~~~
      |              qsort
Language: C++

#include <iostream>
#include <vector>
using namespace std;

int main()
{
  vector<int> x;
  for(int i=0; i<5; i++) {
    int temp;
    cin >> temp;
    x.push_back(temp);
  }
  vector<int>::iterator itr;
  itr = find(x.begin(), x.end(), 0);
  cout << distance(x.begin(), itr);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int)'
   14 |   itr = find(x.begin(), x.end(), 0);
      |         ~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:14:13: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   14 |   itr = find(x.begin(), x.end(), 0);
      |         ~~~~^~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
  vector<int> x;
  for(int i=0; i<5; i++) {
    int temp;
    cin >> temp;
    x.push_back(temp);
  }
  vector<int>::iterator itr;
  itr = find(x.begin(), x.end(), 0);
  cout << distance(x.begin(), itr);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> x;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int> x;
      |          ^~~
a.cc:10:5: error: 'x' was not declared in this scope
   10 |     x.push_back(temp);
      |     ^
a.cc:12:10: error: expected primary-expression before 'int'
   12 |   vector<int>::iterator itr;
      |          ^~~
a.cc:13:3: error: 'itr' was not declared in this scope
   13 |   itr = find(x.begin(), x.end(), 0);
      |   ^~~
a.cc:13:14: error: 'x' was not declared in this scope
   13 |   itr = find(x.begin(), x.end(), 0);
      |              ^
Language: C

#include<stdio.h>
int main()
{
  int n;
  scanf("%d,&n);int a[n];
        for(int i=0;i<n;i++)
        {
          
          scanf("%d",&a[i]);}
        for(int i=0;i<n;i++)
        {
          if(y==0)
          {
            printf("%d",i+1);break;
          }}
        }

Compiler output:
main.c: In function 'main':
main.c:5:9: warning: missing terminating " character
    5 |   scanf("%d,&n);int a[n];
      |         ^
main.c:5:9: error: missing terminating " character
    5 |   scanf("%d,&n);int a[n];
      |         ^~~~~~~~~~~~~~~~~
main.c:6:9: error: expected expression before 'for'
    6 |         for(int i=0;i<n;i++)
      |         ^~~
main.c:15:13: error: expected ';' before '}' token
   15 |           }}
      |             ^
      |             ;
   16 |         }
      |         ~
Language: C++

//#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}, Dy[8] = {-1, -1, 0, 1, 1, 1, 0, -1};
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
#define rep(i, n) for (int i = 0; i < n; i++)
#define ALL(v) v.begin(), v.end()
#define debug(v)          \
    cout << #v << ":";    \
    for (auto x : v)      \
    {                     \
        cout << x << ' '; \
    }                     \
    cout << endl;
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;
}
//cout<<fixed<<setprecision(15);有効数字15桁
//-std=c++14
//-std=gnu++17
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }
int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    vector<int> a(5);
    rep(i,5)cin>>a[i];
    rep(i,5){
        if(a[i]==0)return cout<<i+1<<"\n";
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:36: error: cannot convert 'std::basic_ostream<char>' to 'int' in return
   56 |         if(a[i]==0)return cout<<i+1<<"\n";
      |                           ~~~~~~~~~^~~~~~
      |                                    |
      |                                    std::basic_ostream<char>
Language: C++

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <cmath>
#include <fstream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;
typedef long long ll;

int main(void){
  rep(i,5){
    cin>>x;
    if(x==0)cout<<i+1<<endl;
  }
}
  


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

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <cmath>
#include <fstream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;
typedef long long ll;

int main(void){
  rep(i,5){
    cin>>x;
    if(x==0)cout<<i+1<<endl;
  }
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: 'x' was not declared in this scope
   16 |     cin>>x;
      |          ^
a.cc:18:4: error: expected '}' at end of input
   18 |   }
      |    ^
a.cc:14:15: note: to match this '{'
   14 | int main(void){
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define forn(i,n) for(int i=0;i<n;i++)
#define fre(i,a,b) for(int i = a; i < b; i++)
#define sf(n) scanf("%lld", &n)
#define sff(a,b) scanf("%lld %lld", &a, &b)
#define sfff(a,b,c) scanf("%d %d %d", &a, &b, &c)
#define pfn(n) printf("%d\n", n)
#define pfs(n) printf("%d ", n)
#define ff first
#define ss second
#define mem(a,b) memset(a,b,sizeof(a))
#define ll long long int
#define f find
#define ub upper_bound
#define lb lower_bound
#define ld long double
#define in insert
#define bs binary_search  
#define le length()
const ll N=9999;
#define np(s) next_permutation(s.begin(),s.end())
//it gives the lexicographically next string//

int main()
{
  int a[5];
  for(int i=0;i<5;i++) cin>>arr[i];
    for(int i=0;i<5;i++)
    {
      if(arr[i]==0)
      {
        cout<<i+1;break;
      }
    }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:29: error: 'arr' was not declared in this scope
   29 |   for(int i=0;i<5;i++) cin>>arr[i];
      |                             ^~~
a.cc:32:10: error: 'arr' was not declared in this scope
   32 |       if(arr[i]==0)
      |          ^~~
Language: Java

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

    public class Main {
        public static void main(String args[]) {
          
     
            Scanner scan = new Scanner(System.in);
     
          
          int []a=new int[5];
          for(int i=0;i<5;i++)
          {
            a[i]=scan.nextInt();
            if(a[i]==0)
              p=i+1;
              System.out.println(p);
          }
         
                   
     
          
        }
    }



Compiler output:
Main.java:17: error: cannot find symbol
              p=i+1;
              ^
  symbol:   variable p
  location: class Main
Main.java:18: error: cannot find symbol
              System.out.println(p);
                                 ^
  symbol:   variable p
  location: class Main
2 errors
Language: C++

#include <iostream>
#incluse <cstdio> 

using namespace std;
 
 
int main(){
for(int i = 0; i<5 i++);{
 	cin << i;
    if(i == 0);{
     	cout >> i + 1; 
    } 
} 
  
 
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incluse; did you mean #include?
    2 | #incluse <cstdio>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:19: error: expected ';' before 'i'
    8 | for(int i = 0; i<5 i++);{
      |                   ^~
      |                   ;
a.cc:9:16: error: 'i' was not declared in this scope
    9 |         cin << i;
      |                ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
ios_base::sync_with_stdio(false);
  int n=5;
  int arr[n];
  
  for(int i=0;i<n;i++)
  {
    cin>>arr[i];
    if(arr[i]==0)
    {
      cout<<(i+1)<<endl;
      return 0;
    }
  
  

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

#include<bits/stdc++.h>
 
using namespace std;
 
int main(){
  int n[5];
  int ans;
  
  for(int i=0;i<5;i++){
    cin >> n[i];
  }
  
  for(int i=0;i<5; i++){
    if(n[i] == 0){
      ans = i + 1;
    }
  }

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

#include<bits/stdc++.h>

using namespace std;

int main(){
  int n[5];
  int ans;
  
  for(int i=0;i<5;i++){
    cin >> n[i];
  }
  
  for(int i=0;i<5; i++){
    if(n[i] == 0){
      ans = i + 1;
    }
  }


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(){
  int n[5];
  int ans;
  
  for(int i=0;i<5;i++){
    cin >> n[i];
  }
  
  for(int i=0;i<5; i++){
    if(n[i] == 0){
      ans = i + 1;
    }
  }
  
  cout << ans << endl;

}

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

#include<Stdio.h>
int main()
{
    int arr[5], n=5;
    for(int i=0; i<n; i++) scanf("%d",&arr[i]);
    while(n--) if(arr[n]==0) printf("%d",n+1);
    return 0;
}


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

//CODING ME ACCHHA KARNEKA HAI TERKO TO BAS PRACTICE KARTE REH
#include <bits/stdc++.h>
#define pragma
using namespace std;
#define ll long long
#define ld long double
#define pb push_back
#define pf push_front
#define aisort sort(a,a+n)
#define adsort sort(a,a+n,greater<ll>())

typedef pair<ll, ll> pii;
typedef pair<ll, pii> piii;
typedef vector<ll> vi;
typedef vector<string> vs;
typedef vector<pii> vii;
typedef vector<piii> viii;
typedef set<ll> Set;

const ll maxs = 1e5+3;
const ll maxs1 = 1e3+4;
const ll mod = 1e9 + 7;

//MODULO OPEARTIONS
    inline ll add(ll a, ll b) { return (mod + a + b) % mod; }
    inline ll sub(ll a, ll b) { return (a - b + mod) % mod; }
    inline ll mul(ll a, ll b) { return (1ll * a * b) % mod; }

//POWER
    ll fastpow(ll x,ll y)
    {ll res = 1;x = x % mod;while (y > 0){ if (y & 1)res = (res * x) % mod; y = y >> 1 ; x = (x * x) % mod; } return res;}

//MODULAR INVERSE
    ll inv(ll x){ return fastpow(x , mod - 2);}
    
//PRIME
    bool isPrime(ll n) { if (n <= 1)  return false; if (n <= 3)  return true;if (n%2 == 0 || n%3 == 0) return false; for (int i=5; i*i<=n; i=i+6) if (n%i == 0 || n%(i+2) == 0) return false; return true; } 

int a[maxs];
int tree[4*maxs];

void build(int node,int s,int e)
{
    if(s==e)
    {
        tree[node]=a[s];
    }
    else
    {
        int mid=(s+e)/2;
        build(node*2,s,mid);
        build(node*2+1,mid+1,e);
        tree[node]=tree[node*2]+tree[node*2+1];
    }
}
void update(int node,int s,int e,int idx,int val)
{
    if(s==e)
    {
        a[idx]=val;
        tree[node]=val;
    }
    else
    {
        mid=(s+e)/2;
        if(idx>=s&&idx<=mid)
        update(node*2,s,mid,idx,val);
        else
        update(node*2+1,mid+1,e,idx,val);
         tree[node]=tree[node*2]+tree[node*2+1];
    }
}
int querys(int node,int s,int e,int l,int r)
{
    if(l>e||s>r)
    return 100005;
    if(l<=s&&r>=e)
    return tree[node];
    else
    {
        int mid=(s+e)/2;
        int p1=query(2*node,s,mid,l,r);
        int p2=query(2*node+1,mid+1,e,l,r);
        return p1+p2;
    }
    
}
int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    for(i=1;i<=5;i++)
    cin>>a[i];
    
   for(i=1;i<=5;i++)
   if(a[i]==0)
   break;
   
   cout<<i;
}




Compiler output:
a.cc: In function 'void update(int, int, int, int, int)':
a.cc:65:9: error: 'mid' was not declared in this scope; did you mean 'mod'?
   65 |         mid=(s+e)/2;
      |         ^~~
      |         mod
a.cc: In function 'int querys(int, int, int, int, int)':
a.cc:82:16: error: 'query' was not declared in this scope; did you mean 'querys'?
   82 |         int p1=query(2*node,s,mid,l,r);
      |                ^~~~~
      |                querys
a.cc: In function 'int main()':
a.cc:93:9: error: 'i' was not declared in this scope; did you mean 'vi'?
   93 |     for(i=1;i<=5;i++)
      |         ^
      |         vi
a.cc:96:8: error: 'i' was not declared in this scope; did you mean 'vi'?
   96 |    for(i=1;i<=5;i++)
      |        ^
      |        vi
a.cc:100:10: error: 'i' was not declared in this scope; did you mean 'vi'?
  100 |    cout<<i;
      |          ^
      |          vi
Language: C

#include<stdio.h>

int main()
{
    int i,a,x[5];
    for(i=0;i<5;i++)
    {
        scanf("%d",&x[i]);
        if (x[i]==0)
        {
            a=i+1;
        }
    printf("%d",a);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
    int i,a,x[5];
    for(i=0;i<5;i++)
    {
        scanf("%d"&x[i]);
        if (x[i]==0)
        {
            a=i+1;
        }
    printf("%d"a);
    return 0
}

Compiler output:
main.c: In function 'main':
main.c:8:19: error: invalid operands to binary & (have 'char *' and 'int')
    8 |         scanf("%d"&x[i]);
      |               ~~~~^~~~~
      |               |     |
      |               |     int
      |               char *
main.c:13:16: error: expected ')' before 'a'
   13 |     printf("%d"a);
      |           ~    ^
      |                )
main.c:14:13: error: expected ';' before '}' token
   14 |     return 0
      |             ^
      |             ;
   15 | }
      | ~            
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: Java

public class Main {

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int num = 0;
		int ans = 0;
		for(int i = 1; i < 6; i++) {
			num = scan.nextInt();
			if(num == 0) {
				ans = i;
			}
		}
		System.out.println(ans);
		
		
	}

}


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

#include<iostream>
using namespace std;
void main(){
  int *p = new int[5];
  
  for(int i=0;i<5;i++){
    cin>>p[i];
  }
  for(int i =0;i<5;i++){
    if(p[i]==0){
      cout<<i;
      break;
    }
  }
}

  


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

void main(){
  int *p = new int[5];
  
  for(int i=0;i<5;i++){
    cin>>p[i];
  }
  for(int i =0;i<5;i++){
    if(p[i]==0){
      cout<<i;
      break;
    }
  }
}

  

Compiler output:
a.cc:1:1: error: '::main' must return 'int'
    1 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin>>p[i];
      |     ^~~
a.cc:9:7: error: 'cout' was not declared in this scope
    9 |       cout<<i;
      |       ^~~~
Language: C++

int *p = new int[5];

for( int i =0;i<5;i++){
  cin>>p[i];
}

for(int i=0;i<5;i++){
  if(p[i] ==0){
  	cout<<i<<endl;
    break;
  }
}

Compiler output:
a.cc:3:1: error: expected unqualified-id before 'for'
    3 | for( int i =0;i<5;i++){
      | ^~~
a.cc:3:15: error: 'i' does not name a type
    3 | for( int i =0;i<5;i++){
      |               ^
a.cc:3:19: error: 'i' does not name a type
    3 | for( int i =0;i<5;i++){
      |                   ^
a.cc:7:1: error: expected unqualified-id before 'for'
    7 | for(int i=0;i<5;i++){
      | ^~~
a.cc:7:13: error: 'i' does not name a type
    7 | for(int i=0;i<5;i++){
      |             ^
a.cc:7:17: error: 'i' does not name a type
    7 | for(int i=0;i<5;i++){
      |                 ^
Language: C

#include<stdio.h>
int main ()
{
    int x[5],i,a;
    for (i=0; i<5; i++)
    {
        scanf("%d" &x[i]);
        if (x[i] == 0)
        {
            a=i;
        }
    }
    printf("%d" a+1);
}

Compiler output:
main.c: In function 'main':
main.c:7:20: error: invalid operands to binary & (have 'char *' and 'int')
    7 |         scanf("%d" &x[i]);
      |               ~~~~ ^~~~~
      |               |      |
      |               char * int
main.c:13:16: error: expected ')' before 'a'
   13 |     printf("%d" a+1);
      |           ~    ^~
      |                )
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
      
      int x1 = sc.nextInt();
      int x2 = sc.nextInt();
      int x3 = sc.nextInt();
      int x4 = sc.nextInt();
      int x5 = sc.nextInt();
      
      if(x1==0){
        System.out.println("1");
      }else if(x2==0){
        System.out.println("2");
      }else if(x3==0){
        System.out.println("3");
      }else if(x4==0){
        System.out.println("4");
      }else if(x5==0){
        System.out.println("5");
      }
      
    }
}
      

Compiler output:
Main.java:6: error: cannot find symbol
      int x1 = sc.nextInt();
               ^
  symbol:   variable sc
  location: class Main
Main.java:7: error: cannot find symbol
      int x2 = sc.nextInt();
               ^
  symbol:   variable sc
  location: class Main
Main.java:8: error: cannot find symbol
      int x3 = sc.nextInt();
               ^
  symbol:   variable sc
  location: class Main
Main.java:9: error: cannot find symbol
      int x4 = sc.nextInt();
               ^
  symbol:   variable sc
  location: class Main
Main.java:10: error: cannot find symbol
      int x5 = sc.nextInt();
               ^
  symbol:   variable sc
  location: class Main
5 errors
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
      
      int x1 = sc.nextInt();
      int x2 = sc.nextInt();
      int x3 = sc.nextInt();
      int x4 = sc.nextInt();
      int x5 = sc.nextInt();
      
      if(x1==0){
        System.out.println("1")
      }else if(x2==0){
        System.out.println("2")
      }else if(x3==0){
        System.out.println("3")
      }else if(x4==0){
        System.out.println("4")
      }else if(x5==0){
        System.out.println("5")
      }
      
    }
}
      

Compiler output:
Main.java:13: error: ';' expected
        System.out.println("1")
                               ^
Main.java:15: error: ';' expected
        System.out.println("2")
                               ^
Main.java:17: error: ';' expected
        System.out.println("3")
                               ^
Main.java:19: error: ';' expected
        System.out.println("4")
                               ^
Main.java:21: error: ';' expected
        System.out.println("5")
                               ^
5 errors
Language: Java

import java.util.*;

public class A{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int [] a = new int[5];
    for (int i=0;i<5;i++){
      a[i] = scan.nextInt();
    }

    for (int j=0;j<5;j++){
      if (a[j] == 0){
        System.out.println(j+1);
        return;
      }
    }
  }
}


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

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


/********************************************************************/
#define M1 1000000007
#define M2 998244353
#define ll long long
#define pll pair<ll,ll>
#define REP(i,a,b) for(ll i=a;i<b;i++)
#define REPR(i,a,b) for(ll i=b-1;i>=a;i--)
#define forr(i,n) for(ll i=0;i<n;i++)
#define F first
#define S second
#define pb push_back
#define DB pop_back
#define mp make_pair
#define MT make_tuple
#define V(a) vector<a>
#define vi vector<ll>
#define endl '\n'
#define ce(ele) cout<<ele<<' '
#define cs(ele) cout<<ele<<'\n'
#define CASE(t) ll t; cin>>t; while(t--)
/********************************************************************/
// const int mx = 1e7 + 5;
const double pi = 3.1415926535;
/********************************************************************/
//FAST IO//
void FAST() {
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
}
const int mx = 1e5 + 5;
ll freq[mx] = {};

/********************************************************************/
int main() {
	FAST();
	ll ar[5];
	ll ans ;
	for (int i = 0; i < n; i++) {
		cin >> ar[i];
		if (!ar[i])
			ans = i + 1;
	}
	cout << ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:29: error: 'n' was not declared in this scope
   43 |         for (int i = 0; i < n; i++) {
      |                             ^
Language: Java

import java.util.*;

public class A{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int [] a = new int[5];
    for (int i=0;i<5;i++){
      a[i] = scan.nextInt();
    }

    for (int j=0;j<5;j++){
      if (a[j] == 0){
        System.out.println(j);
        return;
      }
    }
  }
}


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

#include <bits/stdc++.h>
#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++)
using namespace std;
using P = pair<int, int>; 
using ll = long long;

int main()
{
  int a;
  rep(i, n){
    cin >> a;
    if (a == 0) {
      cout << i + 1 << endl;
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'n' was not declared in this scope
   11 |   rep(i, n){
      |          ^
a.cc:2:45: note: in definition of macro 'rep'
    2 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                             ^
Language: C++

#include<bits/stdc++.h>
int main(){
int n;
  int ans=0;;
  for(int i=0;i<5;i++){
  cin>>n;
    if(n==0){
	ans=i+1;
      break;
    }
  }
  
  cout<<ans;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>n;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout<<ans;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#includestdio.h>
int main(void)
{
	int a[6],i,b;
	for(i=1,i<=5,i++){
		scanf("%d",&a[i]);
		if(a[i]==0){
		b=i;
		}
	}
	printf("%d\n",b);
	return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #includestdio
    1 | #includestdio.h>
      |  ^~~~~~~~~~~~
main.c: In function 'main':
main.c:5:25: error: expected ';' before ')' token
    5 |         for(i=1,i<=5,i++){
      |                         ^
      |                         ;
main.c:5:25: error: expected expression before ')' token
main.c:6:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |                 scanf("%d",&a[i]);
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includestdio.h>
main.c:6:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |                 scanf("%d",&a[i]);
      |                 ^~~~~
main.c:6:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |         printf("%d\n",b);
      |         ^~~~~~
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: Java

import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.StringTokenizer;


public class Dominated_Subarray {

  public static PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));

  static class FastReader {

    BufferedReader br;
    StringTokenizer st;

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

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

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

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

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

    String[] nextSArray() {
      String sr[] = null;
      try {
        sr = br.readLine().trim().split(" ");
      } catch (IOException e) {
        e.printStackTrace();
      }
      return sr;
    }

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

      return str;
    }
  }

  //  static int MOD=1000000000+7;
//  public static void sortbyCol(int arr[][],int col)
//  {
//    Arrays.sort(arr,new Comparator<int[]>(){
//      @Override
//      public int compare(int[] o1, int[] o2) {
//        // To sort in descending order revert
//        // the '>' Operator
//        if(o1[col]>o2[col])
//          return 1;
//        else
//          return -1;
//      }
//    });
//  }


  public static void main(String[] args) throws java.lang.Exception {
    FastReader sc = new FastReader();
//   int t1=sc.nextInt();
//
//   for(int t=0;t<t1;++t)
//   {
//
//   }
    int ans=0;
    for(int i=0;i<5;++i)
    {
      if(sc.nextInt()==0)
        ans=i+1;
    }
    System.out.println(ans);
  }

}

// out.println(al.toString().replaceAll("[\\[|\\]|,]",""));


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


#include "bits/stdc++"
using namespace std;


//wierd debugging stuff
#define sim template < class c
#define ris return * this
#define dor > debug & operator <<
#define eni(x) sim > typename \
  enable_if<sizeof dud<c>(0) x 1, debug&>::type operator<<(c i) {
sim > struct rge { c b, e; };
sim > rge<c> range(c i, c j) { return rge<c>{i, j}; }
sim > auto dud(c* x) -> decltype(cerr << *x, 0);
sim > char dud(...);
struct debug {
#ifdef LOCAL
~debug() { cerr << endl; }
eni(!=) cerr << boolalpha << i; ris; }
eni(==) ris << range(begin(i), end(i)); }
sim, class b dor(pair < b, c > d) {
  ris << "(" << d.first << ", " << d.second << ")";
}
sim dor(rge<c> d) {
  *this << "[";
  for (auto it = d.b; it != d.e; ++it)
    *this << ", " + 2 * (it == d.b) << *it;
  ris << "]";
}
#else
sim dor(const c&) { ris; }
#endif
};
#define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
//end of weird debugging stuff
using ll = long long;
using vi = vector<int>;
using ii = pair<int,int>;
using vii  = vector<ii>;
using vll = vector<ll>;
using vvi = vector<vector<int>>;
#define FASTER ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define invec(v) for(auto& x : v)cin>>x;
#define REP(i,j,k) for(int i=(j);(i)<(k);(i)++)
#define Time()	cerr <<'\n' << clock() * 1000 / CLOCKS_PER_SEC << "ms\n"
#define SZ(x) (int)x.size()
#define all(x) x.begin(),x.end()
#define ar array

// no change 

//const int MxN = 1e9+5;
void solve(){
	for(int i =1;i<=5;i++){
		int x;
		cin >> x;
		if(x ==0)cout << i;
	}
}
int main() {
	FASTER;
	int T=1;
	//cin >> T;
	while(T--)solve();	
	#ifdef LOCAL
	Time();
	#endif
}


Compiler output:
a.cc:2:10: fatal error: bits/stdc++: No such file or directory
    2 | #include "bits/stdc++"
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <vector>
#include <pair>
using namespace std;


//wierd debugging stuff
#define sim template < class c
#define ris return * this
#define dor > debug & operator <<
#define eni(x) sim > typename \
  enable_if<sizeof dud<c>(0) x 1, debug&>::type operator<<(c i) {
sim > struct rge { c b, e; };
sim > rge<c> range(c i, c j) { return rge<c>{i, j}; }
sim > auto dud(c* x) -> decltype(cerr << *x, 0);
sim > char dud(...);
struct debug {
#ifdef LOCAL
~debug() { cerr << endl; }
eni(!=) cerr << boolalpha << i; ris; }
eni(==) ris << range(begin(i), end(i)); }
sim, class b dor(pair < b, c > d) {
  ris << "(" << d.first << ", " << d.second << ")";
}
sim dor(rge<c> d) {
  *this << "[";
  for (auto it = d.b; it != d.e; ++it)
    *this << ", " + 2 * (it == d.b) << *it;
  ris << "]";
}
#else
sim dor(const c&) { ris; }
#endif
};
#define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
//end of weird debugging stuff
using ll = long long;
using vi = vector<int>;
using ii = pair<int,int>;
using vii  = vector<ii>;
using vll = vector<ll>;
using vvi = vector<vector<int>>;
#define FASTER ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define invec(v) for(auto& x : v)cin>>x;
#define REP(i,j,k) for(int i=(j);(i)<(k);(i)++)
#define Time()	cerr <<'\n' << clock() * 1000 / CLOCKS_PER_SEC << "ms\n"
#define SZ(x) (int)x.size()
#define all(x) x.begin(),x.end()
#define ar array

// no change 

//const int MxN = 1e9+5;
void solve(){
	for(int i =1;i<=5;i++){
		int x;
		cin >> x;
		if(x ==0)cout << i;
	}
}
int main() {
	FASTER;
	int T=1;
	//cin >> T;
	while(T--)solve();	
	#ifdef LOCAL
	Time();
	#endif
}


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

#include<stdio.h>
#include<vector>

int main(){

  for(int i=0; i<5; i++){

    int k;
    std::cin>>k;
    if(k==0){
    std::cout<<i+1;
    }

  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'cin' is not a member of 'std'
    9 |     std::cin>>k;
      |          ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<vector>
  +++ |+#include <iostream>
    3 | 
a.cc:11:10: error: 'cout' is not a member of 'std'
   11 |     std::cout<<i+1;
      |          ^~~~
a.cc:11:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'