Submission #1294025

#TimeUsernameProblemLanguageResultExecution timeMemory
1294025ako_aqsinKangaroo (CEOI16_kangaroo)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
#define f first
#define s second
#define pb push_back
#define yes cout << "yes" << endl;
#define YES cout << "YES" << endl;
#define no cout << "no" << endl;
#define NO cout << "NO" << endl;
void never_give_up() {
    int n, s, f;
    cin >> n >> s >> f;
    if(n == 2){
        cout << 1 << endl;
        return;
    }
    n -= 2;
    int k = 1;
    for(int i = 2; i <= n; i++){
        k = k * i % ((int)1e9 + 7);
    }
    cout << k << endl;
}
void You_can_do_it() {
    
}
signed main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    kangaroo.in
    int THE_wasd = 1;               
    //cin >> THE_wasd;
    while(THE_wasd--){
        never_give_up();
        //You_can_do_it();
    }
}

















Compilation message (stderr)

kangaroo.cpp: In function 'int main()':
kangaroo.cpp:33:5: error: 'kangaroo' was not declared in this scope
   33 |     kangaroo.in
      |     ^~~~~~~~
kangaroo.cpp:36:11: error: 'THE_wasd' was not declared in this scope
   36 |     while(THE_wasd--){
      |           ^~~~~~~~