Submission #954922

# Submission time Handle Problem Language Result Execution time Memory
954922 2024-03-28T20:00:09 Z Skywk Broken Device (JOI17_broken_device) C++17
Compilation error
0 ms 0 KB
#include "Brunolib.h"
 
long long Bruno(int N, int A[]){
    long long X = 0;
    for(int i=0, j=0; i < N && j < 60;){
        if(A[i]){
            if(A[i + 1]) X += (1LL << j);
            j++;
            i += 2;
        }
        else{
            i++;
        }
    }
    return X;
}



    

Compilation message

/usr/bin/ld: /tmp/cci1Wa5L.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/ccmu4LOw.o: in function `main':
grader_bruno.cpp:(.text.startup+0x13d): undefined reference to `Bruno(int, int*)'
collect2: error: ld returned 1 exit status