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

//#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
#define black_tree tree<ll,null_type,less_equal<ll>,rb_tree_tag,tree_order_statistics_node_update>
#define pair_black_tree tree<pair<ll,ll>,null_type,less<pair<ll,ll> >,rb_tree_tag,tree_order_statistics_node_update>
#define gp __gnu_pbds
#define INF 1000000000
#define MOD 1000000007
#define MAX 1000000
#define endl '\n'
#define ll long long
#define ld long double
#define lli long long int
#define ull unsigned long long
#define ulli unsigned long long int
#define pb push_back
#define pf push_front
#define ook order_of_key
#define fbo find_by_order
#define np next_permutation
#define mp make_pair
#define eb emplace_back
#define mae max_element
#define mie min_element
#define lb lower_bound 
#define ub upper_bound
#define bs binary_search
#define ff first
#define ss second
using namespace std;
using namespace gp;
ll n;
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    cin>>n;
    cout<<360/__gcd(360,n);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:20: error: no matching function for call to '__gcd(int, long long int&)'
   40 |     cout<<360/__gcd(360,n);
      |               ~~~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_algo.h:1137:5: note: candidate: 'template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)'
 1137 |     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algo.h:1137:5: note:   template argument deduction/substitution failed:
a.cc:40:20: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('int' and 'long long int')
   40 |     cout<<360/__gcd(360,n);
      |               ~~~~~^~~~~~~
Language: Java

import java.util.*;
class Main{
    
	public static void main (String[] args) throws java.lang.Exception{
       Scanner scan =  new Scanner(System.in);
       x = scan.nextInt();
       System.out.println(360/x);}
}
}

Compiler output:
Main.java:9: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.io.*;
class Main{
    
public static void main (String[] args) throws java.lang.Exception{
       Scanner scan =  new Scanner(System.in);
       int x = scan.nextInt();
       System.out.println(360/x);
}
}


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

import java.util.*;
class Main{
    
	public static void main (String[] args) throws java.lang.Exception{
       Scanner scan =  new Scanner(System.in);
       x = scan.nextInt();
       System.out.println(360/x);}
}

Compiler output:
Main.java:6: error: cannot find symbol
       x = scan.nextInt();
       ^
  symbol:   variable x
  location: class Main
Main.java:7: error: cannot find symbol
       System.out.println(360/x);}
                              ^
  symbol:   variable x
  location: class Main
2 errors
Language: Java

import java.io.*;
class Main{
    
	public static void main (String[] args) throws java.lang.Exception{
       Scanner scan =  new Scanner(System.in);
       x = scan.nextInt();
       System.out.println(360/x);}
}


Compiler output:
Main.java:5: error: cannot find symbol
       Scanner scan =  new Scanner(System.in);
       ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
       Scanner scan =  new Scanner(System.in);
                           ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
       x = scan.nextInt();
       ^
  symbol:   variable x
  location: class Main
Main.java:7: error: cannot find symbol
       System.out.println(360/x);}
                              ^
  symbol:   variable x
  location: class Main
4 errors
Language: Java

import java.io.*;
class Main{
	public static void main (String[] args) throws java.lang.Exception{
       Scanner scan =  new Scanner(System.in);
       x = scan.nextInt();
       System.out.println(360/x);}
}



}

Compiler output:
Main.java:11: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.io.*;
class Main{
public static void main (String[] args) throws java.lang.Exception
	{
	    Scanner scan = new Scanner();
            int x = scan.nextInt();
            return 360/x;
	}

}

Compiler output:
Main.java:5: error: cannot find symbol
	    Scanner scan = new Scanner();
	    ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
	    Scanner scan = new Scanner();
	                       ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: incompatible types: unexpected return value
            return 360/x;
                      ^
3 errors
Language: Java

import java.io.*;
class Main{
    
    public static void main(String args[]){
        Scanner scan = new Scanner();
    
        int x = scan.nextInt();
        return 360/x;
    }
    
    
}

