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

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

int main{
  int N,K,L,tmp;
  L=0;
  cin >> N >> K;
  int l[N];
  for(int i=0;i<=N;i++){
  cin >> N[0];
  }
  cin >> endl;

  for (i=0; i<N; ++i) {
    for (j=i+1; j<N; ++j) {
      if (l[i] < l[j]) {
        tmp =  l[i];
        l[i] = l[j];
        l[j] = tmp;
      }
    }
  }

  for(int i=0;i<K;i++){
  L=L+N[i];
  }

  cout << L;

  return 0;
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int N,K,L,tmp;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'L' does not name a type
    6 |   L=0;
      |   ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> N >> K;
      |   ^~~
a.cc:8:9: error: 'N' was not declared in this scope
    8 |   int l[N];
      |         ^
a.cc:9:3: error: expected unqualified-id before 'for'
    9 |   for(int i=0;i<=N;i++){
      |   ^~~
a.cc:9:15: error: 'i' does not name a type
    9 |   for(int i=0;i<=N;i++){
      |               ^
a.cc:9:20: error: 'i' does not name a type
    9 |   for(int i=0;i<=N;i++){
      |                    ^
a.cc:12:3: error: 'cin' does not name a type
   12 |   cin >> endl;
      |   ^~~
a.cc:14:3: error: expected unqualified-id before 'for'
   14 |   for (i=0; i<N; ++i) {
      |   ^~~
a.cc:14:13: error: 'i' does not name a type
   14 |   for (i=0; i<N; ++i) {
      |             ^
a.cc:14:18: error: expected unqualified-id before '++' token
   14 |   for (i=0; i<N; ++i) {
      |                  ^~
a.cc:24:3: error: expected unqualified-id before 'for'
   24 |   for(int i=0;i<K;i++){
      |   ^~~
a.cc:24:15: error: 'i' does not name a type
   24 |   for(int i=0;i<K;i++){
      |               ^
a.cc:24:19: error: 'i' does not name a type
   24 |   for(int i=0;i<K;i++){
      |                   ^
a.cc:28:3: error: 'cout' does not name a type
   28 |   cout << L;
      |   ^~~~
a.cc:30:3: error: expected unqualified-id before 'return'
   30 |   return 0;
      |   ^~~~~~
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++

int main()
{
	int a, b;
	cin >> a >> b;
	if (((a + b) % 3) == 0) {
		cout << "Possible" << endl;
	}else {
		cout << "Impossible" << endl;
	}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> a >> b;
      |         ^~~
a.cc:6:17: error: 'cout' was not declared in this scope
    6 |                 cout << "Possible" << endl;
      |                 ^~~~
a.cc:6:39: error: 'endl' was not declared in this scope
    6 |                 cout << "Possible" << endl;
      |                                       ^~~~
a.cc:8:17: error: 'cout' was not declared in this scope
    8 |                 cout << "Impossible" << endl;
      |                 ^~~~
a.cc:8:41: error: 'endl' was not declared in this scope
    8 |                 cout << "Impossible" << endl;
      |                                         ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int a,b,c;
    
  cin >> a >> b;
  c=a+b;

  if(a%3==0){
  cout << "Possible" << endl;
  }elseif(b%3==0)
  cout << "Possible" << endl;
  }elseif(c%3==0)
  cout << "Possible" << endl;
  }else{
  cout << "Impossible" << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:4: error: 'elseif' was not declared in this scope
   13 |   }elseif(b%3==0)
      |    ^~~~~~
a.cc: At global scope:
a.cc:15:10: error: expected constructor, destructor, or type conversion before '(' token
   15 |   }elseif(c%3==0)
      |          ^
a.cc:17:3: error: expected declaration before '}' token
   17 |   }else{
      |   ^
a.cc:17:4: error: expected unqualified-id before 'else'
   17 |   }else{
      |    ^~~~
a.cc:21:3: error: expected unqualified-id before 'return'
   21 |   return 0;
      |   ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int a,b,c;
    
  cin >> a >> b;
  c=a+b;

  if(a%3=0){
  cout << "Possible" << endl;
  }elseif(b%3=0)
  cout << "Possible" << endl;
  }elseif(c%3=0)
  cout << "Possible" << endl;
  }else{
  cout << "Impossible" << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: lvalue required as left operand of assignment
   11 |   if(a%3=0){
      |      ~^~
a.cc:13:12: error: lvalue required as left operand of assignment
   13 |   }elseif(b%3=0)
      |           ~^~
a.cc:13:4: error: 'elseif' was not declared in this scope
   13 |   }elseif(b%3=0)
      |    ^~~~~~
a.cc: At global scope:
a.cc:15:10: error: expected constructor, destructor, or type conversion before '(' token
   15 |   }elseif(c%3=0)
      |          ^
a.cc:17:3: error: expected declaration before '}' token
   17 |   }else{
      |   ^
a.cc:17:4: error: expected unqualified-id before 'else'
   17 |   }else{
      |    ^~~~
a.cc:21:3: error: expected unqualified-id before 'return'
   21 |   return 0;
      |   ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

A,B = map(int, input().split())


if A%3 == 0 or B%3 == 0 or (A+B)%3==0:
    print("Possible")
else:
    print("Impossible")




Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A,B = map(int, input().split())
      | ^
Language: Java

    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.io.PrintWriter;
    import java.util.StringTokenizer;

import Main339A.IOUtils;
     
    /**
     * Built using CHelper plug-in Actual solution is at the top
     */
    public class Main {
     
    	public static void main(String[] args) {
    	
     
    		InputStream inputStream = System.in;
			OutputStream outputStream = System.out;
			IOUtils in = new IOUtils(inputStream);
			PrintWriter out = new PrintWriter(outputStream);
    		Solution solver = new Solution();
    		solver.solve(in, out);
    		out.close();
    		
    	
    	}
     
    	static class Solution {
    		
    		public void solve(IOUtils in, PrintWriter out) {
     
    			int a = in.nextInt();
    			int b = in.nextInt();
    			int c = a + b;
    			int goats = 3;
    			if (a % goats == 0 || b % goats == 0 || c % goats == 0) {
    				out.println("Possible");
    			} else {
    				out.println("Impossible");
    			}
     
    		}
     
    	}
     
    	static class IOUtils {

			private BufferedReader reader;
			private StringTokenizer tokenizer;

			public IOUtils(InputStream stream) {
				reader = new BufferedReader(new InputStreamReader(stream));
				tokenizer = null;
			}

			public String next() {
				while (tokenizer == null || !tokenizer.hasMoreTokens()) {
					try {
						tokenizer = new StringTokenizer(reader.readLine());
					} catch (IOException e) {
						throw new RuntimeException(e);
					}
				}
				return tokenizer.nextToken();
			}

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

		}
    }

Compiler output:
Main.java:9: error: package Main339A does not exist
import Main339A.IOUtils;
               ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;

/**
 * Built using CHelper plug-in Actual solution is at the top
 */
public class SharingCookies {

	public static void main(String[] args) {

		InputStream inputStream = System.in;
		OutputStream outputStream = System.out;
		InputReader in = new InputReader(inputStream);
		PrintWriter out = new PrintWriter(outputStream);
		Solution solver = new Solution();
		solver.solve(in, out);
		out.close();
	}

	static class Solution {
		
		public void solve(InputReader in, PrintWriter out) {

			int a = in.nextInt();
			int b = in.nextInt();
			int c = a + b;
			int goats = 3;
			if (a % goats == 0 || c % goats == 0 || c % goats == 0) {
				out.println("Possible");
			} else {
				out.println("Impossible");
			}

		}

	}

	static class InputReader {
		public BufferedReader reader;
		public StringTokenizer tokenizer;

		public InputReader(InputStream stream) {
			reader = new BufferedReader(new InputStreamReader(stream), 32768);
			tokenizer = null;
		}

		public String next() {
			while (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return tokenizer.nextToken();

		}

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

	}
}

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

int main()
{
    long N;
    long long sum=0;
    cin >> N;
    long long a[200001]={0};
    for(int i=0;i<N;i++){
        cin >> a[i];
        sum += a[i];
    }
    long long ans=10000000000;
    long long tmp=0;
    for(int k=0;k<N-1;k++){
            tmp+=a[k];
            ans=min(abs(sum-2*tmp),ans);
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> N;
      |     ^~~
a.cc:15:21: error: 'abs' was not declared in this scope; did you mean 'ans'?
   15 |             ans=min(abs(sum-2*tmp),ans);
      |                     ^~~
      |                     ans
a.cc:15:17: error: 'min' was not declared in this scope; did you mean 'main'?
   15 |             ans=min(abs(sum-2*tmp),ans);
      |                 ^~~
      |                 main
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << ans << endl;
      |     ^~~~
a.cc:17:20: error: 'endl' was not declared in this scope
   17 |     cout << ans << endl;
      |                    ^~~~
Language: Java

import java.util.Scanner;

class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if ((a+b) % 3 == 0) {
			System.out.println("Possible");
		} else if (a % 3 == 0) {
			System.out.println("Possible");
		} else if (b % 3 == 0) {
			System.out.println("Possible");
		} else {
			System.out.println("Impossible);
		}
		sc.close();
	}

}


Compiler output:
Main.java:18: error: unclosed string literal
			System.out.println("Impossible);
			                   ^
1 error
Language: Java

import java.util.Scanner;

class Main {
 
	public static void main(String[] args) {
		// TODO Auto-generated method stub
 
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if ((a+b) % 3 == 0) {
			System.out.println("Possible");
		} else {
			System.out.println("Impossible");
		}
		sc.close();
	}
 

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

import java.util.Scanner;

public class A {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if ((a+b) % 3 == 0) {
			System.out.println("Possible");
		} else {
			System.out.println("Impossible");
		}
		sc.close();
	}

}


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 <iostream>
using namespace std;
 int main()
 {
   int a, b;
   cin >> a >> b;
   if (a % 3 == 0 || b % == 0 || (a + b) % 3 == 0)
   {
       cout << "Possible" << endl;
   }
   else cout << "Impossible" << endl;
   return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected primary-expression before '==' token
    7 |    if (a % 3 == 0 || b % == 0 || (a + b) % 3 == 0)
      |                          ^~
Language: Java

import java.util.Scanner;

public class ABC067_A{
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();

    if ((A%3==0) || (B%3==0) || ((A+B)%3==0)) {
        System.out.println("Possible");
    }else{
        System.out.println("Impossible");
    }
  }
}


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

#include <iostream>

using namespace std;

int main(){
  cin >> a >> b;
  if(a%3==0 || b%3==0 ||(a+b)%3==0){
    cout << "Possible";
  }else{
      cout << "Impossible";
    }
  return 0;
}


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

#include<iosteam.h>
using namspace std;

int main(void)
{
int a,b;

cin<<a<<b;

if((a+b)%3==0)
  cout>>"Possible">>endl;
else if((a+b)%3!=0)
   cout>>"Impossible">>endl;

return 0;
}

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

#include<iostream>
using namespace std;

int main(void)
{
int a,b;

cin>>a>>b;

if((a+b)%3==0)
  cout<<"Possible"<<endl;
else
   cout<<"Impossible"<<endl;

return 0;
}

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

a,b=map(int,input().split())
if a%3==0 or b%3==0 or (a+b)%3==0:
    print("POSSIBLE")
else:
    print("IMPOSSIBLE")

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b=map(int,input().split())
      | ^
Language: C++

#include<cmath>
#include<math.h>
#include<ctype.h>
#include<algorithm>
#include<bitset>
#include<cassert>
#include<cctype>
#include<cerrno>
#include<cfloat>
#include<ciso646>
#include<climits>
#include<clocale>
#include<complex>
#include<csetjmp>
#include<csignal>
#include<cstdarg>
#include<cstddef>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
#include<cwchar>
#include<cwctype>
#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>
#include<string.h>
#include<stdlib.h>
#include<stdio.h>
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b;
	cin>>a>>b;
	if((a+b)%c)
	cout<<"Impossible";
	else
	cout<<"Possible";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:62:18: error: 'c' was not declared in this scope
   62 |         if((a+b)%c)
      |                  ^
Language: C++

A, B = list(map(int, input().split()))
if A % 3 == 0 or B % 3 == 0 or (A+B) % 3 == 0:
	print("Possible")
else:
	print("Impossible")

Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A, B = list(map(int, input().split()))
      | ^
Language: C++

//El Lool
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cmath>
#include <iomanip>
#include <algorithm>
#include <fstream>
#include <cctype>
#include <string>
#include <string.h>
#include <vector>
#include <sstream>
#include <queue>
#include <map>
#include <set>
using namespace std;
#define all(v) ((v).begin()),((v).end())
#define sz(v) ((int)((v).size()))
void fast()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
}
string cop(vector<char>v)
{
	string x;
	for (int i = 0; i < sz(v); i++)
		x += v[i];
	return x;
}

int main()
{
	fast();
	int t, n, w;
	long long sum = 0, min = LONG_MAX;
	vector<long long>v;
	string s;
	t=1;

	while (t--)
	{
		cin >> n;
		for (int i = 0; i < n; i++)
		{
			cin >> w;
			sum += w;
			v.push_back(sum);
		}
		for (int i = 0; i < v.size() - 1; i++)
		{
			long long  x = v[i];
			long long y = sum - v[i];
			if (abs(x-y) < min)
				min = abs(x-y);
		}
		cout << min << endl;
		min = LONG_MAX;
		v.clear();
		sum = 0;
	}
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:34: error: 'LONG_MAX' was not declared in this scope
   37 |         long long sum = 0, min = LONG_MAX;
      |                                  ^~~~~~~~
a.cc:16:1: note: 'LONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
   15 | #include <set>
  +++ |+#include <climits>
   16 | using namespace std;
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
int main(void){
	int a,b;
	cin>>a>>b;
	if((a+b)%3==0) cout<<'Possible"<<endl;
	else cout<<"Impossible"<<endl;
	return 0;
}

Compiler output:
a.cc:8:30: warning: missing terminating ' character
    8 |         if((a+b)%3==0) cout<<'Possible"<<endl;
      |                              ^
a.cc:8:30: error: missing terminating ' character
    8 |         if((a+b)%3==0) cout<<'Possible"<<endl;
      |                              ^~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:9: error: expected primary-expression before 'else'
    9 |         else cout<<"Impossible"<<endl;
      |         ^~~~
Language: C++

#!/usr/bin
# -*- cording: "utf-8" -*-

a = input().split()
a = list(map(int, a))
if (a[0] % 3 == 0) or (a[1] % 3 == 0) or ((a[0] + a[1]) % 3 == 0):
  print("Possible")
else:
  print("Impossible")

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin
      |  ^
a.cc:2:3: error: invalid preprocessing directive #-
    2 | # -*- cording: "utf-8" -*-
      |   ^
a.cc:4:1: error: 'a' does not name a type
    4 | a = input().split()
      | ^
Language: C++

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

int main() {
  int a,b;
  
  cin >> a >> b;
  if(a % 3 = 0){
	  cout << "Possible";
  }else if(b % 3 = 0){
	  cout << "Possible";
  }else if(a % 3 = 0){
	  cout << "Possible";
  }else if((a+b) % 3 = 0){
	  cout << "Possible";
  }else{
	  cout << "Impossible";
  }
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: lvalue required as left operand of assignment
    8 |   if(a % 3 = 0){
      |      ~~^~~
a.cc:10:14: error: lvalue required as left operand of assignment
   10 |   }else if(b % 3 = 0){
      |            ~~^~~
a.cc:12:14: error: lvalue required as left operand of assignment
   12 |   }else if(a % 3 = 0){
      |            ~~^~~
a.cc:14:18: error: lvalue required as left operand of assignment
   14 |   }else if((a+b) % 3 = 0){
      |            ~~~~~~^~~
Language: C++

    #include <bits/stdc++.h>
    using namespace std;
     
    int main(){
    int a,b;
    cin>>a>>b;
    if(a%3==0 || b%3==0 || (a+b)%3==0)
     returnt cout<<"Possible"<<endl,1;
    return cout<<"Impossible"<<endl,1;
     
     
    return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'returnt' was not declared in this scope
    8 |      returnt cout<<"Possible"<<endl,1;
      |      ^~~~~~~
Language: C++

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

int main(){
int a,b;
cin>>a>>b;
if(a%3==0 || b%3==0 || (a+b)%3==0)
 returnt cout<<"Possible"<<endl,1;
return cout<<"Impossible"<<endl,1;


return 0;
}

Compiler output:
a.cc:2:1: error: 'usnig' does not name a type
    2 | usnig namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin>>a>>b;
      | ^~~
      | std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:2: error: 'returnt' was not declared in this scope
    8 |  returnt cout<<"Possible"<<endl,1;
      |  ^~~~~~~
a.cc:9:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | return cout<<"Impossible"<<endl,1;
      |        ^~~~
      |        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:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | return cout<<"Impossible"<<endl,1;
      |                            ^~~~
      |                            std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main(void){
	int a,b;
	cin >>a>>b;
	if(a%3==0||b%3==0||(a+b)%3==0){
	cout <<"Possible"<<endl;
	}else{
	cout <<"Impossible"<<endl;
	}
	return 0;
}

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

typedef long long ll;
typedef unsigned int ui;
typedef unsigned long ul;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int,int> ii;
typedef vector<ii> vii;
const int inf = int (1e9) + int (1e5);
const ll infl = ll (2e18) + ll (1e10);
const ui M=1E9+7;
const double eps = 1e-9;

int main()
{
    std::ios_base::sync_with_stdio (false);

    int n,k;
    cin >> n >> k;
    vi l(n);
    for (int i=0;i<n;i++) cin >> l[i];
    sort(l.begin(),l.end(),greater<int>());
    int s=0;
    for (int i=0;i<k;i++) s += l[i];
    cout << s;

    return 0;
}


Compiler output:
a.cc:5:9: error: 'vector' does not name a type
    5 | typedef vector<int> vi;
      |         ^~~~~~
a.cc:6:9: error: 'vector' does not name a type
    6 | typedef vector<vi> vvi;
      |         ^~~~~~
a.cc:7:9: error: 'pair' does not name a type
    7 | typedef pair<int,int> ii;
      |         ^~~~
a.cc:8:9: error: 'vector' does not name a type
    8 | typedef vector<ii> vii;
      |         ^~~~~~
a.cc: In function 'int main()':
a.cc:16:10: error: 'std::ios_base' has not been declared
   16 |     std::ios_base::sync_with_stdio (false);
      |          ^~~~~~~~
a.cc:19:5: error: 'cin' was not declared in this scope
   19 |     cin >> n >> k;
      |     ^~~
a.cc:20:5: error: 'vi' was not declared in this scope; did you mean 'ui'?
   20 |     vi l(n);
      |     ^~
      |     ui
a.cc:21:34: error: 'l' was not declared in this scope
   21 |     for (int i=0;i<n;i++) cin >> l[i];
      |                                  ^
a.cc:22:10: error: 'l' was not declared in this scope
   22 |     sort(l.begin(),l.end(),greater<int>());
      |          ^
a.cc:22:28: error: 'greater' was not declared in this scope
   22 |     sort(l.begin(),l.end(),greater<int>());
      |                            ^~~~~~~
a.cc:22:36: error: expected primary-expression before 'int'
   22 |     sort(l.begin(),l.end(),greater<int>());
      |                                    ^~~
a.cc:22:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   22 |     sort(l.begin(),l.end(),greater<int>());
      |     ^~~~
      |     short
a.cc:25:5: error: 'cout' was not declared in this scope
   25 |     cout << s;
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a%3 == 0 || b%3 == 0 || (a+b)%3==0)
{
cout<< "Possible" <<endl;
else 
{
cout<< "Impossible" <<endl;
}
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: expected '}' before 'else'
    9 | else
      | ^~~~
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
a.cc: At global scope:
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include<iostream>
using namespace std;.
int main(){
 int a,b;
 cin >> a >> b;
 if(!(a%3&&b%3&&(a+b%3)))cout << "Possible\n";
 else cout << "Impossible\n";
 return 0;
}


Compiler output:
a.cc:2:21: error: expected unqualified-id before '.' token
    2 | using namespace std;.
      |                     ^
Language: C++

#include<iostream>
2.using namespace std;
3.int main(){
4. int a,b;
5. cin >> a >> b;
6. if(!(a%3&&b%3&&a+b%3))cout << "Possible\n";
7. else cout << "Inpossible\n";
8. return 0;
9.}


Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.using namespace std;
      | ^~~~~~~
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3.int main(){
      | ^~~~~
Language: C++

#incldue<iostream>
using namespace std;
int main(){
 int a,b;
 cin >> a >> b;
 if(!(a%3&&b%3&&a+b%3))cout << "Possible\n";
 else cout << "Inpossible\n";
 return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope
    5 |  cin >> a >> b;
      |  ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incldue<iostream>
a.cc:6:24: error: 'cout' was not declared in this scope
    6 |  if(!(a%3&&b%3&&a+b%3))cout << "Possible\n";
      |                        ^~~~
a.cc:6:24: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:7: error: 'cout' was not declared in this scope
    7 |  else cout << "Inpossible\n";
      |       ^~~~
a.cc:7:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int a,b; cin>>a>>b;
	cout<<((a+b)%3) "Impossible" : "Possible")<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: expected ';' before string constant
    5 |         cout<<((a+b)%3) "Impossible" : "Possible")<<endl;
      |                        ^~~~~~~~~~~~~
      |                        ;
Language: C++

#include <iostream>

using namespace std;

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(NULL);

    int a,n;
    cin >> a >> b;
    if(a%3 == 0 || b%3 == 0 || (a+b)%3 == 0) cout << "Possible" << endl;
    else cout << "Impossible" << endl;
    return 0;
}


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

#incclude<iostream>
using namespace std;
int main(){
for(;;)cout<<"w";
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incclude; did you mean #include?
    1 | #incclude<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:8: error: 'cout' was not declared in this scope
    4 | for(;;)cout<<"w";
      |        ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incclude<iostream>
Language: C

#include<stdio.h>
 
int main(){
 
int a,b;
 
scanf(“%d %d”,&a,&b);
 
if((a%3)!0 and (b%3)!0 and ((a+b)%3)!0){
printf("Impossible"); 
}else{
printf("Possible"); 
}

}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: stray '\342' in program
    7 | scanf(<U+201C>%d %d<U+201D>,&a,&b);
      |       ^~~~~~~~
main.c:7:8: error: expected expression before '%' token
    7 | scanf(“%d %d”,&a,&b);
      |        ^
main.c:7:13: error: stray '\342' in program
    7 | scanf(<U+201C>%d %d<U+201D>,&a,&b);
      |                    ^~~~~~~~
main.c:9:9: error: expected ')' before '!' token
    9 | if((a%3)!0 and (b%3)!0 and ((a+b)%3)!0){
      |   ~     ^
      |         )
Language: C

#include<stdio.h>
 
int main(){
 
int a,b;
 
scanf(“%d %d”,&a,&b);
 
a = (a/3)%
b = (b/3)%
 
if(a!0){
    pointf("Inpossible")
}else if(b!0){
    pointf("Inpossible")
}else if((a+b)/3%!0){
    pointf("Inpossible")
}else{
    pointf("possible")
}
 
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: stray '\342' in program
    7 | scanf(<U+201C>%d %d<U+201D>,&a,&b);
      |       ^~~~~~~~
main.c:7:8: error: expected expression before '%' token
    7 | scanf(“%d %d”,&a,&b);
      |        ^
main.c:7:13: error: stray '\342' in program
    7 | scanf(<U+201C>%d %d<U+201D>,&a,&b);
      |                    ^~~~~~~~
main.c:12:1: error: expected expression before 'if'
   12 | if(a!0){
      | ^~
Language: C++

#include<stdio.h>

int main(){

int a,b;

scanf(“%d %d”,&a,&b);

a = (a/3)%
b = (b/3)%

if(a!0){
    pointf("Inpossible")
}else if(b!0){
    pointf("Inpossible")
}else if((a+b)/3%!0){
    pointf("Inpossible")
}else{
    pointf("possible")
}

}

Compiler output:
a.cc:7:7: error: extended character “ is not valid in an identifier
    7 | scanf(“%d %d”,&a,&b);
      |       ^
a.cc:7:12: error: extended character ” is not valid in an identifier
    7 | scanf(“%d %d”,&a,&b);
      |            ^
a.cc: In function 'int main()':
a.cc:7:7: error: '\U0000201c' was not declared in this scope
    7 | scanf(“%d %d”,&a,&b);
      |       ^
a.cc:7:9: error: 'd' was not declared in this scope
    7 | scanf(“%d %d”,&a,&b);
      |         ^
a.cc:7:12: error: 'd\U0000201d' was not declared in this scope
    7 | scanf(“%d %d”,&a,&b);
      |            ^~
a.cc:12:1: error: expected primary-expression before 'if'
   12 | if(a!0){
      | ^~
a.cc:14:2: error: 'else' without a previous 'if'
   14 | }else if(b!0){
      |  ^~~~
a.cc:14:11: error: expected ')' before '!' token
   14 | }else if(b!0){
      |         ~ ^
      |           )
a.cc:15:5: error: 'pointf' was not declared in this scope; did you mean 'printf'?
   15 |     pointf("Inpossible")
      |     ^~~~~~
      |     printf
a.cc:17:5: error: 'pointf' was not declared in this scope; did you mean 'printf'?
   17 |     pointf("Inpossible")
      |     ^~~~~~
      |     printf
a.cc:19:5: error: 'pointf' was not declared in this scope; did you mean 'printf'?
   19 |     pointf("possible")
      |     ^~~~~~
      |     printf
Language: C++

#include<stdio.h>

int main(){

int a,b;

scanf(“%d,%d”,&a,&b);

a = (a/3)%
b = (b/3)%

if(a!0){
    pointf("Inpossible")
}else if(b!0){
    pointf("Inpossible")
}else if((a+b)/3%!0){
    pointf("Inpossible")
}else{
    pointf("possible")
}

}

Compiler output:
a.cc:7:7: error: extended character “ is not valid in an identifier
    7 | scanf(“%d,%d”,&a,&b);
      |       ^
a.cc:7:12: error: extended character ” is not valid in an identifier
    7 | scanf(“%d,%d”,&a,&b);
      |            ^
a.cc: In function 'int main()':
a.cc:7:7: error: '\U0000201c' was not declared in this scope
    7 | scanf(“%d,%d”,&a,&b);
      |       ^
a.cc:7:9: error: 'd' was not declared in this scope
    7 | scanf(“%d,%d”,&a,&b);
      |         ^
a.cc:7:11: error: expected primary-expression before '%' token
    7 | scanf(“%d,%d”,&a,&b);
      |           ^
a.cc:7:12: error: 'd\U0000201d' was not declared in this scope
    7 | scanf(“%d,%d”,&a,&b);
      |            ^~
a.cc:12:1: error: expected primary-expression before 'if'
   12 | if(a!0){
      | ^~
a.cc:14:2: error: 'else' without a previous 'if'
   14 | }else if(b!0){
      |  ^~~~
a.cc:14:11: error: expected ')' before '!' token
   14 | }else if(b!0){
      |         ~ ^
      |           )
a.cc:15:5: error: 'pointf' was not declared in this scope; did you mean 'printf'?
   15 |     pointf("Inpossible")
      |     ^~~~~~
      |     printf
a.cc:17:5: error: 'pointf' was not declared in this scope; did you mean 'printf'?
   17 |     pointf("Inpossible")
      |     ^~~~~~
      |     printf
a.cc:19:5: error: 'pointf' was not declared in this scope; did you mean 'printf'?
   19 |     pointf("possible")
      |     ^~~~~~
      |     printf
Language: C++

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

int main(){
  int N,
  long long su_sum, ta_sum;
  cin >> N;

  vector<long long> a(N), dif(N-1);
  for(int i = 0; i < N; i++) cin >> a[i];

  /*/
  すぬけの引く数を1〜Nまで変化させて、そのときのx-yを記録
  記録した配列をソートして、最小値を出力
  /*/

  //1〜Nまで変化させるループ(iで進める)
  for(int i = 0; i < N-1; i++){
    su_sum = 0;
    ta_sum = 0;

    //すぬけの合計値(0~iまで)を求めるためのループ
    for(int j = 0; j < i+1; j++){
      su_sum += a[j];
    }
    //たぬきの合計値(i+1 ~ N-1まで)を求めるループ
    for(int j = i+1; j < N; j++){
      ta_sum += a[j];
    }
    //x-yを格納
    dif[i] = abs(su_sum - ta_sum);
  }

  sort(dif.begin(),dif.end());
  cout << dif[0] << endl;

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected unqualified-id before 'long'
    9 |   long long su_sum, ta_sum;
      |   ^~~~
a.cc:22:5: error: 'su_sum' was not declared in this scope
   22 |     su_sum = 0;
      |     ^~~~~~
a.cc:23:5: error: 'ta_sum' was not declared in this scope
   23 |     ta_sum = 0;
      |     ^~~~~~
Language: C++

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

int main(){
	puts("Hello,world!")
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: expected ';' before '}' token
    6 |         puts("Hello,world!")
      |                             ^
      |                             ;
    7 | }
      | ~
Language: Java

import java.io.*;
import java.util.*;
import java.lang.*;
public class Main {
    public static void main(String[] args) throws Exception {
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            br.lines()
                .map(line -> Arrays.stream(line.split(" "))
                        .mapToInt(Integer::parseInt)
                        .toArray())
                .forEach(tokens -> {
                    int a = toknes[0];
                    int b = toknes[1];
                	if((a%3)||(b%3)||((a+b)%3))System.out.println("Possible");
                	else System.out.println("Impossible");
                });
        }
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
                    int a = toknes[0];
                            ^
  symbol:   variable toknes
  location: class Main
Main.java:13: error: cannot find symbol
                    int b = toknes[1];
                            ^
  symbol:   variable toknes
  location: class Main
Main.java:14: error: bad operand types for binary operator '||'
                	if((a%3)||(b%3)||((a+b)%3))System.out.println("Possible");
                	        ^
  first type:  int
  second type: int
3 errors
Language: Java

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

public class Main {
    public static void main(String[] args) throws Exception {
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            br.lines()
                .map(line -> Arrays.stream(line.split(" "))
                        .mapToInt(Integer::parseInt)
                        .toArray())
                .forEach(tokens -> {
                    int a = toknes[0];
                    int b = toknes[1];
                	if((a%3)||(b%3)||((a+b)%3))System.out.println("Possible");
                	else System.out.println("Impossible");
                });
        }
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
                    int a = toknes[0];
                            ^
  symbol:   variable toknes
  location: class Main
Main.java:13: error: cannot find symbol
                    int b = toknes[1];
                            ^
  symbol:   variable toknes
  location: class Main
Main.java:14: error: bad operand types for binary operator '||'
                	if((a%3)||(b%3)||((a+b)%3))System.out.println("Possible");
                	        ^
  first type:  int
  second type: int
3 errors
Language: Java

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

        if (a % 3 == 0 || (a + b) % 3 == 0){
            System.out.println("Possible");
        } else {
            System.out.println("Impossible");
        }
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

package kz.alikdemon.atcoder.ABC067;

import java.util.Scanner;

public class A {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        if (a % 3 == 0 || (a + b) % 3 == 0){
            System.out.println("Possible");
        } else {
            System.out.println("Impossible");
        }
    }
}


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

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

        if (a % 3 == 0 || (a + b) % 3 == 0){
            System.out.println("Possible");
        } else {
            System.out.println("Impossible");
        }
    }

Compiler output:
Main.java:1: 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)
1 error
Language: Java

import java.util.Scanner;

public class A {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        if (a % 3 == 0 || (a + b) % 3 == 0){
            System.out.println("Possible");
        } else {
            System.out.println("Impossible");
        }
    }
}


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: Java

public class A {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        if (a % 3 == 0 || (a + b) % 3 == 0){
            System.out.println("Possible");
        } else {
            System.out.println("Impossible");
        }
    }
}


Compiler output:
Main.java:1: error: class A is public, should be declared in a file named A.java
public class A {
       ^
Main.java:3: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class A
Main.java:3: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class A
3 errors
Language: C++

#include <cstdio>
#include <iostream>

using namespace std;

vector<int> v;

#define pb push_back

int main()
{
        int N; cin >> N;
        for(int i = 0; i < N; i++) cin >> v[i];

        int min = 2e5;

        for(int i = 1; i < N; i++)
        {
                if(abs(v[i] - v[i-1]) < min) min = abs(v[i] - v[i-1];
        }
        cout << min << endl;
}


Compiler output:
a.cc:6:1: error: 'vector' does not name a type
    6 | vector<int> v;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:13:43: error: 'v' was not declared in this scope
   13 |         for(int i = 0; i < N; i++) cin >> v[i];
      |                                           ^
a.cc:19:24: error: 'v' was not declared in this scope
   19 |                 if(abs(v[i] - v[i-1]) < min) min = abs(v[i] - v[i-1];
      |                        ^
Language: C++

include<iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;

if((!(A%2))||(!(B%2))||(!(A+B)%2))
cout<<"Possible";

else
cout<<"Impossible"

return 0;

}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>A>>B;
      | ^~~
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<"Possible";
      | ^~~~
a.cc:12:1: error: 'cout' was not declared in this scope
   12 | cout<<"Impossible"
      | ^~~~
Language: Java

import java.util.Scanner;
public class sample01 {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		if   ((a + b) % 3 == 0) {
			System.out.println("Possible");
		}else
			System.out.println("Impossible");
	}
}

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

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

int main(){
	int a, b, n, m, h;

	n = a + b;
	m = n + a;
	h = n + b

	if( n % 3 == 0 )
		cout << "Possible" << endl;

	else if( a % 3 == 0)
		cout << "Possible" << endl;

	else if( b % 3 == 0)
		cout << "Possible" << endl;

	else if( m % 3 == 0)
		cout << "Possible" << endl;

	else if( h % 3 == 0)
		cout << "Possible" << endl;

	else
		cout << "Impossible" << endl;


	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before 'if'
    9 |         h = n + b
      |                  ^
      |                  ;
   10 | 
   11 |         if( n % 3 == 0 )
      |         ~~        
a.cc:14:9: error: 'else' without a previous 'if'
   14 |         else if( a % 3 == 0)
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
int a, b, c, d, e, f;
cin >> a >> b;
c = a + b;
d = c % 3;
e = a % 3;
f = b % 3;
if(d == 0)cout << "#include<bits/stdc++.h>
using namespace std;
int main()
{
int a, b, c, d;
cin >> a >> b;
c = a + b;
d = c % 3;
if(d == 0)cout << "Possible" << endl;
else if(e == 0)cout << "Possible" << endl;
else if(f == 0)cout << "Possible" << endl;
else cout << "Impossible" << endl;
return 0;
}

Compiler output:
a.cc:11:19: warning: missing terminating " character
   11 | if(d == 0)cout << "#include<bits/stdc++.h>
      |                   ^
a.cc:11:19: error: missing terminating " character
   11 | if(d == 0)cout << "#include<bits/stdc++.h>
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:1: error: expected primary-expression before 'using'
   12 | using namespace std;
      | ^~~~~
a.cc:13:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   13 | int main()
      |         ^~
a.cc:13:9: note: remove parentheses to default-initialize a variable
   13 | int main()
      |         ^~
      |         --
a.cc:13:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:14:1: error: a function-definition is not allowed here before '{' token
   14 | {
      | ^
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

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

int main(){
	int a, b, n;

	n = a + b

	if( n % 3 == 0 )
		cout << "Possible" << endl;

	else if( a % 3 == 0)
		cout << "Possible" << endl;

	else if( b % 3 == 0)
		cout << "Possible" << endl;

	else
		cout << "Impossible" << endl;


	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before 'if'
    7 |         n = a + b
      |                  ^
      |                  ;
    8 | 
    9 |         if( n % 3 == 0 )
      |         ~~        
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else if( a % 3 == 0)
      |         ^~~~
Language: C++

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

int main(){
	double a, b, n;

	n = a + b

	if( n % 3 = 0 )
		cout << "Possible" << endl;

	else
		cout << "Impossible" << endl;


	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before 'if'
    7 |         n = a + b
      |                  ^
      |                  ;
    8 | 
    9 |         if( n % 3 = 0 )
      |         ~~        
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else
      |         ^~~~
Language: C++

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

int main(){
	int j,i;
	if(j+i/3 %= 0)cout << "Possible" << endl;
	else cout << "Impossible" << endl;
	return 0;
		  }


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: warning: division by zero [-Wdiv-by-zero]
    6 |         if(j+i/3 %= 0)cout << "Possible" << endl;
      |            ~~~~~~^~~~
a.cc:6:13: error: lvalue required as left operand of assignment
    6 |         if(j+i/3 %= 0)cout << "Possible" << endl;
      |            ~^~~~
Language: C

#include <stdio.h>

int main(void)
{
  int a, b;
scanf("%d%d", &a, &b);
if((a+b)%3 == 0){
printf("Possible\n");
}else{
printf("Impossible\n");
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:12:1: error: expected declaration or statement at end of input
   12 | return 0;
      | ^~~~~~
Language: C

#include <stdio.h>

int main(void)
{
  int a, b;
scanf("%d", &a);
scanf("%d", &b);
if((a+b)%3 == 0){
printf("Possible\n");
}else{
printf("Impossible\n");
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:13:1: error: expected declaration or statement at end of input
   13 | return 0;
      | ^~~~~~
Language: C

#include <stdio.h>

int main(void)
{
  int a, b;
scanf("%d %d ", &a, &b);
if((a+b)%3 == 0){
printf("Possible\n");
}else{
printf("Impossible\n");
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:12:1: error: expected declaration or statement at end of input
   12 | return 0;
      | ^~~~~~