Submission #504148

#TimeUsernameProblemLanguageResultExecution timeMemory
504148maximumSHOTAliens (IOI16_aliens)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; using ll = long long; using ui = unsigned int; using ull = unsigned long long; using ld = long double; using pii = pair<int, int>; using pll = pair<long long, long long>; const int inf = 1e9; const ll inf64 = 1e18; struct output { void print() { } bool operator == (const output& o) const { throw; } }; struct input { input() = default; void read() { } void print() { } void gen() { // use static } void gen_max_test() { } output fast() { } output slow() { #ifndef DEBUG throw; #endif return output(); } }; void test_case() { input in; in.read(); output res = in.fast(); res.print(); } void work() { int t; cin >> t; while (t--) test_case(); } void test() { for (int t = 1;;t++) { input in; in.gen(); input in_fs = in; input in_sl = in; output fs = in_fs.fast(); output sl = in_sl.slow(); if (fs == sl) { cout << "OK" << endl; fs.print(); cout << "\n=========" << endl; } else { cout << "WA " << t << "\n"; cout << "exp\n"; sl.print(); cout << "\n=========\n"; cout << "fnd\n"; fs.print(); cout << "\n=========\n"; in.print(); break; } } } void max_test() { input in; in.gen_max_test(); input in_fs = in; output fs = in_fs.fast(); fs.print(); } int main() { #ifdef DEBUG freopen("input.txt", "r", stdin); #endif ios_base::sync_with_stdio(0); cin.tie(0); work(); // test(); // max_test(); return 0; }

Compilation message (stderr)

aliens.cpp: In member function 'output input::fast()':
aliens.cpp:48:5: warning: no return statement in function returning non-void [-Wreturn-type]
   48 |     }
      |     ^
/usr/bin/ld: /tmp/cclM5OIn.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccYOo1Wl.o:aliens.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cclM5OIn.o: in function `main':
grader.cpp:(.text.startup+0xf0): undefined reference to `take_photos(int, int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status