Language: C++

#include<bits/stdc++.h>
#include<vector>
#include<set>
#include<algorithm>

using namespace std;

#define rep(i,n) for(int i=0; i<(n); i++)
#define T int t, q=0; scanf("%d", &t); while(q++<t)
#define ll long long
#define FAST ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
string s1,s2;
#define N 100001
#define MX 1000000001
vector <ll> v;
map<ll,ll> mp;
set<ll> s;
map<ll,ll> :: iterator itr1, ptr1;
set<ll> :: iterator itr, ptr;


int main()
{


        cin>>n>>x>>t;

        ans=0;
        sum=0;
        while(1)
        {
            ans+=t;

            sum+=x;

            if(sum>=n)break;

        }
        cout<<ans;




    return 0;
}
// Happy Coding  (:
#include<bits/stdc++.h>
#include<vector>
#include<set>
#include<algorithm>

using namespace std;

#define rep(i,n) for(int i=0; i<(n); i++)
#define T int t, q=0; scanf("%d", &t); while(q++<t)
#define ll long long
#define FAST ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
string s1,s2;
#define N 100001
#define MX 1000000001
vector <ll> v;
map<ll,ll> mp;
set<ll> s;
map<ll,ll> :: iterator itr1, ptr1;
set<ll> :: iterator itr, ptr;


int main()
{


        cin>>n>>x>>t;

        ans=0;
        sum=0;
        while(1)
        {
            ans+=t;

            sum+=x;

            if(sum>=n)break;

        }
        cout<<ans;




    return 0;
}
// Happy Coding  (:


Compiler output:
a.cc:59:4: error: redefinition of 'long long int x'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |    ^
a.cc:12:4: note: 'long long int x' previously declared here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |    ^
a.cc:59:6: error: redefinition of 'long long int y'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |      ^
a.cc:12:6: note: 'long long int y' previously declared here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |      ^
a.cc:59:8: error: redefinition of 'long long int z'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |        ^
a.cc:12:8: note: 'long long int z' previously declared here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |        ^
a.cc:59:10: error: redefinition of 'long long int a'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |          ^
a.cc:12:10: note: 'long long int a' previously defined here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |          ^
a.cc:59:14: error: redefinition of 'long long int b'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |              ^
a.cc:12:14: note: 'long long int b' previously defined here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |              ^
a.cc:59:18: error: redefinition of 'long long int c'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                  ^
a.cc:12:18: note: 'long long int c' previously defined here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                  ^
a.cc:59:22: error: redefinition of 'long long int d'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                      ^
a.cc:12:22: note: 'long long int d' previously defined here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                      ^
a.cc:59:26: error: redefinition of 'long long int sum'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                          ^~~
a.cc:12:26: note: 'long long int sum' previously declared here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                          ^~~
a.cc:59:30: error: redefinition of 'long long int ans'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                              ^~~
a.cc:12:30: note: 'long long int ans' previously declared here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                              ^~~
a.cc:59:34: error: redefinition of 'long long int total'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                  ^~~~~
a.cc:12:34: note: 'long long int total' previously declared here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                  ^~~~~
a.cc:59:40: error: redefinition of 'long long int cnt'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                        ^~~
a.cc:12:40: note: 'long long int cnt' previously declared here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                        ^~~
a.cc:59:44: error: redefinition of 'long long int n'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                            ^
a.cc:12:44: note: 'long long int n' previously declared here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                            ^
a.cc:59:46: error: redefinition of 'long long int m'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                              ^
a.cc:12:46: note: 'long long int m' previously declared here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                              ^
a.cc:59:48: error: redefinition of 'long long int k'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                                ^
a.cc:12:48: note: 'long long int k' previously declared here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                                ^
a.cc:59:50: error: redefinition of 'long long int p'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                                  ^
a.cc:12:50: note: 'long long int p' previously declared here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                                  ^
a.cc:59:52: error: redefinition of 'long long int kase'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                                    ^~~~
a.cc:12:52: note: 'long long int kase' previously declared here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                                    ^~~~
a.cc:59:57: error: redefinition of 'long long int i'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                                         ^
a.cc:12:57: note: 'long long int i' previously declared here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                                         ^
a.cc:59:59: error: redefinition of 'long long int t'
   59 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                                           ^
a.cc:12:59: note: 'long long int t' previously declared here
   12 | ll x,y,z,a=0,b=0,c=0,d=0,sum,ans,total,cnt,n,m,k,p,kase,i,t;
      |                                                           ^
a.cc:60:8: error: redefinition of 'std::string s1'
   60 | string s1,s2;
      |        ^~
a.cc:13:8: note: 'std::string s1' previously declared here
   13 | string s1,s2;
      |        ^~
a.cc:60:11: error: redefinition of 'std::string s2'
   60 | string s1,s2;
      |           ^~
a.cc:13:11: note: 'std::string s2' previously declared here
   13 | string s1,s2;
      |           ^~
a.cc:63:13: error: redefinition of 'std::vector<long long int> v'
   63 | vector <ll> v;
      |             ^
a.cc:16:13: note: 'std::vector<long long int> v' previously declared here
   16 | vector <ll> v;
      |             ^
a.cc:64:12: error: redefinition of 'std::map<long long int, long long int> mp'
   64 | map<ll,ll> mp;
      |            ^~
a.cc:17:12: note: 'std::map<long long int, long long int> mp' previously declared here
   17 | map<ll,ll> mp;
      |            ^~
a.cc:65:9: error: redefinition of 'std::set<long long int> s'
   65 | set<ll> s;
      |         ^
a.cc:18:9: note: 'std::set<long long int> s' previously declared here
   18 | set<ll> s;
      |         ^
a.cc:66:24: error: redefinition of 'std::map<long long int, long long int>::iterator itr1'
   66 | map<ll,ll> :: iterator itr1, ptr1;
      |                        ^~~~
a.cc:19:24: note: 'std::map<long long int, long long int>::iterator itr1' previously declared here
   19 | map<ll,ll> :: iterator itr1, ptr1;
      |                        ^~~~
a.cc:66:30: error: redefinition of 'std::map<long long int, long long int>::iterator ptr1'
   66 | map<ll,ll> :: iterator itr1, ptr1;
      |                              ^~~~
a.cc:19:30: note: 'std::map<long long int, long long int>::iterator ptr1' previously declared here
   19 | map<ll,ll> :: iterator itr1, ptr1;
      |                              ^~~~
a.cc:67:21: error: redefinition of 'std::set<long long int>::iterator itr'
   67 | set<ll> :: iterator itr, ptr;
      |                     ^~~
a.cc:20:21: note: 'std::set<long long int>::iterator itr' previously declared here
   20 | set<ll> :: iterator itr, ptr;
      |                     ^~~
a.cc:67:26: error: redefinition of 'std::set<long long int>::iterator ptr'
   67 | set<ll> :: iterator itr, ptr;
      |                          ^~~
a.cc:20:26: note: 'std::set<long long int>::iterator ptr' previously declared here
   20 | set<ll> :: iterator itr, ptr;
      |                          ^~~
a.cc:70:5: error: redefinition of 'int main()'
   70 | int main()
      |     ^~~~
a.cc:23:5: note: 'int main()' previously defined here
   23 | int main()
      |     ^~~~