Compiler output:
Main.java:5: error: cannot find symbol
        Scanner scan = new Scanner();
        ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner scan = new Scanner();
                           ^
  symbol:   class Scanner
  location: class Main
Main.java:8: error: incompatible types: unexpected return value
        return 360/x;
                  ^
3 errors
Language: Java

class Main{
    
    public static void main(String args[]){
        Scanner scan = new Scanner();
    
        int x = scan.nextInt();
        return 360/x;
    }
    
    
}

Compiler output:
Main.java:4: error: cannot find symbol
        Scanner scan = new Scanner();
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner scan = new Scanner();
                           ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: incompatible types: unexpected return value
        return 360/x;
                  ^
3 errors
Language: C

#include <stdio.h>
#include <stdlib.h>
int countNum(int x);
int main()
{
    int result,x;
    scanf("%d",&x);
    if(x<=179 && x>=0){
        result = countNum(x);
        printf("%d",result);
    }else{
        return false;
    }

    return 0;
}

int countNum(int x){
 int k,m,n;
 m = 360;
 n = m%x;
 k = m/x;
 while(n != 0){
    m = n + m;
    n = n + m%x;
    k = k + m/x;
 }
 return k;
}


Compiler output:
main.c: In function 'main':
main.c:12:16: error: 'false' undeclared (first use in this function)
   12 |         return false;
      |                ^~~~~
main.c:3:1: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include <stdlib.h>
  +++ |+#include <stdbool.h>
    3 | int countNum(int x);
main.c:12:16: note: each undeclared identifier is reported only once for each function it appears in
   12 |         return false;
      |                ^~~~~
Language: C++

int countNum(int x);
int main()
{
    int result,x;
    scanf("%d",&x);
    if(x<=179 && x>=0){
        result = countNum(x);
        printf("%d",result);
    }else{
        return false;
    }

    return 0;
}

