Submission #711643

#TimeUsernameProblemLanguageResultExecution timeMemory
711643stevancvBrunhilda’s Birthday (BOI13_brunhilda)C++14
Compilation error
0 ms0 KiB
/*#include <bits/stdc++.h> #define ll long long #define ld long double #define sp ' ' #define en '\n' #define smin(a, b) a = min(a, b) #define smax(a, b) a = max(a, b) using namespace std; const int N = 1e5 + 2; const int M = 1e7 + 2; const int inf = 2e9; vector<int> primes[M]; int sieve[M]; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); for (int i = 2; i < M; i++) { if (sieve[i] != 0) continue; sieve[i] = i; if (i > 4000) continue; for (int j = i * i; j < M; j += i) sieve[j] = i; } for (int i = 2; i < M; i++) { int j = i; while (j > 1) { int x = sieve[j]; while (j % x == 0) j /= x; primes[i].push_back(x); } } return 0; } */

Compilation message (stderr)

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status