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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int x;
  cin>>x;
  //int p=360/x;
  //int k=360-p*x;
  int p=360;
  bool temp=0;
  while(p%x!=0)
  {temp=1;
    sum+=p/x;
    p=360+p%x;
  }
  if(temp==0)
    cout<<360/x;
  else
  cout<<sum;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'sum' was not declared in this scope
   13 |     sum+=p/x;
      |     ^~~
a.cc:19:9: error: 'sum' was not declared in this scope
   19 |   cout<<sum;
      |         ^~~
Language: C++

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

int main{
  int n;
  cin >> n;
  cout << 360/gcd(n,360) << endl;
}


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int n;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> n;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << 360/gcd(n,360) << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

int main{
  int n;
  cin >> n;
  cout << 360/gcd(n,360) << endl;

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int n;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> n;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << 360/gcd(n,360) << endl;
      |   ^~~~
Language: C

#include <iostream>
#define _ std::ios::sync_with_stdio(false); std::cin.tie(0);

int main() { _
  int x;
  std::cin >> x;

  std::cout << 360/x << '\n';

  return 0;
}


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

#include <bits/stdc++.h>
using namespace std; 
int main(){
	double k, ans, x;
    double i;
  	cin >> x;
  	i = 1.0;
  	if(1<=x&&x<=179){
      	k = 360/x;
   		while(k*i%1!=0){
              	i++;
        }
        ans = k*i;

      	cout << ans << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   10 |                 while(k*i%1!=0){
      |                       ~~~^~
      |                        |  |
      |                        |  int
      |                        double
Language: C++

#include <bits/stdc++.h>
using namespace std; 
int main(){
	double k, ans, x;
            	double i=2;
  	cin >> x;
  	if(1<=x&&x<=179){
      	k = 360/x;
      	if(k%1.0!=0.0){

      		while(k*i%1.0!=0.0){
              	i++;
            }
          	ans = k*i;
        }
        else{
        	ans = k;
        }
      	cout << ans << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    9 |         if(k%1.0!=0.0){
      |            ~^~~~
      |            | |
      |            | double
      |            double
a.cc:11:26: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   11 |                 while(k*i%1.0!=0.0){
      |                       ~~~^~~~
      |                        |  |
      |                        |  double
      |                        double
Language: C++

#include <bits/stdc++.h>
using namespace std; 
int main(){
	double k, ans, x;
  	cin >> x;
  	if(1<=x&&x<=179){
      	k = 360/x;
      	if(k%1.0!=0.0){
          	double i=2;
      		while(k*i%1.0!=0.0)i++;
          	ans = k*i;
        }
        else{
        	ans = k;
        }
      	int(ans);
      	cout << ans << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    8 |         if(k%1.0!=0.0){
      |            ~^~~~
      |            | |
      |            | double
      |            double
a.cc:10:26: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   10 |                 while(k*i%1.0!=0.0)i++;
      |                       ~~~^~~~
      |                        |  |
      |                        |  double
      |                        double
Language: C++

#include <bits/stdc++.h>
using namespace std; 
int main(){
	double k, ans;
  	int x;
  	cin >> x;
  	if(1<=x&&x<=179){
      	k = 360/x;
      	if(k%1!=0.0){
          	int i=2;
      		while(k*i%1!=0.0)i++;
          	ans = k*i;
        }
        else{
        	ans = k;
        }
      	int(ans);
      	cout << ans << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |         if(k%1!=0.0){
      |            ~^~
      |            | |
      |            | int
      |            double
a.cc:11:26: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |                 while(k*i%1!=0.0)i++;
      |                       ~~~^~
      |                        |  |
      |                        |  int
      |                        double
Language: C++

#include <bits/stdc++.h>
using namespace std; 
int main(){
	double x, k;
  	int ans;
  	cin >> x;
  	if(1<=x&&x<=179){
      	k = 360/x;
      	if(k%1!=0){
          	int i=2;
      		while(k*i%1!=0)i++;
          	ans = k*i;
        }
        else{
        	ans = k;
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |         if(k%1!=0){
      |            ~^~
      |            | |
      |            | int
      |            double
a.cc:11:26: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |                 while(k*i%1!=0)i++;
      |                       ~~~^~
      |                        |  |
      |                        |  int
      |                        double
Language: C++

#include <bits/stdc++.h>
using namespace std; 
int main() {
	double x;
  	int ans;
  	cin >> x;
  	if(1<=x&&x<=179){
      	k = 360/x;
      	if(k%1!=0){
          	int i=2;
      		while(k*i%1!=0)i++;
          	ans = k*i;
        }
        else{
        	ans = k;
        }
    }
}


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

#include <iostream>
using namespace std;
int main(){
ll n; cin>>n; 
cout<<360/n;
}
  

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

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
  int x;
  cin>>x;
  
  int r = x*360/__gcd(x,360);
  int ans = 360/r;
  
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: '__gcd' was not declared in this scope
    9 |   int r = x*360/__gcd(x,360);
      |                 ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long int
 main() {
	int n;
	cin>>n;
	int val=180-n;
	int y=__gcd(val, 360);
	int val2=(360*val)/y;
	cout<<val2/val;
	return 0;
}

Compiler output:
a.cc:4:2: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 |  main() {
      |  ^~~~
a.cc: In function 'int main()':
a.cc:8:20: error: no matching function for call to '__gcd(long long int&, int)'
    8 |         int y=__gcd(val, 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:20: note:   deduced conflicting types for parameter '_EuclideanRingElement' ('long long int' and 'int')
    8 |         int y=__gcd(val, 360);
      |               ~~~~~^~~~~~~~~~
Language: C++

#pragma GCC optimize("Ofast")
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define uni(e) e.erase(unique(e.begin(),e.end()),e.end())
#define double long double
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
int INF=1e10;
int MOD=1e9+7;
template<class T> void out(T a){cout<<a<<'\n';}
template<class T> void yesno(T b){if(b)out("yes");else out("no");}
template<class T> void YesNo(T b){if(b)out("Yes");else out("No");}
template<class T> void YESNO(T b){if(b)out("YES");else out("NO");}
template<class T> void noyes(T b){if(b)out("no");else out("yes");}
template<class T> void NoYes(T b){if(b)out("No");else out("Yes");}
template<class T> void NOYES(T b){if(b)out("NO");else out("YES");}
int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
}
int kurai(int a,int b){
  int m=pow(10,b),n=pow(10,b-1);
  return (a%m)/n;
}
int ketawa(int a){
  int k=0;
  rep(i,keta(a)){
  k+=kurai(a,i+1);
  }
  return k;
}
int gcd(int a,int b){
  if(a%b==0)
    return b;
  return gcd(b,a%b);
}
int lcm(int a,int b){
    return a/gcd(a,b)*b;
}
int mid(int a,int b,int c){
  vector<int> k(3);
  k[0]=a;k[1]=b;k[2]=c;
  sort(all(k));
  return k[1];
}
bool sosuu(int a){
  bool b=1;
  if(a<=1)
    return 0;
  else{
  rep1(i,sqrt(a)-1){
  if(a%(i+1)==0)
  b=0;
  }
  return b;
  }
}
int modpow(int a,int b,int m=MOD){
 if(!b)return 1; if(b&1)return modpow(a,b-1,m)*a%m;
 int memo = modpow(a,b>>1,m);
 return memo*memo%m;
}
int fact_mod(int n) {
    int f=1; 
for(int i=2;i<n+1;i++) f=f*(i%MOD)% MOD;
    return f;
}
int mod_pow(int x,int n) {
    int res=1;
    while(n>0){
        if(n&1) res=(res*x)%MOD; 
        x=(x*x)%MOD;        
n>>=1; 
    }
    return res;
}
int c_mod(int n, int r) {
    if(r>n-r) r=n-r;
    if(r==0) return 1;
    int a=1;
    rep(i,r) 
a=a*((n-i)%MOD)%MOD;
    int b=mod_pow(fact_mod(r), MOD-2);
    return (a%MOD)*(b%MOD)%MOD;
}
signed main(){
  int a;
  if(a<120)
  out(lcm(a,360)/a);
  else if(a==120)
    out(3);
  else
    out(lcm((180-a),180)/(180-a))
}


Compiler output:
a.cc: In function 'int main()':
a.cc:103:34: error: expected ';' before '}' token
  103 |     out(lcm((180-a),180)/(180-a))
      |                                  ^
      |                                  ;
  104 | }
      | ~
Language: C++

#pragma GCC optimize("Ofast")
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define uni(e) e.erase(unique(e.begin(),e.end()),e.end())
#define double long double
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
int INF=1e10;
int MOD=1e9+7;
template<class T> void out(T a){cout<<a<<'\n';}
template<class T> void yesno(T b){if(b)out("yes");else out("no");}
template<class T> void YesNo(T b){if(b)out("Yes");else out("No");}
template<class T> void YESNO(T b){if(b)out("YES");else out("NO");}
template<class T> void noyes(T b){if(b)out("no");else out("yes");}
template<class T> void NoYes(T b){if(b)out("No");else out("Yes");}
template<class T> void NOYES(T b){if(b)out("NO");else out("YES");}
int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
}
int kurai(int a,int b){
  int m=pow(10,b),n=pow(10,b-1);
  return (a%m)/n;
}
int ketawa(int a){
  int k=0;
  rep(i,keta(a)){
  k+=kurai(a,i+1);
  }
  return k;
}
int gcd(int a,int b){
  if(a%b==0)
    return b;
  return gcd(b,a%b);
}
int lcm(int a,int b){
    return a/gcd(a,b)*b;
}
int mid(int a,int b,int c){
  vector<int> k(3);
  k[0]=a;k[1]=b;k[2]=c;
  sort(all(k));
  return k[1];
}
bool sosuu(int a){
  bool b=1;
  if(a<=1)
    return 0;
  else{
  rep1(i,sqrt(a)-1){
  if(a%(i+1)==0)
  b=0;
  }
  return b;
  }
}
int modpow(int a,int b,int m=MOD){
 if(!b)return 1; if(b&1)return modpow(a,b-1,m)*a%m;
 int memo = modpow(a,b>>1,m);
 return memo*memo%m;
}
int fact_mod(int n) {
    int f=1; 
for(int i=2;i<n+1;i++) f=f*(i%MOD)% MOD;
    return f;
}
int mod_pow(int x,int n) {
    int res=1;
    while(n>0){
        if(n&1) res=(res*x)%MOD; 
        x=(x*x)%MOD;        
n>>=1; 
    }
    return res;
}
int c_mod(int n, int r) {
    if(r>n-r) r=n-r;
    if(r==0) return 1;
    int a=1;
    rep(i,r) 
a=a*((n-i)%MOD)%MOD;
    int b=mod_pow(fact_mod(r), MOD-2);
    return (a%MOD)*(b%MOD)%MOD;
}
signed main(){
  int a;
  cin>>a;
  out(360/gcd((180-a),180))
}


Compiler output:
a.cc: In function 'int main()':
a.cc:99:28: error: expected ';' before '}' token
   99 |   out(360/gcd((180-a),180))
      |                            ^
      |                            ;
  100 | }
      | ~
Language: C++

#pragma GCC optimize("Ofast")
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define uni(e) e.erase(unique(e.begin(),e.end()),e.end())
#define double long double
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
int INF=1e10;
int MOD=1e9+7;
template<class T> void out(T a){cout<<a<<'\n';}
template<class T> void yesno(T b){if(b)out("yes");else out("no");}
template<class T> void YesNo(T b){if(b)out("Yes");else out("No");}
template<class T> void YESNO(T b){if(b)out("YES");else out("NO");}
template<class T> void noyes(T b){if(b)out("no");else out("yes");}
template<class T> void NoYes(T b){if(b)out("No");else out("Yes");}
template<class T> void NOYES(T b){if(b)out("NO");else out("YES");}
int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
}
int kurai(int a,int b){
  int m=pow(10,b),n=pow(10,b-1);
  return (a%m)/n;
}
int ketawa(int a){
  int k=0;
  rep(i,keta(a)){
  k+=kurai(a,i+1);
  }
  return k;
}
int gcd(int a,int b){
  if(a%b==0)
    return b;
  return gcd(b,a%b);
}
int lcm(int a,int b){
    return a/gcd(a,b)*b;
}
int mid(int a,int b,int c){
  vector<int> k(3);
  k[0]=a;k[1]=b;k[2]=c;
  sort(all(k));
  return k[1];
}
bool sosuu(int a){
  bool b=1;
  if(a<=1)
    return 0;
  else{
  rep1(i,sqrt(a)-1){
  if(a%(i+1)==0)
  b=0;
  }
  return b;
  }
}
int modpow(int a,int b,int m=MOD){
 if(!b)return 1; if(b&1)return modpow(a,b-1,m)*a%m;
 int memo = modpow(a,b>>1,m);
 return memo*memo%m;
}
int fact_mod(int n) {
    int f=1; 
for(int i=2;i<n+1;i++) f=f*(i%MOD)% MOD;
    return f;
}
int mod_pow(int x,int n) {
    int res=1;
    while(n>0){
        if(n&1) res=(res*x)%MOD; 
        x=(x*x)%MOD;        
n>>=1; 
    }
    return res;
}
int c_mod(int n, int r) {
    if(r>n-r) r=n-r;
    if(r==0) return 1;
    int a=1;
    rep(i,r) 
a=a*((n-i)%MOD)%MOD;
    int b=mod_pow(fact_mod(r), MOD-2);
    return (a%MOD)*(b%MOD)%MOD;
}
signed main(){
  int a;
  cin>>a;
  out(360/gcd((180-a),360))
}

Compiler output:
a.cc: In function 'int main()':
a.cc:99:28: error: expected ';' before '}' token
   99 |   out(360/gcd((180-a),360))
      |                            ^
      |                            ;
  100 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int X;
    int ans;
    cin	>> X;
  	if(1 <= X && X <= 179){
  		ans = 360/x;
  		cout << ans << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: 'x' was not declared in this scope
    9 |                 ans = 360/x;
      |                           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{
	int x;
	cin>>x;
	cout<<360 / _gcd(360,x)<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:7:21: error: '_gcd' was not declared in this scope
    7 |         cout<<360 / _gcd(360,x)<<endl;
      |                     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define mod (ll)998244353
#define forn(i,k,n) for(ll i=k;i<n;i++)
#define v(ll) vector<ll>
#define vl(a,n,ll,k) vector<ll> a(n,k)
#define vll(a,n,m,ll,k) vector<vector<ll>> a(n,vector<ll>(m,k))
#define MAX 1000000
#define ed '\n'
#define pb push_back
#define mkp make_pair
#define lint ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
const int MOD = 1000000007;
int lcm(int a, int b)
{
  return(a*b/__gcd(a,b));
}
int main()
{
	lint;
	ll x;
	cin>>x;
	ll ans=lcm(n,360)/n;
	cout<<ans<<ed;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:20: error: 'n' was not declared in this scope
   24 |         ll ans=lcm(n,360)/n;
      |                    ^
Language: C++

#include <cstdio>
ing gcd(int a,int b){return !b?a:gcd(b,a%b);}
int main()
{
	int x;scanf("%d",&x);
  	printf("%d",360/gcd(x,360));
  	return 0;
}

Compiler output:
a.cc:2:1: error: 'ing' does not name a type; did you mean 'int'?
    2 | ing gcd(int a,int b){return !b?a:gcd(b,a%b);}
      | ^~~
      | int
a.cc: In function 'int main()':
a.cc:6:25: error: 'gcd' was not declared in this scope
    6 |         printf("%d",360/gcd(x,360));
      |                         ^~~
Language: C

include <stdio.h>
int input;

scanf("%d", &input);
printf("%d\n", 360 / input);


Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c:4:7: error: expected declaration specifiers or '...' before string constant
    4 | scanf("%d", &input);
      |       ^~~~
main.c:4:13: error: expected declaration specifiers or '...' before '&' token
    4 | scanf("%d", &input);
      |             ^
main.c:5:8: error: expected declaration specifiers or '...' before string constant
    5 | printf("%d\n", 360 / input);
      |        ^~~~~~
main.c:5:16: error: expected declaration specifiers or '...' before numeric constant
    5 | printf("%d\n", 360 / input);
      |                ^~~
Language: C

int input;

scanf("%d", &input);
printf("%d\n", 360 / input);

Compiler output:
main.c:3:7: error: expected declaration specifiers or '...' before string constant
    3 | scanf("%d", &input);
      |       ^~~~
main.c:3:13: error: expected declaration specifiers or '...' before '&' token
    3 | scanf("%d", &input);
      |             ^
main.c:4:8: error: expected declaration specifiers or '...' before string constant
    4 | printf("%d\n", 360 / input);
      |        ^~~~~~
main.c:4:16: error: expected declaration specifiers or '...' before numeric constant
    4 | printf("%d\n", 360 / input);
      |                ^~~
Language: C

#include <stdio.h>
int main()
  {
  int x;
  scanf ("%d",&x);
  for (int i=1;((x*i) % 360) != 0;i++)
    {
    }
  printf ("%d",i);
  }

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

#include <bits/stdc++.h>
//#include <stdlib.h>
 
using namespace std;
/*
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")

const int MAX_MEM = 6e8;
int mpos = 0;
char mem[MAX_MEM];
inline void * operator new ( size_t n ) {
char *res = mem + mpos;
mpos += n;
assert(mpos <= MAX_MEM);
return (void *)res;
}
inline void operator delete ( void * ) { }
*/
#define DIM 1000009
#define INF ((long long)1e18+9ll)
#define pairll pair<long long,long long>
#define fi first
#define se second
#define ld long double
#define amen exit(0)
#define fast ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0)
#define endl '\n'
#define y1 trymax_lox
#define y2 dsfjkjfkkv
#define MODULO 1000000007
#define pi acos(-1)
#define p 29

long long i,j,k,l,n,m,res;

long long hsh[DIM],d[DIM],cnt[DIM];

int main(){
  /*  #ifndef LOCAL
        freopen("robot.in","r",stdin);
        freopen("robot.out","w",stdout);
    #endif*/
 
    //fast;	

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

    amen;
}


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

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

#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")

const int MAX_MEM = 6e8;
int mpos = 0;
char mem[MAX_MEM];
inline void * operator new ( size_t n ) {
char *res = mem + mpos;
mpos += n;
assert(mpos <= MAX_MEM);
return (void *)res;
}
inline void operator delete ( void * ) { }

#define DIM 1000009
#define INF ((long long)1e18+9ll)
#define pairll pair<long long,long long>
#define fi first
#define se second
#define ld long double
#define amen exit(0)
#define fast ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0)
#define endl '\n'
#define y1 trymax_lox
#define y2 dsfjkjfkkv
#define MODULO 1000000007
#define pi acos(-1)
#define p 29

long long i,j,k,l,n,m,res;

long long hsh[DIM],d[DIM],cnt[DIM];

int main(){
  /*  #ifndef LOCAL
        freopen("robot.in","r",stdin);
        freopen("robot.out","w",stdout);
    #endif*/
 
    //fast;	

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

    amen;
}


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

#include <cstdio>
 

using namespace std;

int main(void){
  int N,position=0;

  cin>>N;
  while(1){
    if(360 % N==0){
      N=360/N;
      cout<<N+position;
      break;
    }
    N=N+N;
    if(N>360)
      N=N-360;
    position++;
  }
  

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin>>N;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | 
a.cc:13:7: error: 'cout' was not declared in this scope
   13 |       cout<<N+position;
      |       ^~~~
a.cc:13:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <cstdio>
 

using namespace std;

int main(void){
  int N,position=0;

  scanf("% d", &N );
  while(1){
    if(360 % N==0){
      N=360/N;
      cout<<N+position;
      break;
    }
    N=N+N;
    if(N>360)
      N=N-360;
    position++;
  }
  

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: 'cout' was not declared in this scope
   13 |       cout<<N+position;
      |       ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 |
Language: C++

#include <cstdio>
 

using namespace std;

int main(void){
  int N,position=0;

  scanf("% d", &N );
  while(1){
    if(360 % x==0){
      x=360/x;
      cout<<x+position;
      break;
    }
    N=N+N;
    if(N>360)
      N=N-360;
    position++;
  }
  

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: 'x' was not declared in this scope
   11 |     if(360 % x==0){
      |              ^
a.cc:13:7: error: 'cout' was not declared in this scope
   13 |       cout<<x+position;
      |       ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 |
Language: C++

// C++ 14
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define loop(__x, __start, __end) for(int __x = __start; __x < __end; __x++)
#define chmax(x,y) (x = max(x, y))

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'i' was not declared in this scope
   11 |   return 0;i
      |            ^
Language: C++

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

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

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

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

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

int main()
{
  int x;
  cin >> x;
  for (int i=1; i < 361; ++i)
  {
    if ((x * i) % 360 == 0)
    {
      cout << i << endl;
      return 0;
    }
  }
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namsespace'
    2 | using namsespace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:12:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |       cout << i << endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |       cout << i << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

#include<iostream>
#include<vector>
#include<algorithm>
#include<set>
#include<deque>
#include<string>
using namespace std;
#define ll long long
#define pb push_back
#define end "\n"
#define lar 1000000007;
int main()
{
    ll i,cnt=1;
    cin>>i;
    while(1){
        if((i*cnt)%360==0)break;
        cnt+=1;
    }
    cout<<cnt;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<vector>
^
Main.java:3: error: illegal character: '#'
#include<algorithm>
^
Main.java:4: error: illegal character: '#'
#include<set>
^
Main.java:5: error: illegal character: '#'
#include<deque>
^
Main.java:6: error: illegal character: '#'
#include<string>
^
Main.java:8: error: illegal character: '#'
#define ll long long
^
Main.java:8: error: class, interface, enum, or record expected
#define ll long long
        ^
Main.java:9: error: illegal character: '#'
#define pb push_back
^
Main.java:10: error: illegal character: '#'
#define end "\n"
^
Main.java:11: error: illegal character: '#'
#define lar 1000000007;
^
Main.java:15: error: not a statement
    cin>>i;
       ^
Main.java:20: error: not a statement
    cout<<cnt;
        ^
Main.java:12: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
14 errors
Language: C++


	#include <bits/stdc++.h>
	#include <cstdio>
	#include <cstring>
	#include <cmath>
	#include <cstring>
	#include <chrono>
	#include <complex>
	#define endl "\n"
	#define ll long long int
	#define vi vector<int>
	#define vll vector<ll>
	#define vvi vector < vi >
	#define pii pair<int,int>
	#define pll pair<long long, long long>
	#define mod 1000000007
	#define inf 1000000000000000001;
	#define all(c) c.begin(),c.end()
	#define sz(v) ((ll)(v).size())
	#define mp(x,y) make_pair(x,y)
	#define mem(a,val) memset(a,val,sizeof(a))
	#define eb emplace_back
	#define pb push_back
	#define f first
	#define s second
	#define forn(i,n) for (ll i=0; i<(n); ++i)
	#define fornd(i,n) for (ll i=(n)-1; i>=0; --i)
	#define forab(i,a,b) for (ll i=(a); i<=(b); ++i)
	#define fast_io ios_base::sync_with_stdio(false),cin.tie(NULL),cout.tie(NULL)
	using namespace std;
		ll gcd( ll a, ll b )
		{
			if(b==0)
			{
			     return a;
			}
			else
			{
			     return gcd( b, a%b );
			}
		}
		ll lcm (ll a, ll b)
		{
			return (a*b)/gcd(a,b);
		}
	void solve()
	{
		ll x;cin>>x;

		cout<<lcm((360,(x)))<<endl;
	}
	int main()
	{	
		#ifndef ONLINE_JUDGE
		freopen("input.txt","r",stdin);
		freopen("output.txt","w",stdout);
		#endif
		fast_io;
		int T=1;
		//cin>>T;
		// cin.ignore(); must be there when using getline(cin, s)
		while(T--)
		{
			solve();
		}
		return 0;
	}


Compiler output:
a.cc: In function 'void solve()':
a.cc:50:26: error: no matching function for call to 'lcm(long long int&)'
   50 |                 cout<<lcm((360,(x)))<<endl;
      |                       ~~~^~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:58,
                 from a.cc:2:
/usr/include/c++/14/numeric:188:5: note: candidate: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Mn, _Nn> std::lcm(_Mn, _Nn)'
  188 |     lcm(_Mn __m, _Nn __n) noexcept
      |     ^~~
/usr/include/c++/14/numeric:188:5: note:   candidate expects 2 arguments, 1 provided
a.cc:42:20: note: candidate: 'long long int lcm(long long int, long long int)'
   42 |                 ll lcm (ll a, ll b)
      |                    ^~~
a.cc:42:20: note:   candidate expects 2 arguments, 1 provided
Language: C

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

int gcd(int x, int y){
    return y==0?x:gcd(y,x%y);
}

int main(){
    int x;
    cin >> x;
    cout << (360/ gcd(360, x));
}

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 <bits/stdc++.h>
using namespace std;
int x;
int main() {
	cin >> x;
	for (int i = 1;; i ++)
		if (i * x % 360 == 0) 
			return !printf("%d\n", i);
}

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<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin>>n;
  int i=1;
  while(s<360){
    s=n*i;
    i++;
  }
  
  cout<<i-1;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 's' was not declared in this scope
    7 |   while(s<360){
      |         ^
Language: C++

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

int main()
{
    ll t,n,i,j,k;
    
        ll i;
        cin>>n;
        cout<<360/n<<endl;
    
    return 0;
}







Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: redeclaration of 'long long int i'
    9 |         ll i;
      |            ^
a.cc:7:12: note: 'long long int i' previously declared here
    7 |     ll t,n,i,j,k;
      |            ^
Language: C++

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


#define li          long long int
#define rep(i,to)   for(li i=0;i<((li)(to));i++)
#define repp(i,start,to)    for(li i=(li)(start);i<((li)(to));i++)
#define pb          push_back
#define sz(v)       ((li)(v).size())
#define bgn(v)      ((v).begin())
#define eend(v)     ((v).end())
#define allof(v)    (v).begin(), (v).end()
#define dodp(v,n)       memset(v,(li)n,sizeof(v))
#define bit(n)      (1ll<<(li)(n))
#define mp(a,b)     make_pair(a,b)
#define rin rep(i,n)
#define EPS 1e-12
#define ETOL 1e-8
#define MOD 1000000007
typedef pair<li, li> PI;

#define INF bit(60)

#define DBGP 1


#define idp if(DBGP)
#define F first
#define S second
#define p2(a,b)     idp cout<<a<<"\t"<<b<<endl
#define p3(a,b,c)       idp cout<<a<<"\t"<<b<<"\t"<<c<<endl
#define p4(a,b,c,d)     idp cout<<a<<"\t"<<b<<"\t"<<c<<"\t"<<d<<endl
#define p5(a,b,c,d,e)       idp cout<<a<<"\t"<<b<<"\t"<<c<<"\t"<<d<<"\t"<<e<<endl
#define p6(a,b,c,d,e,f)     idp cout<<a<<"\t"<<b<<"\t"<<c<<"\t"<<d<<"\t"<<e<<"\t"<<f<<endl
#define p7(a,b,c,d,e,f,g)       idp cout<<a<<"\t"<<b<<"\t"<<c<<"\t"<<d<<"\t"<<e<<"\t"<<f<<"\t"<<g<<endl
#define p8(a,b,c,d,e,f,g,h)     idp cout<<a<<"\t"<<b<<"\t"<<c<<"\t"<<d<<"\t"<<e<<"\t"<<f<<"\t"<<g<<"\t"<<h<<endl
#define p9(a,b,c,d,e,f,g,h,i)       idp cout<<a<<"\t"<<b<<"\t"<<c<<"\t"<<d<<"\t"<<e<<"\t"<<f<<"\t"<<g<<"\t"<<h<<"\t"<<i<<endl
#define p10(a,b,c,d,e,f,g,h,i,j)        idp cout<<a<<"\t"<<b<<"\t"<<c<<"\t"<<d<<"\t"<<e<<"\t"<<f<<"\t"<<g<<"\t"<<h<<"\t"<<i<<"\t"<<j<<endl
#define foreach(it,v)   for(__typeof((v).begin()) it=(v).begin(); it!=(v).end(); ++it)
#define p2p(x)      idp p2((x).F, (x).S)
#define dump(x,n)   idp{rep(i,n){cout<<x[i]<<" ";}puts("");}
#define dump2(x,n)  idp{rep(i,n){cout<<"["<<x[i].F<<" , "<<x[i].S<<"] ";}puts("");}
#define dumpi(x)    idp{foreach(it, x){cout<<(*it)<<" ";}puts("");}
#define dumpi2(x)   idp{foreach(it, x){cout<<"["<<(it)->F<<" , "<<(it)->S<<"] ";}puts("");}

#define read2d(a,w,h)   rep(i,h)rep(j,w)cin>>a[i][j]
#define dump2d(a,w,h)   rep(i,h){rep(j,w)cout<<a[i][j]<<" ";puts("");}

typedef pair<li, li> PI;


int main() {
    li a;
    cin >> a;
    cout << 360 / __gcd(a, 360) << endl;

    return 0;
}

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

#include <bits/stdc++.h>
typedef long long ll;
#define forn(i, start, end) for (ll i = start; i < ll(end); i++)
#define input(arr, n) forn(i, 0, n) cin >> arr[i];
#define MOD 1000000007
#define vll vector<ll>
#define vpll vector<pair<ll,ll>>
#define vvll vector<vector<ll>>
#define mll map<ll, ll>
#define mcl map<char, ll>
#define sc set<char>
#define sll set<ll>
#define ssll stack<ll>
#define CHK(param) cout << #param << " is : " << param << "\n";
#define pb push_back
#define ppb pop_back
#define mk make_pair
#define f first
#define s second
#define all(x) (x).begin(), (x).end()
#define LAUV                          \
    ios_base::sync_with_stdio(false); \
    cin.tie(NULL);
#define TC       \
    ll TTTT;     \
    cin >> TTTT; \
    while (TTTT--)
using namespace std;

int32_t main()
{
    LAUV;
    TC
    {
        ll x;
        cin >> x;
        ll k=1;
        while((k*x)%360!=0){
            k++;
        }
        cout<<k<<'\n';
    }
    return 0;
}#include <bits/stdc++.h>
typedef long long ll;
#define forn(i, start, end) for (ll i = start; i < ll(end); i++)
#define input(arr, n) forn(i, 0, n) cin >> arr[i];
#define MOD 1000000007
#define vll vector<ll>
#define vpll vector<pair<ll,ll>>
#define vvll vector<vector<ll>>
#define mll map<ll, ll>
#define mcl map<char, ll>
#define sc set<char>
#define sll set<ll>
#define ssll stack<ll>
#define CHK(param) cout << #param << " is : " << param << "\n";
#define pb push_back
#define ppb pop_back
#define mk make_pair
#define f first
#define s second
#define all(x) (x).begin(), (x).end()
#define LAUV                          \
    ios_base::sync_with_stdio(false); \
    cin.tie(NULL);
#define TC       \
    ll TTTT;     \
    cin >> TTTT; \
    while (TTTT--)
using namespace std;

int32_t main()
{
    LAUV;
    TC
    {
        ll x;
        cin >> x;
        ll k=1;
        while((k*x)%360!=0){
            k++;
        }
        cout<<k<<'\n';
    }
    return 0;
}

Compiler output:
a.cc:44:2: error: stray '#' in program
   44 | }#include <bits/stdc++.h>
      |  ^
a.cc:44:3: error: 'include' does not name a type
   44 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:73:9: error: redefinition of 'int32_t main()'
   73 | int32_t main()
      |         ^~~~
a.cc:30:9: note: 'int32_t main()' previously defined here
   30 | int32_t main()
      |         ^~~~
Language: C++

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

#define INX(x) (cin >> x)
#define INXV(vec, cnt) for(ll i; i < cnt; i++) INX(vec[i])
#define OUTX(x) (cout << x << endl)
#define OUTXV(vec) for(ll i; i < (ll)vec.size(); i++) OUTX(vec[i])

#define ADD emplace_back
#define MP make_pair


int main()
{
    ll X;
    INX(X);

    //ユークリッドの互除法で360との最大公約数を求める
    ll B = 360;
    ll A = X;
    ll r = 0;
    while(true)
    {
        r = B % A;
        if(r == 0)
        {
            //このときのAが最大公約数
            OUTX(360 / A);
            break;
        }
        else
        {
            B = A;
            A = r;
        }
    }
    


    int wait;
    INX(wait); //結果確認用の待ち（提出時に消してね）

    return 0;
}
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;

#define INX(x) (cin >> x)
#define INXV(vec, cnt) for(ll i; i < cnt; i++) INX(vec[i])
#define OUTX(x) (cout << x << endl)
#define OUTXV(vec) for(ll i; i < (ll)vec.size(); i++) OUTX(vec[i])

#define ADD emplace_back
#define MP make_pair


int main()
{
    ll X;
    INX(X);

    //ユークリッドの互除法で360との最大公約数を求める
    ll B = 360;
    ll A = X;
    ll r = 0;
    while(true)
    {
        r = B % A;
        if(r == 0)
        {
            //このときのAが最大公約数
            OUTX(360 / A);
            break;
        }
        else
        {
            B = A;
            A = r;
        }
    }
    


    return 0;
}


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

#include<stdio.h>
int IN(void)
{
  int x=0,f=0,c=getchar();while(c<48||c>57){f^=c==45,c=getchar();}
  while(c>47&&c<58){x=x*10+c-48,c=getchar();}return f?-x:x;
}
int Deg(const int a){int b=360;while(!(b%a)){b+=360;}return b;}
int main(void){int X=IN();return printf("%d\n",Deg(X)/X,0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:58: error: expected ')' before ';' token
    8 | int main(void){int X=IN();return printf("%d\n",Deg(X)/X,0;}
      |                                        ~                 ^
      |                                                          )
Language: C++

#include <bits/stdc++.h>
using namespace std;
constexpr auto MOD = 1000000007;
constexpr int INF = 1e9;
constexpr long long LINF = 1e18;
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
typedef pair<int, int> PII;
typedef pair<ll, ll> PLL;
typedef vector<int> VI;
typedef vector<ll> VLL;

string s;
long long n, m;

int gcm(int a, int b){
  if (!a || !b)return -1;
  if (a < b){
    a = a ^ b;b = a ^ b;a = a ^ b;
    }if (!(a % b))return b;
  return gcm(a % b, b);
}
long long gcm(long long a, long long b){
  if (!a || !b)return -1;
  if (a < b){
    a = a ^ b;b = a ^ b;a = a ^ b;
  }if (!(a % b))return b;
  return gcm(a % b, b);
}


int main()
{

  cin >> n;
  cout<<n/gcm(n, 360)<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:14: error: call of overloaded 'gcm(long long int&, int)' is ambiguous
   36 |   cout<<n/gcm(n, 360)<<endl;
      |           ~~~^~~~~~~~
a.cc:16:5: note: candidate: 'int gcm(int, int)'
   16 | int gcm(int a, int b){
      |     ^~~
a.cc:23:11: note: candidate: 'long long int gcm(long long int, long long int)'
   23 | long long gcm(long long a, long long b){
      |           ^~~
Language: C++

#include<iostream>
#include<queue>
#include<string>
#include<cmath>
#include<cstdio>
#include<cctype>
#include<cstring>
#include<iomanip>
#include<cstdlib>
#include<ctime>
#include<set>
#include<map>
#include<utility>
#include<vector>
#include<stack>
#include<sstream>
#include<algorithm>
using namespace std;
/****************************/
#define ll long long
#define vi vector<int>
#define pii pair<int,int>
#define vpii vector<pair<int,int> >
#define qi queue<int>
#define mii map<int,int>
#define msi map<string,int>
/****************************/
#define rep(i,n) for(ll i=0;i<(n);i++)
#define rep2(i,n) for(ll i=(n)-1;i>=0;i--)
#define rep3(i,a,n) for(ll i=(a);i<(n);i++)
#define mp make_pair
#define pb push_back
#define st first
#define nd second
#define pi 3.1415926535897932384626433832795
#define zero(n) memset(n,0,sizeof(n));
#define SZ(n) n.size()
#define ss st.st
#define sn st.nd
#define bod 100000007
/****************************/
using namespace std;
int now;
int ans;
int n;
int main()
{
	cin>>n;
	while(1)
	{
		cnt+=n;
		ans++;
		if(cnt%360==0)
		{
			cout<<ans;
			return 0;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
   51 |                 cnt+=n;
      |                 ^~~
      |                 int
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
const long long INF=1e9+5;
const string alp="abcdefghijklmnopqrstuvwxyg"; //26
const string ALP="ABCDEFGHIJKLMNOPQRSTUVWXYG";
typedef long long ll;

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

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

#include<iostream>
using namespace std;

typedef long long int ll;
ll GCD(ll x,ll y){if(x%y==0)return y;else return GCD(y,x%y);}
ll LCM(ll x,ll y){return x*y/GCD(x,y);}

int main(){
	ll int X;
	cin>>X;
	cout<<LCM(X,360)/X;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: two or more data types in declaration of 'X'
    9 |         ll int X;
      |         ^~
a.cc:10:14: error: 'X' was not declared in this scope
   10 |         cin>>X;
      |              ^
Language: C

#include <bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp>
#define rep(i,m,n) for(int i=m;i<n;i++)
#define co(n) cout<<n<<endl
#define all(n) (n).begin(),(n).end()
#define pb(n,m) n.push_back(m)
#define fix(n) cout<<fixed<<setprecision(n);
using namespace std;
//using bint=boost::multiprecision::cpp_int;
typedef long long ll;
typedef unsigned long long ull;

pair<int,int> func(pair<int,int> p){
  bool f=false;
  if(p.first<p.second){
    swap(p.first,p.second);
    f=true;
  }
  rep(i,1,p.second+1){
    if(p.second%i==0 && p.first%(p.second/i)==0){
      p.first/=p.second/i;
      p.second/=p.second/i;
      if(f==true) swap(p.first,p.second);
      return p;
    }
  }
  if(f==true) swap(p.first,p.second);
  return p;
}

int main(){
  int a,b=360,r; cin>>a;
  pair<int,int> p;
  p.first=a; p.second=b; p=func(p);
  if(p.first==1) co(b/a);
  else co(p.first*p.second);
  
  
  return 0;
}

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


Compiler output:
a.cc:3:1: error: 'typedeflong' does not name a type; did you mean 'typedef'?
    3 | typedeflong long ll;
      | ^~~~~~~~~~~
      | typedef
a.cc: In function 'int main()':
a.cc:5:1: error: 'll' was not declared in this scope
    5 | ll n;
      | ^~
a.cc:6:8: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin>>n;
      |        ^
      |        yn
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main()
{
  int n;
  cin>>n;
  int g=__gcd(n,360);
  cout<<360/g;

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected '}' at end of input
   10 |   cout<<360/g;
      |               ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^