Language: C++


// Problem : A - Takahashikun, The Strider
// Contest : AtCoder - AtCoder Grand Contest 046
// URL : https://atcoder.jp/contests/agc046/tasks/agc046_a
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl '\n'
#define vi vector<int>
#define vb vector<bool>
#define pii pair<int,int>
#define mod 1000000007
#define ss second
#define ff first
#define vpii vector<pii>
#define vvpii vector<vpii>
#define vvi vector<vi>
#define pb push_back
#define vs vector<string>
#define all(x) x.begin(),x.end()
#define mii map<int,int>
#define vd vector<double>
#define deb(x) cout<<#x<<" -> "<<x<<endl
const int inf=0x3f3f3f3f3f3f3f3f;
#define MAXN 1000005

int dx[]={0,1,1,1,0,-1,-1,-1};
int dy[]={1,1,0,-1,-1,-1,0,1};

void print(vi &v){
    for(int i=0;i<v.size();i++)cout<<v[i]<<" ";
    cout<<endl;
}

// <--------------------Code Begins Here-------------------->




int32_t main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    int x;
    cin>>x;
    cout<<(360)/x<<endl;
    return 0;
}
// Problem : A - Takahashikun, The Strider
// Contest : AtCoder - AtCoder Grand Contest 046
// URL : https://atcoder.jp/contests/agc046/tasks/agc046_a
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl '\n'
#define vi vector<int>
#define vb vector<bool>
#define pii pair<int,int>
#define mod 1000000007
#define ss second
#define ff first
#define vpii vector<pii>
#define vvpii vector<vpii>
#define vvi vector<vi>
#define pb push_back
#define vs vector<string>
#define all(x) x.begin(),x.end()
#define mii map<int,int>
#define vd vector<double>
#define deb(x) cout<<#x<<" -> "<<x<<endl
const int inf=0x3f3f3f3f3f3f3f3f;
#define MAXN 1000005

int dx[]={0,1,1,1,0,-1,-1,-1};
int dy[]={1,1,0,-1,-1,-1,0,1};

void print(vi &v){
    for(int i=0;i<v.size();i++)cout<<v[i]<<" ";
    cout<<endl;
}

// <--------------------Code Begins Here-------------------->




int32_t main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    int x;
    cin>>x;
    cout<<(360)/x<<endl;
    return 0;
}

Compiler output:
a.cc:79:11: error: redefinition of 'const long long int inf'
   79 | const int inf=0x3f3f3f3f3f3f3f3f;
      |           ^~~
a.cc:28:11: note: 'const long long int inf' previously defined here
   28 | const int inf=0x3f3f3f3f3f3f3f3f;
      |           ^~~
a.cc:82:5: error: redefinition of 'long long int dx []'
   82 | int dx[]={0,1,1,1,0,-1,-1,-1};
      |     ^~
a.cc:31:5: note: 'long long int dx [8]' previously defined here
   31 | int dx[]={0,1,1,1,0,-1,-1,-1};
      |     ^~
a.cc:83:5: error: redefinition of 'long long int dy []'
   83 | int dy[]={1,1,0,-1,-1,-1,0,1};
      |     ^~
a.cc:32:5: note: 'long long int dy [8]' previously defined here
   32 | int dy[]={1,1,0,-1,-1,-1,0,1};
      |     ^~
a.cc:85:6: error: redefinition of 'void print(std::vector<long long int>&)'
   85 | void print(vi &v){
      |      ^~~~~
a.cc:34:6: note: 'void print(std::vector<long long int>&)' previously defined here
   34 | void print(vi &v){
      |      ^~~~~
a.cc:95:9: error: redefinition of 'int32_t main()'
   95 | int32_t main(){
      |         ^~~~
a.cc:44:9: note: 'int32_t main()' previously defined here
   44 | int32_t main(){
      |         ^~~~