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

#include <bits/stdc++.h>
#define ll long long int
#define REP(i,n) for(ll i=0;i<n;i++)
#define SZ(v) (ll)v.size()
using namespace std;
#define endl "\n"
#define ff first
#define ss second
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define pbds tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>
const ll MOD=1000000007;
const ll nxm=1e7+5;
void solve()
{
ll x;
cin>>x;
cout<<360/__gcd(x,360);

}
int main(){
//    freopen("input.txt", "r", stdin);
//    freopen("output.txt", "w", stdout);
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	ll t=1;
//	cin>>t;
	while(t--){
		solve();
	}


	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:19:16: error: no matching function for call to '__gcd(long long int&, int)'
   19 | cout<<360/__gcd(x,360);
      |           ~~~~~^~~~~~~
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:19:16: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('long long int' and 'int')
   19 | cout<<360/__gcd(x,360);
      |           ~~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
#define ll long long int
#define REP(i,n) for(ll i=0;i<n;i++)
#define SZ(v) (ll)v.size()
using namespace std;
#define endl "\n"
#define ff first
#define ss second
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define pbds tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>
const ll MOD=1000000007;
const ll nxm=1e7+5;
void solve()
{
ll x;
cin>>x;
if(360%x==0)
cout<<360/__gcd(x,360);

}
int main(){
//    freopen("input.txt", "r", stdin);
//    freopen("output.txt", "w", stdout);
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	ll t=1;
//	cin>>t;
	while(t--){
		solve();
	}


	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:20:16: error: no matching function for call to '__gcd(long long int&, int)'
   20 | cout<<360/__gcd(x,360);
      |           ~~~~~^~~~~~~
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:20:16: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('long long int' and 'int')
   20 | cout<<360/__gcd(x,360);
      |           ~~~~~^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int T;cin>>T;
  while(T--)
  {
    int n;cin>>n;
    cout<<360 / __gcd(x, 360)<<endl; 
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: 'x' was not declared in this scope
    9 |     cout<<360 / __gcd(x, 360)<<endl;
      |                       ^
Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <random>
#include <chrono>
 
using namespace std;
using namespace __gnu_pbds;
 
#define endl '\n'
 
typedef long long ll;
typedef pair<int, int> pii;
typedef tree<int, null_type,less<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
 
template<typename T>
static T randint(T lo, T hi){
	return uniform_int_distribution<T>(lo, hi)(rng);
}
 
 
int main(){
	ios_base::sync_with_stdio(0);
	cin.tie(0);
 
	//freopen("input.txt", "r", stdin);
	//freopen("output.txt", "w", stdout);
 	
 	ll n;
 	cin >> n;

 	cout << 360 / __gcd(n, 360) << endl;


	return 0;	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:28: error: no matching function for call to '__gcd(ll&, int)'
   33 |         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:33:28: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('long long int' and 'int')
   33 |         cout << 360 / __gcd(n, 360) << endl;
      |                       ~~~~~^~~~~~~~
Language: C++

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

int main(){
  int a;
  cin>>a;
  if(360%a==0)
    cout<< 360/a<<endl;
  else
    cout<<"360"<<endl;
	return 0;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #using
    2 | #using namespace std;
      |  ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>a;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout<< 360/a<<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:8:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout<< 360/a<<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)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<"360"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout<<"360"<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
#define IOS ios_base::sync_with_stdio(false);cin.tie(0)
#define pb push_back
#define ff first
#define ss second
#define all(a) a.begin(),a.end()
#define int long long
const int MOD=1e9+7;
const int N=3e5+10;
int32_t main()
{
	IOS;
	int x;
	cin>>x;
	int k=1;
	while(true)
	{
		if((k*x)%360==0)
		{
			cout<<k<<endl;
			return 0;
		}
		k++;
	}
	
}

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

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

int main(void){
  int x;
  scanf("%d",&n);
  int a=360;
  int b=x;
  int r=a%b;
  while(r!=0){
      a=b;
      b=r;
      r=a%b;
  }
  printf("%d\n",360/b);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: 'n' undeclared (first use in this function)
    7 |   scanf("%d",&n);
      |               ^
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define vec_input(v) for(auto it=v.begin();it!=v.end();it++){cin>>*it;}
#define vec_output(v) for(auto it=v.begin();it!=v.end();it++){if(it!=v.begin())cout<<" ";cout<<*it;}cout<<endl;
#define vec_debug(v) for(auto it=v.begin();it!=v.end();it++){cerr<<*it<<" ";}cerr<<endl;
#define yn(ans) cout<<(ans?"Yes":"No")<<endl
#define YN(ans) cout<<(ans?"YES":"NO")<<endl
using namespace std;
using ll = long long;
template <typename T>T digitsum(T n);
template <typename T>bool isPrime(T n);
template <typename T>vector<pair<T, T>> prime_factor(T n);
long long int intpow(long long int,long long int);
template <typename T>T intlog(T);
long long int combination(long long int,long long int);
long long int series_sum(long long int);

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

Compiler output:
a.cc: In function 'int main()':
a.cc:28:19: error: 'i' was not declared in this scope
   28 |         cout<<360*i/x<<endl;
      |                   ^
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(){
    int X;
    cin >> x;

    int ans = 360/X;


    cout << ans << endl;
}

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

#pragma GCC optimize("Ofast") 
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define fi first
#define se second
#define mp make_pair
#define owo ios_base::sync_with_stdio(0);cin.tie(0);
#define MOD (ll)(998244353)
#define INF (ll)(1e18)
#define debug(...) fprintf(stderr, __VA_ARGS__),fflush(stderr)
#define time__(d) for(long blockTime = 0; (blockTime == 0 ? (blockTime=clock()) != 0 : false);\
debug("%s time : %.4fs\n", d, (double)(clock() - blockTime) / CLOCKS_PER_SEC))
typedef long long int ll;
typedef long double ld;
typedef pair<ll,ll> PII;
typedef pair<int,int> pii;
typedef vector<vector<int>> vii;
typedef vector<vector<ll>> VII;
int gcd(int A,int B) {if(!B)return A;return gcd(B,A%B);}
int main()
{
  int x;
  cin>>x;
  cout<<360/(gcd(360,x);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:24: error: expected ')' before ';' token
   25 |   cout<<360/(gcd(360,x);
      |             ~          ^
      |                        )
Language: C++

#include <bits/stdc++.h> 
#include <ext/pb_ds/assoc_container.hpp> 
#include <ext/pb_ds/tree_policy.hpp> 
 
using namespace std; 
using namespace __gnu_pbds;
 
typedef long long ll;
typedef double db;
typedef long double ld;
typedef string str;
 
typedef pair<int,int> pi;
typedef pair<ll, ll> pll;
typedef pair<db, db> pdb;
typedef pair<ld, ld> pld;
typedef pair<str, str> pstr;
 
typedef vector<int> vi; 
typedef vector<ll> vll; 
typedef vector<db> vdb; 
typedef vector<ld> vld;
typedef vector<str> vstr; 
typedef vector<pi> vpi;
typedef vector<pll> vpll; 
typedef vector<pdb> vpdb; 
 
#define fi first
#define se second
#define mp make_pair
#define pf push_front 
#define pb push_back
#define ins insert 
#define eb emplace_back 
#define fbo find_by_order
#define ook order_of_key
#define rsz resize
#define lb lower_bound 
#define ub upper_bound 

#define len(s) (int)s.length()
#define sz(v) (int)v.size()
#define all(v) v.begin(), v.end()
#define srt(v) sort(all(v))

#define rep(a, b, c) for(a=b; a<c; a++) 
#define per(a, b, c) for(a=b; a>c; a--) //do not include boundaries on the right
#define repn(a, b, c) for(a=b; a<=c; a++) 
#define pern(a, b, c) for(a=b; a>=c; a--) //include boundaries on the right
 
#define yes cout << "YES"<< "\n" 
#define no cout << "NO" << "\n" 
#define out(x) cout << x << "\n"
#define outs(x) cout << x << " "
#define el cout << "\n"

#define navi ios_base::sync_with_stdio(false); cin.tie(NULL)    
 
const ll mod = 1e9+7;
const double eps = 1e-9;

int main(){
  navi;
  cin >> x;
  int ans=1;
  while((ans*x) % 360 != 0) ans++;
  out(ans);
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'x1' was not declared in this scope; did you mean 'x'?
    7 |   x1=360;
      |   ^~
      |   x
Language: C++

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

return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 | cout<<(360/ __gcd(360,x)<<endl;
      |        ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:6:31: error: expected ')' before ';' token
    6 | cout<<(360/ __gcd(360,x)<<endl;
      |       ~                       ^
      |                               )
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main ()
{
    double i,j,x;
    cin>>x;
    for(i=1;i<362;i++)
    {
        if(x*i%360==0)
        {
            cout<<i;
            return 0;
        }
    }


}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |         if(x*i%360==0)
      |            ~~~^~~~
      |             |  |
      |             |  int
      |             double
Language: C++

#include <iostream>
using namespace std;
int main(){
  int x;
  cin >> i;
  int i=0;
  while((360*i)%x!=0){
    i++;
  }
  cout << (360*i)/x;
  return 0;
}


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

#include <iostream>
using namespace std;
int main(){
  int x << cin;
  int i=0;
  while((360*i)%x!=0){
    i++;
  }
  cout << (360*i)/x;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected initializer before '<<' token
    4 |   int x << cin;
      |         ^~
a.cc:6:17: error: 'x' was not declared in this scope
    6 |   while((360*i)%x!=0){
      |                 ^
a.cc:9:19: error: 'x' was not declared in this scope
    9 |   cout << (360*i)/x;
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
const ll MOD=(ll)1e9+7;
//const ll MOD=(ll)998244353;
const ll INF=(ll)1e18+10;
const double PI = 2.0*acos(0);
template<class T> bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T> bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }
int dy[]={-1,1,0,0};
int dx[]={0,0,-1,1};

void solve(int ca){i
    int a;
    cin>>a;
    int cnt=1;
    while(cnt*a%360!=0){
        cnt++;
    }
    cout<<cnt<<endl;
}

//#define MULTI
int main() {
#ifdef MULTI
    int N; cin>>N;
    for (int i = 0; i < N; ++i) {
        solve(i+1);
    }
#else
    solve(0);
#endif
    return 0;
}


Compiler output:
a.cc: In function 'void solve(int)':
a.cc:13:20: error: 'i' was not declared in this scope
   13 | void solve(int ca){i
      |                    ^
a.cc:15:10: error: 'a' was not declared in this scope; did you mean 'ca'?
   15 |     cin>>a;
      |          ^
      |          ca
Language: C++

#include<bits/stdc++.h>
using namespace std
int main(){
  int x; cin >> x;
  cout << 360 / __gcd(360-x, 360) << "\n";
  return 0;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main(){
      | ~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
	
void  turn (int x)
{
	
	for(int i=1;i<=360;i++){
    if((i*x)%360==0){cout<<i<<endl;}	
}
	
int main()	
{
	int a,b,c,d;
	cin>>a>>b>>c>>d;
	
	return 0;

}

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

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


int main()
{
	
	
	int x;
	cin>> x;
	

	int k = 360/(_gcd(360,x));
	cout<< k;

	return 0;
	
}

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

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


int main()
{
	
	
	int x;
	cin>> x;
	

	int k = 360/_gcd(360,x);
	cout<< k;

	return 0;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: '_gcd' was not declared in this scope
   13 |         int k = 360/_gcd(360,x);
      |                     ^~~~
Language: Java

import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
  int x=sc.nextInt();
  int ans=0;
if(360%x==0){
ans=360/x;
}else{
ans=Math.ceil(360/(180-x));
}
  System.out.println(ans);
}
}

Compiler output:
Main.java:10: error: incompatible types: possible lossy conversion from double to int
ans=Math.ceil(360/(180-x));
             ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int b, c, x;
  cin >> x;
  double a = 360.0;
  int b * (180 - x) = c * a;
  cout << min(x) << endl; //
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected initializer before '*' token
    9 |   int b * (180 - x) = c * a;
      |         ^
a.cc:10:14: error: no matching function for call to 'min(int&)'
   10 |   cout << min(x) << endl; //
      |           ~~~^~~
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:   candidate expects 2 arguments, 1 provided
/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, 1 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:   template argument deduction/substitution failed:
a.cc:10:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   10 |   cout << min(x) << endl; //
      |           ~~~^~~
/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:   candidate expects 2 arguments, 1 provided
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
int num,p;
cin>>num;
p=360/num;
if(360%num==0)  {
cout<<p; }
else if(360%num!=0)  {
cout<<p  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: expected ';' before '}' token
   11 | cout<<p  }
      |        ^ ~
      |        ;
Language: C++

#include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main(void)
{
  int a, b;
  scanf("%d", &a);
  scanf("%d", &b);
  printf("gcd(%d, %d) = %d\n", a, b, gcd(a, b));
  printf("lcm(%d, %d) = %d\n", a, b, lcm(a, b));
  return 0;
}

int gcd(int a, int b)
{
    if (a < b) {
        a ^= b;
        b ^= a;
        a ^= b;
    }
    
    return b ? gcd(b, a % b) : a;
}

int lcm(int a, int b)
{
    return a * b / gcd(a, b);
}
int main() {
  int X;
  cin>>X;
  if(360%X==0) cout<<360/X;
  else cout<<lcm(X,360);
}


Compiler output:
a.cc:29:5: error: redefinition of 'int main()'
   29 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(void)
      |     ^~~~
Language: C++

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

int main(void)
{
  const double PI=3.14159265358979323846;
  int X, K;
  double x, y, sk;
  cin >> X;
  
//  KK = 360 / X;
//  if (abs(KK - round(KK)) > 0.000001)
//    K = 360;
//  else
//    K = 360 / X;
  
//なんか答えが合わないので、実際に高橋君を走らせてみる
    x = 1.0;
    y = 0.0;
    st = double(X) * PI / 180.0;
    sk = st;
    K = 1;
    while (abs(x)+abs(y) >= 0.0001) {
      x += cos(sk);
      y += sin(sk);
      sk += st;
      K++;
    }

  cout << K << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'st' was not declared in this scope; did you mean 'sk'?
   21 |     st = double(X) * PI / 180.0;
      |     ^~
      |     sk
Language: C++

#include<bits/stdc++.h>
int main()
{
	int x;
  cin>>x;
  cout<<360/__gcd(360,x);
  return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>x;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<360/__gcd(360,x);
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:13: error: '__gcd' was not declared in this scope
    6 |   cout<<360/__gcd(360,x);
      |             ^~~~~
a.cc:6:13: note: suggested alternatives:
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:1137:5: note:   'std::__gcd'
 1137 |     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
      |     ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:58:
/usr/include/c++/14/numeric:134:5: note:   'std::__detail::__gcd'
  134 |     __gcd(_Tp __m, _Tp __n)
      |     ^~~~~
Language: Java

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

int main() {
  int X;
  cin >> X;
  
  if (360%X == 0) {
    cout << 360 / X << endl;
  }
  
  else {
  	int A = std::lcm(360, X);
    int B = std::gcd(360, X);
    cout << A/(X/B) << endl;
  }
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:6: error: not a statement
  cin >> X;
      ^
Main.java:9: error: not a statement
    cout << 360 / X << endl;
                    ^
Main.java:13: error: not a statement
  	int A = std::lcm(360, X);
  	                      ^
Main.java:14: error: not a statement
    int B = std::gcd(360, X);
                          ^
Main.java:15: error: not a statement
    cout << A/(X/B) << endl;
                    ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
Main.java:13: error: ';' expected
  	int A = std::lcm(360, X);
  	                ^
Main.java:13: error: ';' expected
  	int A = std::lcm(360, X);
  	                       ^
Main.java:14: error: ';' expected
    int B = std::gcd(360, X);
                    ^
Main.java:14: error: ';' expected
    int B = std::gcd(360, X);
                           ^
12 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int x;
  cin >> x;
  doudle a = 360.0;
  int b = a / x;
  if (b == 3 || b == 4 || b == 5 || b == 6 || b == 8 || b == 9 || b == 10 || b == 12
      || b == 15 || b == 18 || b == 20 || b == 24 || b == 30 || b == 36 || b == 40 
      b == 45 || b == 60 || b == 72 || b == 90 || b == 120){
    cout << b << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'doudle' was not declared in this scope; did you mean 'double'?
    7 |   doudle a = 360.0;
      |   ^~~~~~
      |   double
a.cc:8:11: error: 'a' was not declared in this scope
    8 |   int b = a / x;
      |           ^
a.cc:10:83: error: expected ')' before 'b'
   10 |       || b == 15 || b == 18 || b == 20 || b == 24 || b == 30 || b == 36 || b == 40
      |                                                                                   ^
      |                                                                                   )
   11 |       b == 45 || b == 60 || b == 72 || b == 90 || b == 120){
      |       ~                                                                            
a.cc:9:6: note: to match this '('
    9 |   if (b == 3 || b == 4 || b == 5 || b == 6 || b == 8 || b == 9 || b == 10 || b == 12
      |      ^
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main()
{
	int n;
	cin >> n;
	//for (n = 1; n <= 179; n++)
	{
		int deg = n;
		int cnt = 0;
		int curdeg = 0;
		while (1)
		{
			curdeg += deg;
			cnt++;
			if (curdeg % 360 == 0) break;
			curdeg %= 360;
		}
		
	//}
	cout << cnt;
	return 0;
}

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

#include<iostream.h>
using namespace std;
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define ll long long
#define ld long double
#define pb push_back
#define w(t)  int t;cin>>t;while(t--)
int solve()
{
int x;
	cin>>x;
	if(360%x==0){
	cout<<360/x;
	}
	else{
		cout<<360/x + 1;
	}


}


int main()
{
    IOS;
{solve();}

   return 0;
 }



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

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

int main(){
  int X;
  cin >> X;
  if(X>90){
    for(int i=1; i<100; i++){
      for(int j=1; j<100; j++){
        if((180-X)*j == 180*i)){
          cout << j << endl;
          return 0;
        }
      }
    }
  }else{
    for(int i=1; i<100; i++){
      for(int j=1; j<100; j++){
        if((180-X)*j == 180*i)){
          cout << j << endl;
          return 0;
        }
      }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: expected primary-expression before ')' token
   10 |         if((180-X)*j == 180*i)){
      |                               ^
a.cc:19:31: error: expected primary-expression before ')' token
   19 |         if((180-X)*j == 180*i)){
      |                               ^
Language: C++

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

int main(){
  int X;
  cin >> X;
  if(X>90){
    for(int i=1; i<100; i++){
      for(int j=1: j<100; j++){
        if((180-X)*j == 180*i)){
          cout << j << endl;
          return 0;
        }
      }
    }
  }else{
    for(int i=1; i<100; i++){
      for(int j=1: j<100; j++){
        if((180-X)*j == 180*i)){
          cout << j << endl;
          return 0;
        }
      }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: initializer in range-based 'for' loop
    9 |       for(int j=1: j<100; j++){
      |                ^
a.cc:9:25: error: expected ')' before ';' token
    9 |       for(int j=1: j<100; j++){
      |          ~              ^
      |                         )
a.cc:9:27: error: 'j' was not declared in this scope
    9 |       for(int j=1: j<100; j++){
      |                           ^
a.cc:18:16: error: initializer in range-based 'for' loop
   18 |       for(int j=1: j<100; j++){
      |                ^
a.cc:18:25: error: expected ')' before ';' token
   18 |       for(int j=1: j<100; j++){
      |          ~              ^
      |                         )
a.cc:18:27: error: 'j' was not declared in this scope
   18 |       for(int j=1: j<100; j++){
      |                           ^
Language: Java

import java.util.*;

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


Compiler output:
Main.java:7: error: unexpected type
  if(360/x%=0){
        ^
  required: variable
  found:    value
1 error
Language: Java

import java.util.*;
public class Main{
    static int goo(int a,int b) {
        while((yuku = a % b) != 0){
            a = b;
            b = yuku;
        }
        return b;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int all = 360;
        int koubaisuu;
        int anc;
        int yuku;
        int yukuanc;

        if(all%A == 0){
            anc = all/A;
        }else{
            for(int i = 2;i < A;i++){
                if(A % i == 0){
                    yukuanc = goo(all,A);
                    anc = (all/yukuanc)*(A/yukuanc);
                    continue;
                }
            }
            all *= A;
            anc = all/A;
        }
        
        yukuanc = goo(all,A);
        
        
        System.out.println(anc);
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
        while((yuku = a % b) != 0){
               ^
  symbol:   variable yuku
  location: class Main
Main.java:6: error: cannot find symbol
            b = yuku;
                ^
  symbol:   variable yuku
  location: class Main
2 errors
Language: C++

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

int main(){
  int X;
  cin >> X;
  if(X>90){
    cout << 360/abs(180-X) << endl;
  }else{
    cout << 360/X << emdl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: 'emdl' was not declared in this scope
   10 |     cout << 360/X << emdl;
      |                      ^~~~
Language: C++

#include <bits/stdc++.h>
#define fi first
#define se second
#edfine mp make_pair
#define pb push_back
using namespace std;
typedef long long ll;
typedef pair<int,int> pi;
int gcd(int x,int y)
{
	if(x<y) swap(x,y);
	if(y==0) return x;
	return gcd(y,x%y);
}
int main()
{
	int n;
	cin>>n;
	int x=gcd(n,360);
	cout<<360/x<<endl;
	return 0;
}

Compiler output:
a.cc:4:2: error: invalid preprocessing directive #edfine; did you mean #define?
    4 | #edfine mp make_pair
      |  ^~~~~~
      |  define
Language: C++

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

int main() {
  int X;
  cin >> X;
  
  if (360%X == 0) {
    cout << 360 / X << endl;
  }
  
  else {
  	int A = std::lcm(360, X);
    cout << A << endl
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: expected ';' before '}' token
   14 |     cout << A << endl
      |                      ^
      |                      ;
   15 |   }
      |   ~
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main() {
    int x, k;

    scanf_s("%d", &x);
    k = 360 / x;
    printf("%d", k);

    return 0;
}

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

#include<stdio.h>
int main()
{
  int x;
  scanf("%d",&x); 
  int i,m=0,k=0;
  i=0;
  while(m=<360)
  {
    m+=x;
    k++;
     i++;
  }
printf("%d",k);
    
return 0;
} 


Compiler output:
main.c: In function 'main':
main.c:8:11: error: expected expression before '<' token
    8 |   while(m=<360)
      |           ^
Language: Java

package codeforces;
import java.util.*;
import java.io.*;

public class chef1 {
	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.valueOf(br.readLine());
		if(n<=90)
		System.out.println(360/n);
		else
			System.out.println(360/(180-n));
	}
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int X, a;
  cin >> X;
  if (360 / X = a) {	
    cout << 360 / x <<
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: lvalue required as left operand of assignment
    7 |   if (360 / X = a) {
      |       ~~~~^~~
a.cc:8:19: error: 'x' was not declared in this scope
    8 |     cout << 360 / x <<
      |                   ^
a.cc:9:3: error: expected primary-expression before '}' token
    9 |   }
      |   ^
Language: C

#include<stdio.h>
int main()
{
  int x;
  scanf("%d",&x); 
  int i,m=0,k=0;
  i=0;
  while(x<=360)
  {
    m+=x;
    k++;
     i++;
  }
printf("%d",k);
    

Compiler output:
main.c: In function 'main':
main.c:14:1: error: expected declaration or statement at end of input
   14 | printf("%d",k);
      | ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int x;
    cin>>x;
    int c=x;
    int t=0;
    while(1){
        if(c<360){
            c=c+x;
           
             t++;
        }
        else if(c==360)
        {
            t++;
            break;
        }
      else
      {
        c=360-c;
        t++;
    }
    cout<<t;
}

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

#include<stdio.h>
#include<math.h>
#include<stdlib.h>
int main()
{
	int X,K;
	
	scanf("%d",&X);
	
	if(X>=1 || X <= 179)
	{
		K = (4*90)/X;
		
		printf("%d",min(K,360));
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:29: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration]
   14 |                 printf("%d",min(K,360));
      |                             ^~~
      |                             main
Language: Java

/* package codechef; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
        if(x<=90)
		System.out.println(360/x);
        else System.out.println(360/(180-x));
}


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

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

int main() {
	ll x;
	cin >> x;
	ll gm = (360*x) / __gcd(x, 360);
	ll ans = gm / x;
	cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:32: error: no matching function for call to '__gcd(ll&, int)'
    8 |         ll gm = (360*x) / __gcd(x, 360);
      |                           ~~~~~^~~~~~~~
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:8:32: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('long long int' and 'int')
    8 |         ll gm = (360*x) / __gcd(x, 360);
      |                           ~~~~~^~~~~~~~
Language: C++

#include <bits/stdc++.h>
#pragma GCC target ("avx2")
#pragma GCC optimization ("O3")
#pragma GCC optimization ("unroll-loops")
#define optimize ios_base::sync_with_stdio(0) ; cin.tie(0) ; cout.tie(0) ;
#define ll long long
#define ld long double
#define vi vector<int>
#define si set<int>
#define vll vector<ll>
#define pb push_back
#define lp(i,a,b) for(int i = a ; i <= b ; i ++)
#define rlp(i,a,b) for(int i = b ; i >= a ; i --)
#define a_sort(v) sort(v.begin(), v.end())
#define d_sort(v) sort(v.rbegin(), v.rend())
#define pii pair<int,int>
#define pi 3.14159265358979323846264338327950
using namespace std ;
// #define debug

const int MOD = 1E9 + 7 ;
const int N = 2E5 ;

int main() {
    #ifdef debug
    freopen("input.txt", "r", stdin) ;
    freopen("output.txt", "w", stdout) ;
    #endif // debug
    optimize

    int n ; cin >> n ;
  	cout << 360 / n << endl ;`
}


Compiler output:
a.cc:32:34: error: stray '`' in program
   32 |         cout << 360 / n << endl ;`
      |                                  ^
Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>

using namespace __gnu_pbds;
using namespace std;

typedef long long ll;
typedef long double ld;
typedef tree<ll,null_type,less<ll>,rb_tree_tag, tree_order_statistics_node_update> ordered_set;

#define int ll
#define endl "\n"
#define tr(container, it) \
for(typeof(container.begin()) it = container.begin(); it != container.end(); it++)
#define all( x ) x.begin(), x.end()
#define fast ios::sync_with_stdio(0);cin.tie(0);

typedef vector<int> vi;
typedef pair<int, int> pii;
typedef unsigned long long ull;

const int inf = 1e9 + 5;
const long double PI = 3.141592653589793;


void solve(){
  int x;
  cin>>x;
  if(x > 90)x = x - 90;
  cout << 360 / (__gcd(360, x)) << endl;
  return;
}  
signed main(){
  fast;
  int t;
  t = 1;
  //cin>>t;
  while(t--){
    solve();
  }
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:30:23: error: no matching function for call to '__gcd(int, ll&)'
   30 |   cout << 360 / (__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:30:23: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('int' and 'long long int')
   30 |   cout << 360 / (__gcd(360, x)) << endl;
      |                  ~~~~~^~~~~~~~
Language: Java

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

public class C {
    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

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

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

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

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

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

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
    public static void main(String[] args) {
        FastReader fr = new FastReader();
        int x = fr.nextInt();
        if(360%x==0){
            System.out.println(360/x);
        }
        else{
            int count=1;
            int angle = x;
            while(true){
                if(angle%360==0){
                    break;
                }
                else{
                    count++;
                    angle+=x;
//                    System.out.println(angle);
                }
            }
            System.out.println(count);
        }
    }
}

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

/* package codechef; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		System.out.println(360/x);
	}
}


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

import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
	
    int x = Integer.parseInt(sc.next());
    
    if (Number.isInteger(360/x)=true){
      int k =360/x;
    } else{
      int k =360/x+1;
    }
    
	System.out.println(k);
    }

}



Compiler output:
Main.java:9: error: cannot find symbol
    if (Number.isInteger(360/x)=true){
              ^
  symbol:   method isInteger(int)
  location: class Number
Main.java:15: error: cannot find symbol
	System.out.println(k);
	                   ^
  symbol:   variable k
  location: class Main
2 errors
Language: Java

/* package codechef; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class taka
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		System.out.println(360/x);
	}
}


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

import java.util.*;
public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int all = 360;
        int koubaisuu;
        int anc;
        if(all%A == 0){
            anc = all/A;
        }else{
            all *= A;
            anc = all/A;
        }
        System.out.println(act);
    }
}

Compiler output:
Main.java:15: error: cannot find symbol
        System.out.println(act);
                           ^
  symbol:   variable act
  location: class Main
1 error
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected '}' at end of input
   12 |     cout<<360/n;
      |                 ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <limits>
#include <vector>
#include <climits>
#include <cstring>
#include <cstdlib>
#include <fstream>
#include <numeric>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <iomanip>
#include <unordered_map>
#include <numeric>
#define INFI LLONG_MAX
using namespace std;
//#include<bits/stdc++.h>
#include <map>
long long int g=998244353;
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);cout.tie(0);
    int x;cin>>x;cout<<(360/min(x,180-x)<<'\n';


}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:47: error: expected ')' before ';' token
   34 |     int x;cin>>x;cout<<(360/min(x,180-x)<<'\n';
      |                        ~                      ^
      |                                               )
Language: C++

//prepared by dumb
#include<bits/stdc++.h>
using namespace std;
#define        ll long long int
#define        dl double
#define        llu unsigned long long int
#define        scll(x) scanf("%lld",&x)
#define        scld(x) scanf("%lf",&x)
#define        scull(x) scanf("%llu",&x)
#define        scch(x) scanf(" %c",&x)
#define        pb(x) push_back(x)
#define        pf(x) push_front(x)
#define        ppb() pop_back()
#define        ppf() pop_front()
#define        Pi acos(-1.0)
#define        INF 1e18
#define        ff first
#define        ss second
#define        mpr make_pair
#define        debug(x) cout<<x<<'\n';
dl sin_deg(dl x){return sin((x*Pi)/180.0);}
dl cos_deg(dl x){return cos((x*Pi)/180.0);}
dl tan_deg(dl x){return tan((x*Pi)/180.0);}
dl asin_deg(dl x){return (asin(x)*180)/Pi;}
dl acos_deg(dl x){return (acos(x)*180)/Pi;}
dl atan_deg(dl x){return (atan(x)*180)/Pi;}
ll  _xor(ll a,ll b){return a^b;}
ll _and(ll a,ll b){return a&b;}
ll _or(ll a,ll b){return a|b;}
ll _not(ll a){ return ~a;}
#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int main()
{
           #ifndef ONLINE_JUDGE 
         freopen("input.txt","r",stdin);
         freopen("output.txt","w",stdout);
         #endif
ll a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;
ll cnt=0,ans=0,l1,l2,l3,c1=0,c2=0,c3=0,mx=0,mn=0,f1,f2,f3,v1,v2,v3,tst,t1,t2,t3,t4;
ll prevsum=0;
      string str,str1,str2;
        scll(t);
    if(t==90)
        cout<<4;
    else if(t>90)
        cout<<7;
    else if(t<90&&t>=2)
        cout<<3;
    else if(t==1)
        cout<<360
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:50:18: error: expected ';' before 'return'
   50 |         cout<<360
      |                  ^
      |                  ;
   51 | return 0;
      | ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected '}' at end of input
   12 |     cout<<360/n;
      |                 ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: Java

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

Compiler output:
Main.java:7: error: reached end of file while parsing
  System.out.println(ans);
                          ^
1 error
Language: Java

import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;

public class Solution 
{     
  public static void main(String[] args) throws IOException
  {
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    int t=Integer.parseInt(br.readLine());
    System.out.println(360/(180-t));
   }
}


Compiler output:
Main.java:9: error: class Solution is public, should be declared in a file named Solution.java
public class Solution 
       ^
1 error