제출 #381893

#제출 시각아이디문제언어결과실행 시간메모리
381893AraragiVepar (COCI21_vepar)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #pragma GCC optimize("00") typedef long long ll; typedef long double ld; typedef unsigned long long ull; typedef pair<int, int> pii; ll time() {return chrono::system_clock().now().time_since_epoch().count();} mt19937 rnd(time()); const int inf = 1e9; const ll inf64 = 1e18; #define ft first #define fin(x) ifstream cin("x.in"); #define fout(x) ofstream cout("x.out"); #define sd second #define pb push_back #define sz(x) (int)x.size() const l MD = ll(1e18); void solve() { int a, b, c, d; cin >> a >> b >> c >> d; ll fst = 1, scd = 1; for (int i = a; i <= b; i++) fst = (fst * i) % MD; for (int i = c; i <= d; i++) scd = (scd * i) % MD; if (scd % fst == 0) cout << "DA\n"; else cout << "NE\n"; } int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); #ifdef _LOCAL_ system("color 2"); #endif // _LOCAL_ int t; cin >> t; while (t--) solve(); }

컴파일 시 표준 에러 (stderr) 메시지

Main.cpp:19:7: error: 'l' does not name a type; did you mean 'ld'?
   19 | const l MD = ll(1e18);
      |       ^
      |       ld
Main.cpp: In function 'void solve()':
Main.cpp:29:27: error: 'MD' was not declared in this scope
   29 |         fst = (fst * i) % MD;
      |                           ^~
Main.cpp:32:27: error: 'MD' was not declared in this scope
   32 |         scd = (scd * i) % MD;
      |                           ^~