Submission #725059

#TimeUsernameProblemLanguageResultExecution timeMemory
725059rembocoderAliens (IOI16_aliens)C++17
Compilation error
0 ms0 KiB
#include "aliens.h" using namespace std; #define int long long int take_photos(int32_t n, int32_t m, int32_t k, vector<int32_t> r, vector<int32_t> c) { return 0; } #undef int

Compilation message (stderr)

aliens.cpp:7:17: error: 'long long int take_photos' redeclared as different kind of entity
    7 | int take_photos(int32_t n, int32_t m, int32_t k, vector<int32_t> r, vector<int32_t> c) {
      |                 ^~~~~~~
In file included from aliens.cpp:1:
aliens.h:5:11: note: previous declaration 'long long int take_photos(int, int, int, std::vector<int>, std::vector<int>)'
    5 | long long take_photos(int n, int m, int k, std::vector<int> r, std::vector<int> c);
      |           ^~~~~~~~~~~
aliens.cpp:7:17: error: 'int32_t' was not declared in this scope
    7 | int take_photos(int32_t n, int32_t m, int32_t k, vector<int32_t> r, vector<int32_t> c) {
      |                 ^~~~~~~
aliens.cpp:7:28: error: 'int32_t' was not declared in this scope
    7 | int take_photos(int32_t n, int32_t m, int32_t k, vector<int32_t> r, vector<int32_t> c) {
      |                            ^~~~~~~
aliens.cpp:7:39: error: 'int32_t' was not declared in this scope
    7 | int take_photos(int32_t n, int32_t m, int32_t k, vector<int32_t> r, vector<int32_t> c) {
      |                                       ^~~~~~~
aliens.cpp:7:57: error: 'int32_t' was not declared in this scope
    7 | int take_photos(int32_t n, int32_t m, int32_t k, vector<int32_t> r, vector<int32_t> c) {
      |                                                         ^~~~~~~
aliens.cpp:7:64: error: template argument 1 is invalid
    7 | int take_photos(int32_t n, int32_t m, int32_t k, vector<int32_t> r, vector<int32_t> c) {
      |                                                                ^
aliens.cpp:7:64: error: template argument 2 is invalid
aliens.cpp:7:76: error: 'int32_t' was not declared in this scope
    7 | int take_photos(int32_t n, int32_t m, int32_t k, vector<int32_t> r, vector<int32_t> c) {
      |                                                                            ^~~~~~~
aliens.cpp:7:83: error: template argument 1 is invalid
    7 | int take_photos(int32_t n, int32_t m, int32_t k, vector<int32_t> r, vector<int32_t> c) {
      |                                                                                   ^
aliens.cpp:7:83: error: template argument 2 is invalid