Submission #691244

# Submission time Handle Problem Language Result Execution time Memory
691244 2023-01-31T03:28:59 Z amunduzbaev Broken Device (JOI17_broken_device) C++17
Compilation error
0 ms 0 KB
#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

/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