Language: C++

#pragma region Macros
#pragma GCC optimize("O3")
#pragma GCC target("avx2,avx")
#pragma GCC optimize("unroll-loops")

#include <bits/stdc++.h>

#define ll long long
#define ld long double
#define rep(i, n) for(ll i = 0; i < n; ++i)
#define rep2(i, a, b) for(ll i = a; i <= b; ++i)
#define rep3(i, a, b) for(ll i = a; i >= b; --i)
#define pii pair<int, int>
#define pll pair<ll, ll>
#define all(v) v.begin(),v.end()
#define pb push_back
#define eb emplace_back
#define vi vector<int>
#define vll vector<ll>
#define vpi vector<pii>
#define vpll vector<pll>
#define fi first
#define se second
#define lb(c, x) distance((c).begin(), lower_bound(all(c), (x)))
#define ub(c, x) distance((c).begin(), upper_bound(all(c), (x)))
#define si(c) (int)(c).size()
#define endl '\n'

#define overload2(_1, _2, name, ...) name
#define vec(type, name, ...) vector<type> name(__VA_ARGS__)
#define VEC(type, name, size)                                                                                                                                  \
    vector<type> name(size);                                                                                                                                   \
    IN(name)
#define vv(type, name, h, ...) vector<vector<type>> name(h, vector<type>(__VA_ARGS__))
#define VV(type, name, h, w)                                                                                                                                   \
    vector<vector<type>> name(h, vector<type>(w));                                                                                                             \
    IN(name)
#define vvv(type, name, h, w, ...) vector<vector<vector<type>>> name(h, vector<vector<type>>(w, vector<type>(__VA_ARGS__)))
#define vvvv(type, name, a, b, c, ...)                                                                                                                         \
    vector<vector<vector<vector<type>>>> name(a, vector<vector<vector<type>>>(b, vector<vector<type>>(c, vector<type>(__VA_ARGS__))))
#define INT(...)                                                                                                                                               \
    int __VA_ARGS__;                                                                                                                                           \
    IN(__VA_ARGS__)
#define LL(...)                                                                                                                                                \
    ll __VA_ARGS__;                                                                                                                                            \
    IN(__VA_ARGS__)
#define ULL(...)                                                                                                                                               \
    ull __VA_ARGS__;                                                                                                                                           \
    IN(__VA_ARGS__)
#define STR(...)                                                                                                                                               \
    string __VA_ARGS__;                                                                                                                                        \
    IN(__VA_ARGS__)
#define CHR(...)                                                                                                                                               \
    char __VA_ARGS__;                                                                                                                                          \
    IN(__VA_ARGS__)
#define DBL(...)                                                                                                                                               \
    double __VA_ARGS__;                                                                                                                                        \
    IN(__VA_ARGS__)
#define LD(...)                                                                                                                                                \
    ld __VA_ARGS__;                                                                                                                                            \
    IN(__VA_ARGS__)

