Submission #919852

#TimeUsernameProblemLanguageResultExecution timeMemory
919852SuPythony동굴 (IOI13_cave)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int tryCombination(int S[]);
void answer(int S[] , int D[]);

void exploreCave(int n) {
    int s[n];
    fill(s, s+n, 0);
    for (int i=0; i<n; i++) {
        if (tryCombination(s)!=i) {
            s[i]!=s[i];
        }
    }
    int d[n];
    iota(d, d+n, 0);
    answer(s, d);
}

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:13:17: warning: self-comparison always evaluates to false [-Wtautological-compare]
   13 |             s[i]!=s[i];
      |             ~~~~^~~~~~
cave.cpp:13:17: warning: statement has no effect [-Wunused-value]
   13 |             s[i]!=s[i];
      |             ~~~~^~~~~~
/usr/bin/ld: /tmp/cc87ah9J.o: in function `main':
grader.c:(.text.startup+0x10): undefined reference to `exploreCave'
/usr/bin/ld: /tmp/ccY6DYNI.o: in function `exploreCave(int)':
cave.cpp:(.text+0x9f): undefined reference to `tryCombination(int*)'
/usr/bin/ld: cave.cpp:(.text+0x113): undefined reference to `answer(int*, int*)'
collect2: error: ld returned 1 exit status