int countNum(int x){
 int k,m,n;
 m = 360;
 n = m%x;
 k = m/x;
 while(n != 0){
    m = n + m;
    n = n + m%x;
    k = k + m/x;
 }
 return k;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf("%d",&x);
      |     ^~~~~
a.cc:8:9: error: 'printf' was not declared in this scope
    8 |         printf("%d",result);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int countNum(int x);
Language: C

int countNum(int x);
int main()
{
    int result,x;
    scanf("%d",&x);
    if(x<=179 && x>=0){
        result = countNum(x);
        printf("%d",result);
    }else{
        return false;
    }

    return 0;
}

int countNum(int x){
 int k,m,n;
 m = 360;
 n = m%x;
 k = m/x;
 while(n != 0){
    m = n + m;
    n = n + m%x;
    k = k + m/x;
 }
 return k;
}


Compiler output:
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |     scanf("%d",&x);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int countNum(int x);
main.c:5:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |     scanf("%d",&x);
      |     ^~~~~
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |         printf("%d",result);
      |         ^~~~~~
main.c:8:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:16: error: 'false' undeclared (first use in this function)
   10 |         return false;
      |                ^~~~~
main.c:1:1: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
  +++ |+#include <stdbool.h>
    1 | int countNum(int x);
main.c:10:16: note: each undeclared identifier is reported only once for each function it appears in
   10 |         return false;
      |                ^~~~~
Language: Java

	public static int classes(int X, int K ,int D){
	    int start = X;
	    int least = K;
	    int end  = D;
	    int ans = 0；
	    for(i = 0;i<start-end;i++)
	    {
	        if(process(start,least,end,start,i)==true)
	           {
	                ans= i;
	                break;   
	           }
	    }
	    return ans;
	}
	
		

	
	
	public static process(int start,int least,int end,int cur,int leap){
	    if(least == 0 && cur == end)
	        return true;
	    else if(least<0)
	        return false;
	    else
	        return process(start,least-1,end,cur+1,leap)||process(start,least-1,end,cur-1,leap);
	   
	}

Compiler output:
Main.java:5: error: illegal character: '\uff1b'
	    int ans = 0?
	               ^
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
	public static int classes(int X, int K ,int D){
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:21: error: class, interface, enum, or record expected
	public static process(int start,int least,int end,int cur,int leap){
	              ^
Main.java:24: error: class, interface, enum, or record expected
	    else if(least<0)
	    ^
Main.java:26: error: class, interface, enum, or record expected
	    else
	    ^
Main.java:29: error: class, interface, enum, or record expected
	}
	^
6 errors
Language: C

#include <stdio.h>
#include <stdlib.h>
int main()
{
    int countNum(int x){
    int m,n,k;
    m = 360;
    n = m % x;
    k = m / x;
    while(n){
        m = n + m;
        n = n + m%x;
        k = k + m/x;
    }
    return k;
 }

    printf(countNum(9));
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   18 |     printf(countNum(9));
      |            ^~~~~~~~~~~
      |            |
      |            int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: Java

class Main{
public  static void main(String agrs[]){
Scanner s = new Scanner(System.in);
int x = s.nextInt();
System.out.println(360/x);

}
}

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

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

public class program {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    System.out.println(360 / x);
  }
}

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

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

public class diulomo {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    System.out.println(360 / x);
  }
}

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

#include <bits/stdc++.h>
using namespace std;
 #define MAX 1000000000005
 #define ll long long int
 int main()
 {    ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
        long long int m,sum=0,k=0,i,d=0,j,sum1=0,sum2=0,sum3=0,l,kk,sum4=0,sum5=0,sum6=0,c=0,x,y,q;
         ll n;
           cin>>n;
          cout<<360/n;
 







Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected '}' at end of input
   10 |           cout<<360/n;
      |                       ^
a.cc:6:2: note: to match this '{'
    6 |  {    ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
      |  ^
Language: C++

# include <iostream>
# include <math.h>

using namespace std;


int main()
{
    int input;

    cin >> input;

    cout << ceil(360 / (double)input);


    return 0;

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

#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i,n) for(long long i = 0; i < (n); ++i)
#define ll long long
#define P pair<ll,ll>
#define all(v) (v).begin(),(v).end()

const ll mod = 1e9+7;
const ll INF = 1e18;
const double pi = acos(-1.0);

int main(void)
{
    ll x;
    cin >> x;
    cout << __gcd(360,x) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: no matching function for call to '__gcd(int, long long int&)'
   17 |     cout << __gcd(360,x) << endl;
      |             ~~~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:1137:5: note: candidate: 'template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)'
 1137 |     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algo.h:1137:5: note:   template argument deduction/substitution failed:
a.cc:17:18: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('int' and 'long long int')
   17 |     cout << __gcd(360,x) << endl;
      |             ~~~~~^~~~~~~
Language: C++

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

int main()
{
    int X;
    cin >> X;
    int k = 1;

    while (true)
    {
        int tar = k * x;
        if (tar % 360 == 0)
        {
            cout << k << endl;
            return 0;
        }
        ++k;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: 'x' was not declared in this scope
   14 |         int tar = k * x;
      |                       ^
Language: Java

class Main{
public static void main(String[]args){
int a=(new java.util.Scanner()).nextInt();
  for(int i=1;i<=360;i++){
  if((a*i)%360==0){System.out.println(i);break;}
  }
}
}


Compiler output:
Main.java:3: error: no suitable constructor found for Scanner(no arguments)
int a=(new java.util.Scanner()).nextInt();
       ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

class Main{
public static void main(String[]args){
int a=new java.util.Scanner().nextInt();
  for(int i=1;i<=360;i++){
  if((a*i)%360==0){System.out.println(i);break;}
  }
}
}

Compiler output:
Main.java:3: error: no suitable constructor found for Scanner(no arguments)
int a=new java.util.Scanner().nextInt();
      ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: C++

#include<bits/stdc++.h>
int main() {
  int n;
  cin >> n;
  int ans = 1;
  while((ans * n) % 360 != 0) {
    ans++;
  }
  cout << ans << endl;
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(void){
    // Your code here!
    int x; cin >> x;
    
    int k = 1;
    while(k * x % 360 != 0) k+;
    cout << k << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected primary-expression before ';' token
    8 |     while(k * x % 360 != 0) k+;
      |                               ^
Language: C++

#include <iostream>
#include <math.h>

int main()
{
  int x; cin >> x;
  cout << (int) ceil(360/x) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   int x; cin >> x;
      |          ^~~
      |          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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << (int) ceil(360/x) << 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:7:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << (int) ceil(360/x) << 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)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int gcd(int n, int m)
{
  return m ? n : gcd(m, n % m);
int main()
{
  int x;
  cin >> x;
  cout << 360 / gcd(x, 360);
  return 0;
}

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

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

int x;

inline int qr()
{
	int w=1,x=0;char a=0;
	while(a<'0'||a>'9'){if(a=='-')w=-1;a=getchar();}
	while(a<='9'&&a>='0'){x=(x<<1)+(x<<3)+(a^48);a=getchar();}
	return x*w;
}

int main()
{
	x=qr();
	int k=360;
	while(k%x!=0)
		k+=360;
	cout<<k/x<<endl;
	return 0;
} 

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 <stdio.h>

int main(void){

    int x = 0;
    int k = 0;
    scanf("%d", &x);

    if(360%x == 0){
        k = 360 / x;
    } else {
        for(int i = 2; (360 * i % x) == 0; i++){
            if(i == X){
                k = x * x;
            } else {
                k = 360 * i / x;
            }
        }
    }

    printf("%d", k);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:21: error: 'X' undeclared (first use in this function)
   13 |             if(i == X){
      |                     ^
main.c:13:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
#define ll long long int
#define IO ios_base::sync_with_stdio(false);cin.tie(NULL);
using namespace std;
int main()
{
  IO;  
  ll n; 
  cin >> n; 
  cout << 360/(__gcd(n,360)) <<endl;
  
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: no matching function for call to '__gcd(long long int&, int)'
   10 |   cout << 360/(__gcd(n,360)) <<endl;
      |                ~~~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:1137:5: note: candidate: 'template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)'
 1137 |     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algo.h:1137:5: note:   template argument deduction/substitution failed:
a.cc:10:21: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('long long int' and 'int')
   10 |   cout << 360/(__gcd(n,360)) <<endl;
      |                ~~~~~^~~~~~~
Language: C++

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

int main()
{
  int x;
  cin>>x;
  
  cout<<360/x<<endl;
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected '}' at end of input
    9 |   cout<<360/x<<endl;
      |                     ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: Java

import java.util.Scanner;

class  test{
  public static void main(String args[]){
    Scanner int =new Scanner(System.in);
    
    int n=in.nextInt();
    
    System.out.println(""+(360/n));
    

Compiler output:
Main.java:5: error: not a statement
    Scanner int =new Scanner(System.in);
    ^
Main.java:5: error: ';' expected
    Scanner int =new Scanner(System.in);
           ^
Main.java:5: error: not a statement
    Scanner int =new Scanner(System.in);
            ^
Main.java:5: error: ';' expected
    Scanner int =new Scanner(System.in);
               ^
Main.java:9: error: reached end of file while parsing
    System.out.println(""+(360/n));
                                   ^
5 errors
Language: C++

    #include <bits/stdc++.h>
    #define ll long long
    #define ld long double
    using namespace std; 
    
	int lcm (int a, int b){
     	return a*b/__gcd(a,b);
    }
    int main(){
    	ld x;
      	cin >> x;
      	cout << lcm(x, 360)/x << endl;
    	return 0;
    }

Compiler output:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:58,
                 from a.cc:1:
/usr/include/c++/14/numeric: In instantiation of 'constexpr std::common_type_t<_Mn, _Nn> std::lcm(_Mn, _Nn) [with _Mn = long double; _Nn = int; common_type_t<_Mn, _Nn> = long double]':
a.cc:12:19:   required from here
   12 |         cout << lcm(x, 360)/x << endl;
      |                 ~~~^~~~~~~~
/usr/include/c++/14/numeric:190:21: error: static assertion failed: std::lcm arguments must be integers
  190 |       static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>,
      |                     ^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/numeric:190:21: note: 'std::is_integral_v<long double>' evaluates to false
In file included from /usr/include/c++/14/bits/stl_pair.h:60,
                 from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/type_traits: In instantiation of 'struct std::make_unsigned<long double>':
/usr/include/c++/14/type_traits:2076:11:   required by substitution of 'template<class _Tp> using std::make_unsigned_t = typename std::make_unsigned::type [with _Tp = long double]'
 2076 |     using make_unsigned_t = typename make_unsigned<_Tp>::type;
      |           ^~~~~~~~~~~~~~~
/usr/include/c++/14/numeric:199:34:   required from 'constexpr std::common_type_t<_Mn, _Nn> std::lcm(_Mn, _Nn) [with _Mn = long double; _Nn = int; common_type_t<_Mn, _Nn> = long double]'
  199 |       _Ct __r = __m2 / __detail::__gcd<make_unsigned_t<_Ct>>(__m2, __n2);
      |                        ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:12:19:   required from here
   12 |         cout << lcm(x, 360)/x << endl;
      |                 ~~~^~~~~~~~
/usr/include/c++/14/type_traits:1929:13: error: invalid use of incomplete type 'class std::__make_unsigned_selector<long double, false, false>'
 1929 |     { using type = typename __make_unsigned_selector<_Tp>::__type; };
      |             ^~~~
/usr/include/c++/14/type_traits:1837:11: note: declaration of 'class std::__make_unsigned_selector<long double, false, false>'
 1837 |     class __make_unsigned_selector;
      |           ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/numeric: In instantiation of 'constexpr std::common_type_t<_Mn, _Nn> std::lcm(_Mn, _Nn) [with _Mn = long double; _Nn = int; common_type_t<_Mn, _Nn> = long double]':
a.cc:12:19:   required from here
   12 |         cout << lcm(x, 360)/x << endl;
      |                 ~~~^~~~~~~~
/usr/include/c++/14/numeric:205:48: error: argument 1 in call to function '__builtin_mul_overflow' does not have integral type
  205 |       bool __overflow = __builtin_mul_overflow(__r, __n2, &__r);
      |                                                ^~~
Language: C++

    #include <bits/stdc++.h>
    #define ll long long
    #define ld long double
    using namespace std; 
     
    int main(){
    	ld x;
      	cin >> x;
      	cout << 360/x << endl
    	return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: expected ';' before 'return'
    9 |         cout << 360/x << endl
      |                              ^
      |                              ;
   10 |         return 0;
      |         ~~~~~~
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define ld long double
using namespace std; 

int main(){
	int x;
  	cin >> x;
  	cout << 360/x << endl
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: expected ';' before 'return'
    9 |         cout << 360/x << endl
      |                              ^
      |                              ;
   10 |         return 0;
      |         ~~~~~~
Language: C

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

int main(){
    int X;
    cin >> X;
    int i = 1;
    while(1){
        if((360 * i) % X == 0) {
            break;
        }
        i += 1;
    }
    cout << (360 * i) / X << endl;
}


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

#include<isotream>
using namespace std;
int main()
{
  int n,x=360;
  cin>>n;
  while(true)
  {
    if(x%n==0)
      cout<<x/n;
    else
      x*=2;
  }
  return 0;
}  

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

#include<bits\stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	for(int i=1;i<=179;i++)
	
	{
		if((i*360)%n==0)
		{
			cout<<(i*360)/n;
			break;
		}
	}
}

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

#include<bits\stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	for(int i=1;i<=100000;i++)
	
	{
		if((i*360)%n==0)
		{
			cout<<i*360/n;
			break;
		}
	}
}

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

#include<bits\stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	for(int i=1;i<=100000;i++)
	
	{
		if((i*360)%n==0)
		{
			cout<<i*360%n;
			break;
		}
	}
}

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

#include<bits\stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	cout<<360/n;
}

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

#include <algorithm>
#include <iostream>
#include <vector>
#include <functional>
#include <string>
#include <cmath>  //sqrt 
#include <iomanip> //setprecision
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
#define beg begin()
#define end end()

void _main(){
    int x; cin >> x;
    int k = lcm(x,360)/x;
    cout << k << endl;
    
    return;
}
int main() {
    cout << fixed << setprecision(10);
    _main();
    return 0;
}
    

Compiler output:
a.cc: In function 'void _main()':
a.cc:16:13: error: 'lcm' was not declared in this scope
   16 |     int k = lcm(x,360)/x;
      |             ^~~
Language: C++

#include <bits/stdc++.h>
 
#define ll                      long long int
#define i(a,n)                  int a=n
#define l(a,n)                  ll a=n
#define d(a,n)                  double a=n
#define s(a)                    string a
#define c(a)                    ll a, cin>>a
#define cd(a)                   double a, cin>>a
#define cs(a)                   string a, cin>>a
#define ci(a)                   cin>>a
#define co(a)                   cout<<a
#define cos(a)                  cout<<a<<" ";
#define con(a)                  cout<<a<<endl
#define yes                     cout<<"YES"<<endl
#define no                      cout<<"NO"<<endl
#define nl                      cout<<endl
#define ca(arr,n)               for(ll i=0;i<n;i++) cin>>arr[i]
#define f0(i,a,n)               for(ll i=a;i>=n;i--)
#define f(i,n)                  for(ll i=0;i<n;i++)
#define f1(i,a,n)               for(ll i=a;i<n;i++)
#define T                       ll t=1; cin>>t; while(t--)
#define lcm(a,b)                (a*b)/__gcd(a,b)
#define fast                    ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
#define ret(x)                  return cout<<x,0;
 
using namespace std;
 
int main()
{
    fast;
    ll x,k=1;
  	cin>>x;
  	while (k * n % 360 != 0) k++;
  	cout <<k;
    return 0;
}
 
/*It's not who I am underneath, but what I do that defines me
 
MMMMMMMMMMMMMMMMMMMMM.                             MMMMMMMMMMMMMMMMMMMMM
 `MMMMMMMMMMMMMMMMMMMM           M\  /M           MMMMMMMMMMMMMMMMMMMM'
   `MMMMMMMMMMMMMMMMMMM          MMMMMM          MMMMMMMMMMMMMMMMMMM'
     MMMMMMMMMMMMMMMMMMM-_______MMMMMMMM_______-MMMMMMMMMMMMMMMMMMM
      MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
      MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
      MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
     .MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
    MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
                   `MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM'
                          `MMMMMMMMMMMMMMMMMM'
                              `MMMMMMMMMM'
                                 MMMMMM 
                                  MMMM
                                   MM
*/

Compiler output:
a.cc: In function 'int main()':
a.cc:34:20: error: 'n' was not declared in this scope
   34 |         while (k * n % 360 != 0) k++;
      |                    ^
Language: C++

#include<bits/stdc++.h.
using namespace std;
int main()
{
  int n;
  cin>>n;
  cout<<360/n<<endl;
}

Compiler output:
a.cc:1:24: error: missing terminating > character
    1 | #include<bits/stdc++.h.
      |                        ^
a.cc:1:9: fatal error: bits/stdc++.h.: No such file or directory
    1 | #include<bits/stdc++.h.
      |         ^
compilation terminated.
Language: Java

import java.util.*;
import java.util.List; 
import java.util.ArrayList; 
import java.util.Collections; 
 
public class Test{  

	
 
        public static void main(String[] args){
         
          Scanner in = new Scanner(System.in);
          int x = in.nextInt();
          if(360%x!=0)System.out.println(360/x+1);
          else System.out.println(360/x);
         
     }
 
 
  }  













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

    #inlcude <bits/stdc++.h>
    #define ll long long
    using namespace  std;
     
    int main(){
     	ll x;
      	cin >> x;
      	cout << 360/(180 - x) << '\n';
      	return 0;
    }

Compiler output:
a.cc:1:6: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 |     #inlcude <bits/stdc++.h>
      |      ^~~~~~~
      |      include
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> x;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 |     #inlcude <bits/stdc++.h>
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << 360/(180 - x) << '\n';
      |         ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#inlcude <bits/stdc++.h>
#define ll long long
using namespace  std;

int main(){
 	ll x;
  	cin >> x;
  	cout << 360/(180 - x) << '\n';
  
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> x;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude <bits/stdc++.h>
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << 360/(180 - x) << '\n';
      |         ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int N = 1e4 + 5;
struct Edge{
    int to, next;
}e[N << 1];
int head[N], tot;
void add(int u, int v){
    e[++tot].to = v;
    e[tot].next = head[u];
}
int fa[N], f[N];
int find(int x){
    return x == fa[x] ? x : fa[x] == find(fa[x]);
}
int a[N], p[N];
bool vis[N];
bool cmp(int x, int y){
    return a[x] > a[y];
}
void solve(){
    int n, m;
    scanf("%d%d", &n, &m);
    tot = 0;
    for(int i = 1; i <= n; i++) {
        scanf("%d", &a[i]);
        fa[i] = i;
        p[i] = i;
    }
    memset(head, 0, sizeof(head));
    memset(f, 0, sizeof(f));
    memset(vis, 0, sizeof(vis));
    sort(p + 1, p + n + 1, cmp);
    while(m--) {
        int x, y;
        scanf("%d%d", &x, &y);
        add(x, y); add(y, x);
    }
    for(int i = 1; i <= n; i++) {
        int from = p[i];

    }
}
int main(){
    int n;
    cin >> n;
    cout << 360 / n << enl;
    // int t;
    // scanf("%d", &t);
    // while(t--) solve();
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:50:24: error: 'enl' was not declared in this scope
   50 |     cout << 360 / n << enl;
      |                        ^~~
Language: Java

public class Main {

    public static void main(String[] args) {

        int i;
        int k = 360;
        int j;

        Scanner sc = new Scanner(System.in);

        if (!sc.hasNextInt()) {
            System.err.println("整数を入力してください");
        }

        i = Integer.parseInt(sc.nextLine());

        if (1 <= i && i <= 179) {
            if (k % i == 0) {
                j = k / i;
            } else {
                j = k / i + 1;
            }
            System.out.println(j);
        } else {
            System.out.println("回転する角度は１～１７９の間で入力してください。");
        }
    }
}

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

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

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

  int X;
  cin >> x;

  cout << 360 / X << endl;

  return 0;
}

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

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

int main(){
  int x;
  cin>>x;
  cout<<round(r360/(180-x))<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'r360' was not declared in this scope
    7 |   cout<<round(r360/(180-x))<<endl;
      |               ^~~~
Language: C++

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

int main() {
  
  int x;
  cin >> x;
  
  int k;
  
  if(360/x == 0) {
    cout << 360/x;
  } else{
    for (int i = 0; i < 10000; i++) {
    k++;
    if (k*x/360 == 0) {
      cout << k;
      break;
    }
  }
  
}


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

class Main{public static void main(String[] a){System.out.println(360/new java.util.Scanner(System.in).nextInt();}}

Compiler output:
Main.java:1: error: ')' or ',' expected
class Main{public static void main(String[] a){System.out.println(360/new java.util.Scanner(System.in).nextInt();}}
                                                                                                                ^
1 error
Language: Java

class Main{public static void main(String[] a){System.out.println(360/new java.util.Scanner(System.in).nextInt);}}

Compiler output:
Main.java:1: error: cannot find symbol
class Main{public static void main(String[] a){System.out.println(360/new java.util.Scanner(System.in).nextInt);}}
                                                                                                      ^
  symbol:   variable nextInt
  location: class Scanner
1 error
Language: C++

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

void solve(){
  ll a,b;
  scanf("%lld",&a)
  b=360;
  while(b%a != 0)
    b+=360;

  printf("%lld\n",b/a);
}
int main()
{
    // ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
 
 #ifndef ONLINE_JUDGE   
  freopen("input.txt",  "r",  stdin);
  freopen("output.txt", "w", stdout); 
 #endif
 
     int t=1; 
     // cin >> t;
     while (t--) solve();
 
     return 0;
}



Compiler output:
a.cc: In function 'void solve()':
a.cc:7:19: error: expected ';' before 'b'
    7 |   scanf("%lld",&a)
      |                   ^
      |                   ;
    8 |   b=360;
      |   ~
Language: C

#include<stdio.h>
#define ll  long long  
void solve(){
  ll a,b
  scanf("%lld",&a);
  b=360;
  while(b%a != 0)
    b+=360;
  printf("%lld",b/a);

}
int main()
{
     int t=1; 
     // cin >> t;
     while (t--) solve();
 
     // cerr << "Run Time : " << ((double)(clock() - z) / CLOCKS_PER_SEC);
 
     return 0;
}


Compiler output:
main.c: In function 'solve':
main.c:5:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 |   scanf("%lld",&a);
      |   ^~~~~
main.c:6:3: error: 'b' undeclared (first use in this function)
    6 |   b=360;
      |   ^
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<bits/stdc++.h>
using namespace std;
#define ll  long long  
void solve(){
  ll a,b;
  scanf("%lld",&a);
  b=360;
  while(b%a != 0)
    b+=360;
  printf("%lld",b/a);

}
int main()
{
     int t=1; 
     // cin >> t;
     while (t--) solve();
     return 0;
}


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<bits/stdc++.h>
using namespace std;
 
 int main(){
 	int n,i;
 	cin>>n;
 	cout<<360/n;
	 
 }

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>n;
      |         ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout<<360/n;
      |         ^~~~
Language: Java

import java.util.*;
class Main{
 static public void main(Srtring[] args){
   Scanner sc=new Scanner(System.in);
   System.out.println(360/sc.nextInt());
 }
}

Compiler output:
Main.java:3: error: cannot find symbol
 static public void main(Srtring[] args){
                         ^
  symbol:   class Srtring
  location: class Main
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  for(int i=0;;i++){
    k=n*i;
    if(k>=360){
      cout << i << endl;
      break;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'k' was not declared in this scope
    7 |     k=n*i;
      |     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int x,q,p;
  cin>>x;
  p=360;
  q=x;
  int count=0;
while(p!=q)
{
  q+=x;
  q%=360;
  count+++;
}
cout<<count;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: expected primary-expression before ';' token
   14 |   count+++;
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int x;
  cin>>x;
  p=360;
  q=x;
  int count=0;
while(p!=q)
{
  q+=x;
  q%=360;
  count+++;
}
cout<<count;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'p' was not declared in this scope
    7 |   p=360;
      |   ^
a.cc:8:3: error: 'q' was not declared in this scope
    8 |   q=x;
      |   ^
a.cc:14:11: error: expected primary-expression before ';' token
   14 |   count+++;
      |           ^