int scan() { return getchar(); }
void scan(int &a) { cin >> a; }
void scan(long long &a) { cin >> a; }
void scan(char &a) { cin >> a; }
void scan(double &a) { cin >> a; }
void scan(long double &a) { cin >> a; }
void scan(string &a) { cin >> a; }
template <class T> void scan(vector<T> &);
template <class T> void scan(vector<T> &a) {
    for(auto &i : a) scan(i);
}
template <class T> void scan(T &a) { cin >> a; }
void IN() {}
template <class Head, class... Tail> void IN(Head &head, Tail &... tail) {
    scan(head);
    IN(tail...);
}
string stin() {
    string s;
    cin >> s;
    return s;
}
vi iota(int n) {
    vi a(n);
    iota(all(a), 0);
    return a;
}
template <class T> void UNIQUE(vector<T> &x) {
    sort(all(x));
    x.erase(unique(all(x)), x.end());
}
int in() {
    int x;
    cin >> x;
    return x;
}
ll lin() {
    unsigned long long x;
    cin >> x;
    return x;
}
void print() { putchar(' '); }
void print(bool a) { cout << a; }
void print(int a) { cout << a; }
void print(long long a) { cout << a; }
void print(char a) { cout << a; }
void print(string &a) { cout << a; }
void print(double a) { cout << a; }

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template <class T> using pq = priority_queue<T>;
template <class T> using pqg = priority_queue<T, vector<T>, greater<T>>;
template <class T> void print(const vector<T> &);
template <class T, size_t size> void print(const array<T, size> &);
template <class T, class L> void print(const pair<T, L> &p);
template <class T, size_t size> void print(const T (&)[size]);
template <class T> void print(const vector<T> &a) {
 
    if(a.empty()) return;
    print(a[0]);
    for(auto i = a.begin(); ++i != a.end();) {
        cout << " ";
        print(*i);
    }
    cout << endl;
}
template <class T> void print(const deque<T> &a) {
 
    if(a.empty()) return;
    print(a[0]);
    for(auto i = a.begin(); ++i != a.end();) {
        cout << " ";
        print(*i);
    }
}
template <class T, size_t size> void print(const array<T, size> &a) {
    print(a[0]);
    for(auto i = a.begin(); ++i != a.end();) {
        cout << " ";
        print(*i);
    }
}
template <class T, class L> void print(const pair<T, L> &p) {
    cout << '(';
    print(p.first);
    cout << ",";
    print(p.second);
    cout << ')';
}
template <class T> void print(set<T> &x) {
    for(auto e : x) print(e), cout << " ";
    cout << endl;
}
template <class T> void print(multiset<T> &x) {
    for(auto e : x) print(e), cout << " ";
    cout << endl;
}
template <class T, size_t size> void print(const T (&a)[size]) {
    print(a[0]);
    for(auto i = a; ++i != end(a);) {
        cout << " ";
        print(*i);
    }
}
template <class T> void print(const T &a) { cout << a; }
int out() {
    putchar('\n');
    return 0;
}
template <class T> int out(const T &t) {
    print(t);
    putchar('\n');
    return 0;
}
template <class Head, class... Tail> int out(const Head &head, const Tail &... tail) {
    print(head);
    putchar(' ');
    out(tail...);
    return 0;
}
vector<pll> factor(ll x) {
    vector<pll> ans;
    for(ll i = 2; i * i <= x; i++)
 
        if(x % i == 0) {
            ans.push_back({i, 1});
            while((x /= i) % i == 0) ans.back().second++;
        }
 
    if(x != 1) ans.push_back({x, 1});
    return ans;
}
template <class T> vector<T> divisor(T x) {
    vector<T> ans;
    for(T i = 1; i * i <= x; i++)
 
        if(x % i == 0) {
            ans.pb(i);
 
            if(i * i != x) ans.pb(x / i);
        }
    return ans;
}
template <typename T> void zip(vector<T> &x) {
    vector<T> y = x;
    sort(all(y));
    for(int i = 0; i < x.size(); ++i) { x[i] = lb(y, x[i]); }
}
int popcount(ll x) { return __builtin_popcountll(x); }
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int rnd(int n) { return uniform_int_distribution<int>(0, n - 1)(rng); }
ll rndll(ll n) { return uniform_int_distribution<ll>(0, n - 1)(rng); }
template <typename T> void shuffle(vector<T> &v) {
    rep3(i, v.size() - 1, 1) { swap(v[i], v[rnd(i)]); }
}
vector<string> YES{"NO", "YES"};
vector<string> Yes{"No", "Yes"};
vector<string> yes{"no", "yes"};
#define ios ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
struct Setup_io {
    Setup_io() {
        ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
        cout << fixed << setprecision(15);
    }
} setup_io;
#pragma endregion

using namespace std;

  
const ll MOD=1e9+7;
const ll MOD2=998244353;
const ll INF=1e18;
const double PI=acos(-1);

int dx[8] = {1,0,-1,0,1,1,-1,-1};
int dy[8] = {0,1,0,-1,-1,1,1,-1};
 
const int MAX=510000;


int main(){
  cin.tie(0);
  ios::sync_with_stdio(false); 
  
  INT(n,x,t);
  cout << ((n+x-1)/x)*t << endl;
  return 0;
}


Compiler output:
a.cc: In function 'void scan(int&)':
a.cc:64:21: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   64 | void scan(int &a) { cin >> a; }
      |                     ^~~
      |                     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:6:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc: In function 'void scan(long long int&)':
a.cc:65:27: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   65 | void scan(long long &a) { cin >> a; }
      |                           ^~~
      |                           std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc: In function 'void scan(char&)':
a.cc:66:22: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   66 | void scan(char &a) { cin >> a; }
      |                      ^~~
      |                      std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc: In function 'void scan(double&)':
