제출 #1294025

#제출 시각아이디문제언어결과실행 시간메모리
1294025ako_aqsin캥거루 (CEOI16_kangaroo)C++20
컴파일 에러
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(); } }

컴파일 시 표준 에러 (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--){
      |           ^~~~~~~~