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

#include <string>
#include <iostream>
#include <vector>
#include <sstream>
#include <set>
#include <map>
#include <limits>
#include <algorithm>
#include <numeric>

using namespace std;

struct DDMY{ ostringstream o; template<class T>DDMY& operator,(const T &t){o<<t<<",";return *this;} string operator*(){ return o.str().substr(0,o.str().size()-1); } };
#define debug(args...) cout<<"("#args")=("<< *(DDMY(),args)<<") (L"<<__LINE__<<")"<<endl
template<class T> std::ostream &operator<<(std::ostream &o,const std::vector<T> &v)
{ o << "["; for(std::size_t i=0;i<v.size();i++) o << v[i] << (i < v.size()-1 ? ",":""); return o << "]"; }
template<class T,class U> std::ostream &operator<<(std::ostream &o,const std::pair<T,U> &v)
{ return o << v.first << ":" << v.second; }
template<class T,class U> std::ostream &operator<<(std::ostream &o,const std::map<T,U> &v)
{ o << "{"; typename std::map<T,U>::const_iterator i=v.begin(),j=i;++j;for(;i!=v.end();++i,++j) o << *i << (j!=v.end()? ",":""); return o << "}"; }
template<class T> std::ostream &operator<<(std::ostream &o,const std::set<T> &v)
{ o << "{"; typename std::set<T>::const_iterator i=v.begin(),j=i;++j;for(;i!=v.end();++i,++j) o << *i << (j!=v.end()? ",":""); return o << "}"; }


string__main(int a, int b){
  if(a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0){
    return "Possible"
  }else{
    return "Impossible"
  }
}


int main(int argc, char *argv[])
{
  string line;
  getline(cin, line);
  int a = 0;
  int b = 0;
  istringstream iss(line);
  iss >> a;
  iss >> b;
  cout << _main(a, b) << endl;
  return 0;
}


Compiler output:
a.cc:25:1: error: ISO C++ forbids declaration of 'string__main' with no type [-fpermissive]
   25 | string__main(int a, int b){
      | ^~~~~~~~~~~~
a.cc: In function 'int string__main(int, int)':
a.cc:27:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   27 |     return "Possible"
      |            ^~~~~~~~~~
      |            |
      |            const char*
a.cc:27:22: error: expected ';' before '}' token
   27 |     return "Possible"
      |                      ^
      |                      ;
   28 |   }else{
      |   ~                   
a.cc:29:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   29 |     return "Impossible"
      |            ^~~~~~~~~~~~
      |            |
      |            const char*
a.cc:29:24: error: expected ';' before '}' token
   29 |     return "Impossible"
      |                        ^
      |                        ;
   30 |   }
      |   ~                     
a.cc: In function 'int main(int, char**)':
a.cc:43:11: error: '_main' was not declared in this scope; did you mean 'main'?
   43 |   cout << _main(a, b) << endl;
      |           ^~~~~
      |           main
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
int main() {
    int a,b;
    cin >> a >> b ;
    int c[a] = {0};
    for(int i = 0;i < a;i++){
        cin >> c[i];
    }
    sort(c.end(), c.begin());
    cout << c[0]+c[1]+c[2] << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: request for member 'end' in 'c', which is of non-class type 'int [a]'
   12 |     sort(c.end(), c.begin());
      |            ^~~
a.cc:12:21: error: request for member 'begin' in 'c', which is of non-class type 'int [a]'
   12 |     sort(c.end(), c.begin());
      |                     ^~~~~
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){
        cout << "Possible" << endl;
    }
    else cout << "Impossible" << endl;
    return 0;
}

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

#include<iostream>
using namespace std;
int main()
{
int N,K;
cin >> A >> B;
int C=A+B;
if (C%3==0||A%3==0||B%3==0) cout << "possible" << endl;
else cout << "Impossible" << endl;
	
return 0;	
}

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

