Submission #1066611

#TimeUsernameProblemLanguageResultExecution timeMemory
1066611aagiiA 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--) { 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]; 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)

aplusb.cpp: In function 'int main()':
aplusb.cpp:20:11: warning: unused variable 'l' [-Wunused-variable]
   20 |     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];
      |           ^
aplusb.cpp:20:14: warning: unused variable 'y' [-Wunused-variable]
   20 |     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];
      |              ^
aplusb.cpp:20:17: warning: unused variable 't' [-Wunused-variable]
   20 |     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];
      |                 ^
aplusb.cpp:20:20: warning: unused variable 'z' [-Wunused-variable]
   20 |     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];
      |                    ^
aplusb.cpp:20:23: warning: unused variable 'hp' [-Wunused-variable]
   20 |     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];
      |                       ^~
aplusb.cpp:20:27: warning: unused variable 'sus1' [-Wunused-variable]
   20 |     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];
      |                           ^~~~
aplusb.cpp:20:33: warning: unused variable 'sus2' [-Wunused-variable]
   20 |     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];
      |                                 ^~~~
aplusb.cpp:20:39: warning: unused variable 'g' [-Wunused-variable]
   20 |     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];
      |                                       ^
aplusb.cpp:20:42: warning: unused variable 'sus' [-Wunused-variable]
   20 |     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];
      |                                          ^~~
aplusb.cpp:20:47: warning: unused variable 'bruh1' [-Wunused-variable]
   20 |     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];
      |                                               ^~~~~
aplusb.cpp:20:54: warning: unused variable 'bruh2' [-Wunused-variable]
   20 |     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];
      |                                                      ^~~~~
aplusb.cpp:20:61: warning: unused variable 'dog1' [-Wunused-variable]
   20 |     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];
      |                                                             ^~~~
aplusb.cpp:20:67: warning: unused variable 'h' [-Wunused-variable]
   20 |     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];
      |                                                                   ^
aplusb.cpp:20:70: warning: unused variable 'dog2' [-Wunused-variable]
   20 |     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];
      |                                                                      ^~~~
aplusb.cpp:20:76: warning: unused variable 'dog' [-Wunused-variable]
   20 |     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];
      |                                                                            ^~~
aplusb.cpp:20:84: warning: unused variable 'p' [-Wunused-variable]
   20 |     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];
      |                                                                                    ^
aplusb.cpp:20:90: warning: unused variable 'q' [-Wunused-variable]
   20 |     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];
      |                                                                                          ^
aplusb.cpp:20:93: warning: unused variable 'm' [-Wunused-variable]
   20 |     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];
      |                                                                                             ^
aplusb.cpp:20:129: warning: unused variable 'x1' [-Wunused-variable]
   20 |     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];
      |                                                                                                                                 ^~
aplusb.cpp:20:141: warning: unused variable 'x2' [-Wunused-variable]
   20 |     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];
      |                                                                                                                                             ^~
aplusb.cpp:20:153: warning: unused variable 'n' [-Wunused-variable]
   20 |     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];
      |                                                                                                                                                         ^
aplusb.cpp:20:159: warning: unused variable 'd' [-Wunused-variable]
   20 |     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];
      |                                                                                                                                                               ^
aplusb.cpp:20:170: warning: unused variable 'joy' [-Wunused-variable]
   20 |     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];
      |                                                                                                                                                                          ^~~
/usr/bin/ld: /tmp/ccqQx9rv.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccHPX41y.o:aplusb.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccqQx9rv.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