Submission #132346

#TimeUsernameProblemLanguageResultExecution timeMemory
132346redaHorses (IOI15_horses)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std ; #define MOD 1000000007 # include "horses.h" int init(int n, int x[], int y[]) { long long h=1,ans=0; for(int i=0;i<n;i++) { h*=x[i]; h%=MOD; ans=max((h*y[i])%MOD,ans); } return ans%MOD; }

Compilation message (stderr)

horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:14:15: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
     return ans%MOD;
               ^
/tmp/ccPMk9ea.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