Submission #1065478

#TimeUsernameProblemLanguageResultExecution timeMemory
1065478aagiiA Plus B (IOI23_aplusb)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #define ll long long #define pb push_back #define ff first #define ss second #define harderahhh ios::sync_with_stdio(0); cin.tie(0); cout.tie(0) using namespace std; ll x, l, y, t, z, hp, sus1, sus2, g, sus, bruh1, bruh2, dog1, h, dog2, dog, i, p, j, q, m, a[696969], b[696969], c[696969], x1[696969], x2[696969], n, k, d[696969], joy[1005][1005]; string s1, s2, s3, s4, s5, s6, s7, s8, s9, rep1, rep2, rep, s, hsr[696969]; char c1, c2, oon, hi[5][200005], na[1005][1005], cc[696969]; pair <ll, ll> goku[696969]; map <ll, ll> mm; vector <ll> gl; set <ll> wow; bool aa[696969]; int main() { harderahhh; // cin >> n; // while (n--) { cin >> k; for (i = 1; i <= k; i++) { cin >> a[i]; } for (i = 1; i <= k; i++) { cin >> b[i]; } x=1; for (i = 1; i <= k; i++) { for (j = 1; j <= k; j++) { c[x] = a[i]+b[j]; x++; } } sort (c+1, c+x); for (i = 1; i <= k; i++) { cout << c[i] << " "; } // } return 0; }

Compilation message (stderr)

/usr/bin/ld: /tmp/cc1v26Qr.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccXNKGWs.o:aplusb.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cc1v26Qr.o: in function `main':
grader.cpp:(.text.startup+0x271): undefined reference to `smallest_sums(int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status