답안 #691244

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
691244 2023-01-31T03:28:59 Z amunduzbaev Broken Device (JOI17_broken_device) C++17
컴파일 오류
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