제출 #216874

#제출 시각아이디문제언어결과실행 시간메모리
216874kshitij_sodaniHorses (IOI15_horses)C++17
17 / 100
31 ms5248 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;
int init(int n,int aa[],int bb[]){
	llo ma=0;
	llo no=1;
	for(llo i=0;i<n;i++){
		no*=aa[i];
		//no%=mod;
		if(aa[i]>=mod){
			while(true){
				continue;
			}
		}
		ma=max(ma,(no*bb[i]));
	}
	
	return ma;
}
int updateX(int pos,int val){
	return 0;
}
int updateY(int pos,int val){
	return 0;
}
/*int main(){
	return 0;
}*/

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

horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:26:9: warning: conversion to 'int' from 'llo {aka long long int}' may alter its value [-Wconversion]
  return ma;
         ^~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:28:17: warning: unused parameter 'pos' [-Wunused-parameter]
 int updateX(int pos,int val){
                 ^~~
horses.cpp:28:25: warning: unused parameter 'val' [-Wunused-parameter]
 int updateX(int pos,int val){
                         ^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:31:17: warning: unused parameter 'pos' [-Wunused-parameter]
 int updateY(int pos,int val){
                 ^~~
horses.cpp:31:25: warning: unused parameter 'val' [-Wunused-parameter]
 int updateY(int pos,int val){
                         ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...