#include<iostream>
using namespace std;
int main()
{
int N,K;
cin >> N >> ;
int C=A+B;
if (C%3==0||A%3==0||B%3==0) cout << "possible" << endl;
else cout << "Impossible" << endl;
	
return 0;	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected primary-expression before ';' token
    6 | cin >> N >> ;
      |             ^
a.cc:7:7: error: 'A' was not declared in this scope
    7 | int C=A+B;
      |       ^
a.cc:7:9: error: 'B' was not declared in this scope
    7 | int C=A+B;
      |         ^
Language: C++

#inclide<iostream>
#inclide<algorithm>
using namespace std;

int main(){
int n,k,ans;
cin>>n>>k;
int l[50];
for(int i=0;i<n;i++){
cin>>l[i];
}
sort(l,l+n);
for(int j=n-k;j<n;j++){
ans=ans+l[j];
}
cout<<ans<<endl;
return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<iostream>
      |  ^~~~~~~
      |  include
a.cc:2:2: error: invalid preprocessing directive #inclide; did you mean #include?
    2 | #inclide<algorithm>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | cin>>n>>k;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclide<iostream>
a.cc:12:1: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 | sort(l,l+n);
      | ^~~~
      | short
a.cc:16:1: error: 'cout' was not declared in this scope
   16 | cout<<ans<<endl;
      | ^~~~
a.cc:16:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:12: error: 'endl' was not declared in this scope
   16 | cout<<ans<<endl;
      |            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclide<iostream>
Language: Java

import java.util.*;
import java.util.ArrayList;
import java.util.Collections;

public class Main {
    public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		ArrayList<int> ar = new ArrayList<>();
		for(int i = 0; i < n; i++){
		    ar.add(sc.nextInt());
		}
		Collections.sort(ar);
		int ret = 0;
		for (int i = 0; i < k ; i++){
		    ret += (Integer)ar.get(ar.size()-i);
		} 
		
	    System.out.println(ret);
    }
}


Compiler output:
Main.java:10: error: unexpected type
		ArrayList<int> ar = new ArrayList<>();
		          ^
  required: reference
  found:    int
1 error
Language: Java

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

public class A_SharingCookies {

    static class Question {
        int A, B;
        
        public void main(FastScanner in, PrintWriter out) {
            A = in.nextInt();
            B = in.nextInt();
            int sum = A + B;
            if (sum == 0 || sum % 3 != 0) out.println("Impossible");
            else out.println("Possible"); 
        }
        
        public void p(Object o) { System.out.print(o); }
        public void pl(Object o) { System.out.println(o); }
        public void arp(int[] o) { pl( Arrays.toString(o) ); }
        public void arpp(int[][] o) { 
            for (int i = 0; i < o.length; i++) {
                for (int j = 0; j < o[0].length; j++) p( o[i][j] + " " );
                pl("");
            }
        }
    }

    public static void main(String[] args) throws Exception {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastScanner in = new FastScanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Question q = new Question();
        q.main(in, out);
        out.close();
        in.close();
    }
    
    static class FastScanner {
        BufferedReader br;
        StringTokenizer st;
        public FastScanner(InputStream in) { br = new BufferedReader(new InputStreamReader(in)); }
        public int nextInt() { return Integer.parseInt(next()); }
        public long nextLong() { return Long.parseLong(next()); }
        public double nextDouble() { return Double.parseDouble(next()); }
        public String next() {
            while (st == null || !st.hasMoreTokens()) {
                try { st = new StringTokenizer(br.readLine()); } 
                catch (IOException e) { e.printStackTrace(); }
            }
            return st.nextToken();
        }
        public void close() throws IOException { br.close(); }
    }
}


Compiler output:
Main.java:4: error: class A_SharingCookies is public, should be declared in a file named A_SharingCookies.java
public class A_SharingCookies {
       ^
1 error
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:11:17: error: lvalue required as left operand of assignment
   11 |   if(a % 3 == 0 || b % 3 = 0 || (a +b) % 3 || 0){
      |      ~~~~~~~~~~~^~~~~~~~
Language: C++

#include <iostream>
using namespace std;
//↑デフォルト文

int main(){
  int a, b;
  cin >> a >> b;



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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: 'c' was not declared in this scope
   11 |   if(a % 3 == 0 || b % 3 = 0 || c % 3 || 0){
      |                                 ^
Language: C

#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<(n);i++)
using namespace std;
 
int main() {
	int a, b; scanf("%d%d", &a, &b);
	puts(a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0 ? "Possible" : "Impossible");
}

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

#include <iostream>
using namespace std;
int main(){
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:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <stdio.h>

int main(void){
  
  int a, b;
  
  printf("AとBの枚数をそれぞれ1以上100以下で入力してください。\n");  
  
  while(1){
    printf("A = ");
    scanf("%d", &a);
    if(1 =< a && a =< 100){
      break;
    }else{
      printf("もう一度1以上100以下で入力してください。\n");
    }
  }
  
  while(1){
    printf("B = ");
    scanf("%d", &b);
    if(1 =< b && b =< 100){
      break;
    }else{
      printf("もう一度1以上100以下で入力してください。\n");
    }
  }
  
  if(comform(a, b) == 1) printf("Possible\n");
  else printf("Impossible\n");
  
  return 1;
}

int comform(int x, y){
  if(x%3 == 0) return 1;
  else if(y%3 == 0) return 1;
  else if((x+y)%3 == 0) return 1;
  else return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected primary-expression before '<' token
   12 |     if(1 =< a && a =< 100){
      |           ^
a.cc:12:21: error: expected primary-expression before '<' token
   12 |     if(1 =< a && a =< 100){
      |                     ^
a.cc:22:11: error: expected primary-expression before '<' token
   22 |     if(1 =< b && b =< 100){
      |           ^
a.cc:22:21: error: expected primary-expression before '<' token
   22 |     if(1 =< b && b =< 100){
      |                     ^
a.cc:29:6: error: 'comform' was not declared in this scope
   29 |   if(comform(a, b) == 1) printf("Possible\n");
      |      ^~~~~~~
a.cc: At global scope:
a.cc:35:20: error: 'y' has not been declared
   35 | int comform(int x, y){
      |                    ^
a.cc: In function 'int comform(int, int)':
a.cc:37:11: error: 'y' was not declared in this scope
   37 |   else if(y%3 == 0) return 1;
      |           ^
a.cc:40:1: warning: control reaches end of non-void function [-Wreturn-type]
   40 | }
      | ^
Language: Java

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

class A{
  public static void main(String[] args){
    FastScanner fs = new FastScanner();
    long num1 = fs.nextLong();
    long num2 = fs.nextLong();
    if( (num+1+num2)%3 == 0||num1%3 == 0||num2%3 == 0) System.out.println("Possible");
    else{ System.out.println("Impossible");}

  }
}
class FastScanner {
		BufferedReader br;
		StringTokenizer st;

		public FastScanner(String s) {
			try {
				br = new BufferedReader(new FileReader(s));
			} catch (FileNotFoundException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}

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

		String nextToken() {
			while (st == null || !st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}

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

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

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

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


Compiler output:
Main.java:13: error: cannot find symbol
    if( (num+1+num2)%3 == 0||num1%3 == 0||num2%3 == 0) System.out.println("Possible");
         ^
  symbol:   variable num
  location: class A
1 error
Language: Java

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

class Main{
  public static void main(String[] args){
    FastScanner fs = new FastScanner();
    long num1 = fs.nextLong();
    long num2 = fs.nextLong();
    if((num1+num2)  3 == 0||num1%3 == 0||num2%3 == 0) System.out.println("Possible");
    else{ System.out.println("Impossible");}

  }
}
class FastScanner {
		BufferedReader br;
		StringTokenizer st;

		public FastScanner(String s) {
			try {
				br = new BufferedReader(new FileReader(s));
			} catch (FileNotFoundException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}

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

		String nextToken() {
			while (st == null || !st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}

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

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

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

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


Compiler output:
Main.java:13: error: ')' expected
    if((num1+num2)  3 == 0||num1%3 == 0||num2%3 == 0) System.out.println("Possible");
                  ^
Main.java:13: error: not a statement
    if((num1+num2)  3 == 0||num1%3 == 0||num2%3 == 0) System.out.println("Possible");
                                       ^
Main.java:13: error: ';' expected
    if((num1+num2)  3 == 0||num1%3 == 0||num2%3 == 0) System.out.println("Possible");
                                                    ^
Main.java:14: error: 'else' without 'if'
    else{ System.out.println("Impossible");}
    ^
4 errors
Language: C++

#include<iostream>
#include<cstdio>
#include<string>
#include<algorithm>
#include<queue>
#include<cstring>
#include<utility>
#include<cstdlib>
#include<cmath>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<bitset>
#include<deque>
#include<cctype>
using namespace std;
int main() 
{
	int A,B;
	cin>>A>>B;
	int sum=A+B;
	if(sum==0)
	{
		cout<<"Impossible";
	}
	else if(A==0)
	{
		cout<<"Impossible";
	}
	else if(B==0)
	{
		cout<<"Impossible";
	}
	else if(sum%3==0)
	{
		cout<<"Possible";
	}
	else if(A%3==0)
	{
		cout<<"Possible";
	}
	else if(B%3==0)
	{
		cout<<"Possible";
	}
	else
	{
		cout<<"Impossible"
	}
    return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:49:35: error: expected ';' before '}' token
   49 |                 cout<<"Impossible"
      |                                   ^
      |                                   ;
   50 |         }
      |         ~
Language: C++

#include<bits/stdc++.h>

using namespace std;
using ll = long long;
using ld = long double;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define reps(i,s,n) for(int i=(int)(s);i<(int)(n);i++)
#define allsort(v) sort(v.begin(),v.end())
const ll mod = 1e9 + 7;
const int INF = 1e9;

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

using namespace std;
using ll = long long;
using ld = long double;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define reps(i,s,n) for(int i=(int)(s);i<(int)(n);i++)
#define allsort(v) sort(v.begin(),v.end())
const ll mod = 1e9 + 7;
const int INF = 1e9;

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

Compiler output:
a.cc:19:2: error: stray '#' in program
   19 | }#include<bits/stdc++.h>
      |  ^
a.cc:19:3: error: 'include' does not name a type
   19 | }#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc:27:10: error: redefinition of 'const ll mod'
   27 | const ll mod = 1e9 + 7;
      |          ^~~
a.cc:9:10: note: 'const ll mod' previously defined here
    9 | const ll mod = 1e9 + 7;
      |          ^~~
a.cc:28:11: error: redefinition of 'const int INF'
   28 | const int INF = 1e9;
      |           ^~~
a.cc:10:11: note: 'const int INF' previously defined here
   10 | const int INF = 1e9;
      |           ^~~
a.cc:30:5: error: redefinition of 'int main()'
   30 | int main() {
      |     ^~~~
a.cc:12:5: note: 'int main()' previously defined here
   12 | int main() {
      |     ^~~~
Language: C++

#include <cstdio>
using namespace std;

int main()
{
    int a, b;
    while(~scanf("%d%d", &a, &b)) {
        printf("%s\n", (a+b)%3?"Possible":"Impossible")
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:56: error: expected ';' before '}' token
    8 |         printf("%s\n", (a+b)%3?"Possible":"Impossible")
      |                                                        ^
      |                                                        ;
    9 |     }
      |     ~
Language: C++

a, b = gets.chomp.split(" ").map(&:to_i)

if a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0 then
  puts "Possible"
else
  puts "Impossible"
end


Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = gets.chomp.split(" ").map(&:to_i)
      | ^
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)%c==0))
{
cout<<"Possible"<<endl;
}
else
{
cout<<"Impossible"<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: 'c' was not declared in this scope
    7 | if(a%3==0||b%3==0||(a+b)%c==0))
      |                          ^
a.cc:7:31: error: expected primary-expression before ')' token
    7 | if(a%3==0||b%3==0||(a+b)%c==0))
      |                               ^
Language: C++

#include <iostream>
#include <vector>
#include <queue>
#define NOCOLOR 0
#define BLACK 1 //Fennec
#define WHITE 2 //Snuke
#define N 100000
using namespace std;

int n;
int M[N][N];
int color[N];

void bfs(int s1, int s2){
    queue<int> q1,q2;
    q1.push(s1);
    q2.push(s2);
    for(int i = 0; i < n; i++) color[i]=NOCOLOR;
    color[0]=BLACK;
    color[n-1]=WHITE;
    int u1,u2;
    while(!q1.empty() && !q2.empty()){
        u1=q1.front(); q1.pop();
        for(int v = 0; v < n; v++){
            if(M[u1][v]==0) continue;
            if(color[v]!=NOCOLOR) continue;
            color[v] = BLACK;
            q1.push(v);
        }
        u2=q2.front(); q2.pop();
        for(int v = 0; v < n; v++){
            if(M[u2][v]==0) continue;
            if(color[v]!=NOCOLOR) continue;
            color[v] = WHITE;
            q2.push(v);
        }
    }
    if(!q1.empty()) cout<<"Fennec"<<endl;
    else cout<<"Snuke"<<endl;
}
int main(void){
    cin.sync_with_stdio(false);
    int a,b;
    int n;
    cin>>n;
    for(int i = 0; i < n; i++){
        for(int j = 0; j < n; j++){
            M[i][j] = 0;
        }
    }
    for(int i = 0; i < n-1; i++){
        int a,b;
        cin>>a>>b;
        a--; b--;
        M[a][b]=1;
        M[b][a]=1;
    }
    bfs(0,n-1);
    return 0;
}

Compiler output:
/tmp/ccNX3KUR.o: in function `bfs(int, int)':
a.cc:(.text+0x7b): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccNX3KUR.o
a.cc:(.text+0x97): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccNX3KUR.o
a.cc:(.text+0xb5): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccNX3KUR.o
a.cc:(.text+0x132): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccNX3KUR.o
a.cc:(.text+0x150): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccNX3KUR.o
a.cc:(.text+0x20d): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccNX3KUR.o
a.cc:(.text+0x22b): relocation truncated to fit: R_X86_64_PC32 against symbol `color' defined in .bss section in /tmp/ccNX3KUR.o
collect2: error: ld returned 1 exit status
Language: C++


#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main(void){
    
    int n,k;
    cin >> n >> k;
    vector<int> l(n); 
    for(int i = 0; i < n; i++){
        cin >> l[i];
    }

    sort(l.begin(),l.end());

    int ans = 0;
    for(int i = 0; i < k; i++){
        ans += 1[n-1-i];
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: invalid types 'int[int]' for array subscript
   21 |         ans += 1[n-1-i];
      |                 ^
Language: C++


#include <iostream>
#include <vector>
#include <algorithm>    //ソート用

using namespace std;

int main(void){
    
    int n,k;
    cin >> n >> k;
    vector<int> l(n); //vectorの大きさをnに設定
    for(int i = 0; i < n; i++){
        cin >> l[i];
    }
//    for(int &val : l){
//        cin >> val;
//    }
    
    sort(l.begin(),l.end());    //C++ではソート用の関数が用意されていることが多いため、ソート関数を実装する必要はない
    int ans = 0;
    for(int i = 0; i < k; i++){
        ans += 1[n-1-i];
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:17: error: invalid types 'int[int]' for array subscript
   23 |         ans += 1[n-1-i];
      |                 ^
Language: C++


#include <iostream>
#include <vector>
#include <algorithm>    //ソート用

using namespace std;

int main(void){
    
    int n,k;
    cin >> n >> k;
    vector<int> l(n); //vectorの大きさをnに設定
    for(int i = 0; i < n; i++){
        cin >> l[i];
   }

    
    sort(l.begin(),l.end());    //C++ではソート用の関数が用意されていることが多いため、ソート関数を実装する必要はない
    int ans = 0;
    for(int i = 0; i < k; i++){
        ans += 1[n-1-i];
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: invalid types 'int[int]' for array subscript
   21 |         ans += 1[n-1-i];
      |                 ^
Language: C++

{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE BangPatterns #-}

import Control.Applicative
import Control.Monad
import Control.Arrow
import Data.List
import Data.Maybe
import Data.Char
import qualified Data.ByteString.Char8 as B
import Text.Printf

readInt = ( readLn :: IO Int )
readInts = map ( read :: String -> Int ) . words <$> getLine

getList = map ( fst . fromJust . B.readInt ) . B.words <$> B.getLine

which a b f = if f then a else b
mp [ a, b ] = ( a, b )

main = do
	[ a, b ] <- readInts
	putStrLn $ which "Possible" "Impossible" $ any ( ( == 0 ) . ( `mod` 3 ) ) [ a, b, a + b ]


Compiler output:
a.cc:1:3: error: stray '#' in program
    1 | {-# LANGUAGE ScopedTypeVariables #-}
      |   ^
a.cc:1:34: error: stray '#' in program
    1 | {-# LANGUAGE ScopedTypeVariables #-}
      |                                  ^
a.cc:2:3: error: stray '#' in program
    2 | {-# LANGUAGE BangPatterns #-}
      |   ^
a.cc:2:27: error: stray '#' in program
    2 | {-# LANGUAGE BangPatterns #-}
      |                           ^
a.cc:23:71: error: stray '`' in program
   23 |         putStrLn $ which "Possible" "Impossible" $ any ( ( == 0 ) . ( `mod` 3 ) ) [ a, b, a + b ]
      |                                                                       ^
a.cc:23:75: error: stray '`' in program
   23 |         putStrLn $ which "Possible" "Impossible" $ any ( ( == 0 ) . ( `mod` 3 ) ) [ a, b, a + b ]
      |                                                                           ^
a.cc:1:1: error: expected unqualified-id before '{' token
    1 | {-# LANGUAGE ScopedTypeVariables #-}
      | ^
a.cc:2:1: error: expected unqualified-id before '{' token
    2 | {-# LANGUAGE BangPatterns #-}
      | ^
a.cc:4:1: error: 'import' does not name a type
    4 | import Control.Applicative
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
Language: Java

import java.util.*;
import java.util.Arrays;
 
class Main{
	public static void main(String args[]){
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		int a[] = new int[n];
                int count = 0;
		for (count; count < n; count++){
			a[count]=stdIn.nextInt();
		}
		Arrays.sort(a); 
		int sum1 = 0,sum2 = 0;
		int count2 = n-1;
		while(count2>=0){
			if (sum1<sum2) {
				sum1=sum1+a[count2];
			}else{
				sum2=sum2+a[count2];
			}
			count2=count2-1;
		}
		if ((sum1-sum2)<0) {
			System.out.println(sum2-sum1);
		}else{
			System.out.println(sum1-sum2);
		}
	}
}

Compiler output:
Main.java:11: error: not a statement
		for (count; count < n; count++){
		     ^
1 error
Language: C++

#include <cstdio>
#include <algorithm>
#include <vector>
#include <iostream>
#include <numeric>
#include <cmath>

using namespace std;

int main(){
    int n;
    vector<int> v;
    scanf("%d",&n);
    for (int i = 0; i < n; i++){
        int x;
        scanf("%d",&x);
        v.push_back(x);
    }
    long long r = 10000000;
    for (int i = 1; i < n; i++){
        int sunuke = 0;
        int arai = 0;
        for (int j = 0; j < i; j++){
            sunuke += v[j];
        }
        for (int k = i; k < n; k++){
            arai += v[k];
        }
        int sa = abs(sunuke-arai)
        if (r > sa){
            r = sa;
        }
    }
    printf("%d",r[0]);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:9: error: expected ',' or ';' before 'if'
   30 |         if (r > sa){
      |         ^~
a.cc:34:18: error: invalid types 'long long int[int]' for array subscript
   34 |     printf("%d",r[0]);
      |                  ^
Language: C++

#include<iostream>
int A,B;
int main{
std::cin>>A>>B;
if(A/3==0||B/3==0||A+B/3==0){
std::cout<<"possible"<<"\n";
}else{
std:cout<<"impossible"<<"\n";
}
system("pause")
return 0;
}


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:15: error: expected '}' before ';' token
    4 | std::cin>>A>>B;
      |               ^
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:4:12: error: invalid user-defined conversion from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' [-fpermissive]
    4 | std::cin>>A>>B;
      | ~~~~~~~~~~~^~~
In file included 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/basic_ios.h:121:16: note: candidate is: 'std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  121 |       explicit operator bool() const
      |                ^~~~~~~~
/usr/include/c++/14/bits/basic_ios.h:121:16: note:   return type 'bool' of explicit conversion function cannot be converted to 'int' with a qualification conversion
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if(A/3==0||B/3==0||A+B/3==0){
      | ^~
a.cc:7:2: error: expected unqualified-id before 'else'
    7 | }else{
      |  ^~~~
a.cc:10:7: error: expected constructor, destructor, or type conversion before '(' token
   10 | system("pause")
      |       ^
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before 'int'
   10 |         cin>>a>>b
      |                  ^
      |                  ;
   11 |         int sum=a+b;
      |         ~~~       
a.cc:12:12: error: 'sum' was not declared in this scope
   12 |         if(sum%3==0){cout<<"Possible"<<endl;}
      |            ^~~
Language: Java

class Main{

	public static void main(String arg[]) throws IOException{
		String message;
		int n=0;
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		message = br.readLine();
		String num[] = message.split(" ");
		message = br.readLine();
		String nagasa[] = message.split(" ");
		n = Integer.parseInt(num[0]);
		int numnum[] = new int[n];
		int max = 0;
		int harf = 0;
		for(int i=0;i<n;i++){
			numnum[i] = Integer.parseInt(nagasa[i]);
			max += numnum[i];
		}
		harf = max/2;
		int akun = 0;
		int bkun = 0;
		int i = 0;
		int maxlong=0;
		while(akun<harf){
			akun += numnum[i];
			i++;
			if(n-i==1)break;
		}
		while(i<n){
			bkun += numnum[i];
			i++;
		}
		maxlong = Math.abs(akun - bkun);
		System.out.println(""+maxlong);

		
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
	public static void main(String arg[]) throws IOException{
	                                             ^
  symbol:   class IOException
  location: class Main
Main.java:6: error: cannot find symbol
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		                      ^
  symbol:   class BufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		                                         ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: C++

#include<cstdio>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: lvalue required as left operand of assignment
    6 |         if((a + b)%3 = 0){
      |            ~~~~~~~^~
Language: C++

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

int main(){
    int n;
    cin >> n;
    vector<int> a(n);
    int arai = 0;
    for(int i = 0;i < n;i++){
        cin >> a[i];
        arai += a[i];
    }
    int sunuke = 0;
    long long ans = 1e10;
    for(int i = 0;i < n - 1;i++){
        sunuke += a[i];
        int tmp = arai - sunuke;
        ans = min(ans, abs(sunuke - tmp));
    }
    cout << ans << endl;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: no matching function for call to 'min(long long int&, int)'
   18 |         ans = min(ans, abs(sunuke - tmp));
      |               ~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:18:18: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   18 |         ans = min(ans, abs(sunuke - tmp));
      |               ~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:18:18: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   18 |         ans = min(ans, abs(sunuke - tmp));
      |               ~~~^~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<cstdio>
using namespace std;
int main(){
    int a,b;
    cin>>a>>b;
    if (a%3!=0 && b%3!=0 && (a+b)%3!=0) puts("Impossible");
else puts("Possible");
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin>>a>>b;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class M1 {

	public static void main(String[] args) throws IOException
	{
			BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
			String str=br.readLine();
			String[] strr=str.split(" ");


			int[] a=new int[3];
			for(int i=0;i<2;i++)
			{		a[i]=Integer.parseInt(strr[i]);
			}

	a[2]=a[0]+a[1];
	String msg="";
	if(a[0]%3==0||a[1]%3==0||a[2]%3==0)
	{msg="Possible";
	}
	else
	{
		msg="Impossible";
	}

	System.out.println(msg);


	}


}


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


/**
 * Created by DELL on 2017/7/15.
 */
public class main {




    public static void main(String[] args) {
        Scanner  in=new Scanner(System.in);
        int A=in.nextInt();
        int B=in.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:5: error: class main is public, should be declared in a file named main.java
public class main {
       ^
Main.java:11: error: cannot find symbol
        Scanner  in=new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class main
Main.java:11: error: cannot find symbol
        Scanner  in=new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class main
3 errors
Language: C++

#include <iostream>
#include <algorithm>
#include <cstdlib>
#define ll long long
using namespace std;

int main(){

  ll n, snuke = 0, kuma = 0, min_c = 10000000;
  ll a[200010];

  cin >> n;

  for(int i = 0; i < n; i++){
    cin >> a[i];
    if(i != n-1) snuke += a[i];
  }
  kuma = a[n-1];
  i = n-2;
  while(1){
    min_c = min(min_c, llabs(snuke - kuma));
    snuke = snuke - a[i];
    kuma = kuma + a[i];
    i--;
    if(i == -1) break;
  }
  cout << min_c << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: 'i' was not declared in this scope
   19 |   i = n-2;
      |   ^
Language: Java

import java.util.*;

/**
 * Created by DELL on 2017/7/15.
 */
public class main {




    public static void main(String[] args) {
        Scanner  in=new Scanner(System.in);
        int A=in.nextInt();
        int B=in.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:6: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
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:10:25: error: 'Possible' was not declared in this scope
   10 |                 cout << Possible << endl;
      |                         ^~~~~~~~
a.cc:13:25: error: 'Impossible' was not declared in this scope
   13 |                 cout << Impossible << endl;
      |                         ^~~~~~~~~~
Language: C++

#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
 
int a, b;
int main()
{
	scanf("%d %d", &a, &b);
	if(a + b >= 3  && a >= 3 || a + b > = 3 && b >= 3 || a == 0 || b == 0) printf("Possible\n");
	else printf("Impossible\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:45: error: expected primary-expression before '=' token
   11 |         if(a + b >= 3  && a >= 3 || a + b > = 3 && b >= 3 || a == 0 || b == 0) printf("Possible\n");
      |                                             ^
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'prinf' was not declared in this scope; did you mean 'printf'?
    8 |                 prinf("Possible");
      |                 ^~~~~
      |                 printf
Language: C

#include <iostream>
#include <algorithm>
#include <string>
using namespace std;

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

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

    return 0;
}

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

#include <stdio.h>

int main()
{
	int a, b;

	scanf_s("%d%d", &a, &b, 3);

	if (((1 <= a) && (a <= 100)) || ((1 <= b) && (b <= 100))) {
		if (((a + b) % 3) == 0) {
			printf("Possible");
		}
		else {
			printf("Impossible");
		}
	}

	return 0;
}

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

#include<stdio.h>
using namespace std;
int main()
{
    int a,b;
    while(~scanf("%d%d",&a,&b))
	{
		if((a+b)%3==0) printf("Possible\n");
		else printf("Impossible\n");
	}
	return 0;
}


Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
Language: C

#include <stdio.h>

int main()
{
	int a, b;

	scanf_s("%d%d", &a, &b);

	if (((1 <= a) && (a <= 100)) || ((1 <= b) && (b <= 100))) {
		if (((a + b) % 3) == 0) {
			printf("Possible");
		}
		else {
			printf("Impossible");
		}
	}

	return 0;
}

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

#include <bits/cstd++.h>

using namespace std;

int main() {
    int A, B;
    cin >> A >> B;
    string ans = (((A+B) % 3 == 0 or A % 3 == 0 or B % 3 == 0) ? "Possible" : "Impossible");
    cout << ans << endl;
}

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

#include <iostream>

using namespace std;

void main()
{
	int A, B;
	cin >> A >> B;
	if ( (A>=1) && (B>=1) && (A<=100) && (B<=100))
	{
		if( ((A%3)==0) || ((B%3)==0) || (((A+B)%3)==0) )
			cout <<"Possible"<<endl;
		else cout <<"Impossible"<<endl;
	}
	system("pause");
}

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

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

int main()
{
    int n,m;
    scanf("%d%d",&n,&m)
        if((n+m)%3==0)
            printf("Possible\n");
        else
            printf("Impossible\n");
    //cout << "Hello world!" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before 'if'
    8 |     scanf("%d%d",&n,&m)
      |                        ^
      |                        ;
    9 |         if((n+m)%3==0)
      |         ~~              
a.cc:11:9: error: 'else' without a previous 'if'
   11 |         else
      |         ^~~~
Language: C++

#include <bits/cstd++.h>

using namespace std;

int main() {
    int A, B;
    cin >> A >> B;
    string ans = ((A+B) % 3 == 0 ? "Possible" : "Impossible");
    cout << ans << endl;
}

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

#include<stdio.h>
using namespace std;
int main()
{
    int a,b;
    while(~scanf("%d%d",&a,&b))
	{
		if((a+b)%3==0) printf("Possible\n");
		else printf("Impossible\n");
	}
	return 0;
}

Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
Language: C++

import java.util.Scanner;

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

		int A = sc.nextInt();
		int B = sc.nextInt();

		int num = 3;

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


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

#include<iostream>
#include<algorithm>
using namespace std;
 
int table[50];
 
int main(){
 
  int n,k,count;
  cin >> n >> k;
 
  for(int i=0; i<n; i++){
    cin >> table[i];
  }
 
  sort(table,table + n,greator<int>());
 
  for(int i=0; i<k;i++){
    count += table[i];
  }
  
  cout << count << endl;
 
  return 0;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:24: error: 'greator' was not declared in this scope
   16 |   sort(table,table + n,greator<int>());
      |                        ^~~~~~~
a.cc:16:32: error: expected primary-expression before 'int'
   16 |   sort(table,table + n,greator<int>());
      |                                ^~~
Language: C++

#include <stdio.h>

void main()
{
	int a, b;

	scanf("%d%d", &a, &b);

	if (((a + b) % 3) == 0) {
		printf("Possible");
	} else {
		printf("Impossible");
	}
}

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

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;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   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 | using namespace std;
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "Possible" << endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:27: error: 'endl' was not declared in this scope
   10 |     cout << "Possible" << endl;
      |                           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << "Impossible" << endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:29: error: 'endl' was not declared in this scope
   13 |     cout << "Impossible" << endl;
      |                             ^~~~
a.cc:13:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Created by DELL on 2017/7/15.
 */
public class Main {




    public static void main(String[] args) {
        Scanner  in=new Scanner(System.in);
        int A=in.nextInt();
        int B=in.nextInt();
        if(A%3==0||B%3==0||(A+B)%3==0){
            System.out.println("Possible");
        }
        else System.out.println("Impossible");


    }
}

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

#include<iostream>
#include<algorithm>
#include<cassert>
#include<vector>
#include<fstream>
#include<string>
#include<windows.h>
#include<olectl.h>
using namespace std;
#define f(n) for(int i=0;i<n;++i)
#define ll long long

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;
	}
	return 0;
}

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