Submission #216855

#TimeUsernameProblemLanguageResultExecution timeMemory
216855kshitij_sodani말 (IOI15_horses)C++17
Compilation error
0 ms0 KiB
#include <iostream> #include <bits/stdc++.h> #include <horses.h> using namespace std; typedef long long int llo; #define mp make_pair #define pb push_back #define a first #define b second #define endl "\n" llo mod=1000000007; llo init(llo n,vector<llo> aa,vector<llo> bb){ llo ma=0; llo no=1; for(llo i=0;i<n;i++){ no*=aa[i]; //no%=mod; ma=max(ma,(no*bb[i])); } return ma; } llo updateX(llo pos,llo val){ return 0; } llo updateY(llo pos,llo val){ return 0; }

Compilation message (stderr)

horses.cpp: In function 'llo updateX(llo, llo)':
horses.cpp:22:17: warning: unused parameter 'pos' [-Wunused-parameter]
 llo updateX(llo pos,llo val){
                 ^~~
horses.cpp:22:25: warning: unused parameter 'val' [-Wunused-parameter]
 llo updateX(llo pos,llo val){
                         ^~~
horses.cpp: In function 'llo updateY(llo, llo)':
horses.cpp:25:17: warning: unused parameter 'pos' [-Wunused-parameter]
 llo updateY(llo pos,llo val){
                 ^~~
horses.cpp:25:25: warning: unused parameter 'val' [-Wunused-parameter]
 llo updateY(llo pos,llo val){
                         ^~~
/tmp/cc5XE4MX.o: In function `main':
grader.c:(.text.startup+0x2db): undefined reference to `init(int, int*, int*)'
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