Submission #199704

#TimeUsernameProblemLanguageResultExecution timeMemory
199704FieryPhoenixHorses (IOI15_horses)C++11
Compilation error
0 ms0 KiB
#include <iostream> #include <vector> #include <algorithm> #include <cmath> #include <cstdio> #include <map> #include <queue> #include <set> #include <iomanip> #include <deque> #include <cassert> #include <ctime> #include <cstring> #include <cstdlib> #include <chrono> #include <ctime> #include <random> #include <stack> #include <unordered_set> #include <unordered_map> #include <iterator> #include <climits> #include <horses.h> using namespace std; mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); typedef long long ll; typedef long double ld; #define INF 2001001001 #define MOD 1000000007 int worth[15]; int init(int N, int X[], int Y[]){ for (int i=N-1;i>=0;i--) worth[i]=X[i]*max(Y[i],worth[i+1]); return worth[0]; } int updateX(int pos, int X[]){ return 0; } int updateY(int pos, int Y[]){ return 0; }

Compilation message (stderr)

horses.cpp: In function 'int updateX(int, int*)':
horses.cpp:40:17: warning: unused parameter 'pos' [-Wunused-parameter]
 int updateX(int pos, int X[]){
                 ^~~
horses.cpp:40:28: warning: unused parameter 'X' [-Wunused-parameter]
 int updateX(int pos, int X[]){
                            ^
horses.cpp: In function 'int updateY(int, int*)':
horses.cpp:44:17: warning: unused parameter 'pos' [-Wunused-parameter]
 int updateY(int pos, int Y[]){
                 ^~~
horses.cpp:44:28: warning: unused parameter 'Y' [-Wunused-parameter]
 int updateY(int pos, int Y[]){
                            ^
/tmp/ccRpyd5u.o: In function `main':
grader.c:(.text.startup+0x71a): undefined reference to `updateX(int, int)'
grader.c:(.text.startup+0x8a6): undefined reference to `updateY(int, int)'
collect2: error: ld returned 1 exit status