제출 #1141400

#제출 시각아이디문제언어결과실행 시간메모리
1141400x93bd0Coins (IOI17_coins)C++20
컴파일 에러
0 ms0 KiB
/* x93bd0 - trying not to go down Rust is better, >: */ #include <algorithm> #include <csignal> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <map> #include <set> #include <list> #include <queue> #include <sys/types.h> #include <vector> #include <bitset> using namespace std; #define int long long #define uint unsigned int #define iinf LLONG_MAX #define uinf ULLONG_MAX vector<int> coin_flips(vector<int> b, int c) { vector<int> o; for (uint x = 0; x < 6; x++) { if (b[x] != (c & 1)) { o.push_back(x); } c >>= 1; } return o; } int find_coin(vector<int> b) { uint o = 0; for (uint x = 6; x > 0; x--) { o <<= 1; o |= b[x] > 0; } return o; }

컴파일 시 표준 에러 (stderr) 메시지

/usr/bin/ld: /tmp/cchmhSd1.o: in function `main':
grader.cpp:(.text.startup+0x3e2): undefined reference to `coin_flips(std::vector<int, std::allocator<int> >, int)'
/usr/bin/ld: grader.cpp:(.text.startup+0xb8a): undefined reference to `find_coin(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status