Submission #691244

#TimeUsernameProblemLanguageResultExecution timeMemory
691244amunduzbaevBroken Device (JOI17_broken_device)C++17
Compilation error
0 ms0 KiB
#include "Brunolib.h" #include "bits/stdc++.h" using namespace std; typedef long long ll; #define ar array //~ #define int ll ll Bruno(int n, int a[]){ int j = 0; ll res = 0; for(int i=0;i<n;i++){ if(a[i]){ res |= ((a[i + 1] * 1ll) << j); j++, i++; } } return res; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccbI1j62.o: in function `main':
grader_anna.c:(.text.startup+0x10b): undefined reference to `Anna(int, long long, int, int*)'
collect2: error: ld returned 1 exit status

/usr/bin/ld: /tmp/cc3YGcSN.o: in function `main':
grader_bruno.cpp:(.text.startup+0x13d): undefined reference to `Bruno(int, int*)'
collect2: error: ld returned 1 exit status