a.cc:67:24: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   67 | void scan(double &a) { cin >> a; }
      |                        ^~~
      |                        std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc: In function 'void scan(long double&)':
a.cc:68:29: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   68 | void scan(long double &a) { cin >> a; }
      |                             ^~~
      |                             std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc: At global scope:
a.cc:69:6: error: variable or field 'scan' declared void
   69 | void scan(string &a) { cin >> a; }
      |      ^~~~
a.cc:69:11: error: 'string' was not declared in this scope
   69 | void scan(string &a) { cin >> a; }
      |           ^~~~~~
a.cc:69:11: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:69:19: error: 'a' was not declared in this scope
   69 | void scan(string &a) { cin >> a; }
      |                   ^
a.cc:70:25: error: variable or field 'scan' declared void
   70 | template <class T> void scan(vector<T> &);
      |                         ^~~~
a.cc:70:30: error: 'vector' was not declared in this scope
   70 | template <class T> void scan(vector<T> &);
      |                              ^~~~~~
a.cc:70:30: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:70:38: error: expected primary-expression before '>' token
   70 | template <class T> void scan(vector<T> &);
      |                                      ^
a.cc:70:41: error: expected primary-expression before ')' token
   70 | template <class T> void scan(vector<T> &);
      |                                         ^
a.cc:71:25: error: variable or field 'scan' declared void
   71 | template <class T> void scan(vector<T> &a) {
      |                         ^~~~
a.cc:71:30: error: 'vector' was not declared in this scope
   71 | template <class T> void scan(vector<T> &a) {
      |                              ^~~~~~
a.cc:71:30: note: suggested alternatives:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:71:38: error: expected primary-expression before '>' token
   71 | template <class T> void scan(vector<T> &a) {
      |                                      ^
a.cc:71:41: error: 'a' was not declared in this scope
   71 | template <class T> void scan(vector<T> &a) {
      |                                         ^
a.cc: In function 'void scan(T&)':
a.cc:74:38: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   74 | template <class T> void scan(T &a) { cin >> a; }
      |                                      ^~~
      |                                      std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc: At global scope:
a.cc:80:1: error: 'string' does not name a type; did you mean 'stdin'?
   80 | string stin() {
      | ^~~~~~
      | stdin
a.cc:18:12: error: 'vector' does not name a type
   18 | #define vi vector<int>
      |            ^~~~~~
a.cc:85:1: note: in expansion of macro 'vi'
   85 | vi iota(int n) {
      | ^~
a.cc:90:25: error: variable or field 'UNIQUE' declared void
   90 | template <class T> void UNIQUE(vector<T> &x) {
      |                         ^~~~~~
a.cc:90:32: error: 'vector' was not declared in this scope
   90 | template <class T> void UNIQUE(vector<T> &x) {
      |                                ^~~~~~
a.cc:90:32: note: suggested alternatives:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:90:40: error: expected primary-expression before '>' token
   90 | template <class T> void UNIQUE(vector<T> &x) {
      |                                        ^
a.cc:90:43: error: 'x' was not declared in this scope
   90 | template <class T> void UNIQUE(vector<T> &x) {
      |                                           ^
a.cc: In function 'int in()':
a.cc:96:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   96 |     cin >> x;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc: In function 'long long int lin()':
a.cc:101:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
  101 |     cin >> x;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc: In function 'void print(bool)':
a.cc:105:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
  105 | void print(bool a) { cout << a; }
      |                      ^~~~
      |                      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc: In function 'void print(int)':
a.cc:106:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
  106 | void print(int a) { cout << a; }
      |                     ^~~~
      |                     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc: In function 'void print(long long int)':
a.cc:107:27: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
  107 | void print(long long a) { cout << a; }
      |                           ^~~~
      |                           std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc: In function 'void print(char)':
a.cc:108:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
  108 | void print(char a) { cout << a; }
      |                      ^~~~
      |                      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc: At global scope:
a.cc:109:6: error: variable or field 'print' declared void
  109 | void print(string &a) { cout << a; }
      |      ^~~~~
a.cc:109:12: error: 'string' was not declared in this scope
  109 | void print(string &a) { cout << a; }
      |            ^~~~~~
a.cc:109:12: note: suggested alternatives:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:109:20: error: 'a' was not declared in this scope
  109 | void print(string &a) { cout << a; }
      |                    ^
a.cc: In function 'void print(double)':
a.cc:110:24: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
  110 | void print(double a)