답안 #284115

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
284115 2020-08-26T20:56:17 Z Ruba_K 꿈 (IOI13_dreaming) C++14
컴파일 오류
0 ms 0 KB
#include "dreaming.h"
#include<bits/stdc++.h>

using namespace std ;

const int NN = 1e5 + 5 ;
vector<pair<int , int > > adj[NN];


long long  travelTime(int N, int M, int L, int A[], int B[], int T[]) {
    long long sum = 0 ;
    for(int i = 0 ; i < M ; i ++)
        sum += T[i];

    return sum + L ;



}

Compilation message

dreaming.cpp:10:12: error: ambiguating new declaration of 'long long int travelTime(int, int, int, int*, int*, int*)'
   10 | long long  travelTime(int N, int M, int L, int A[], int B[], int T[]) {
      |            ^~~~~~~~~~
In file included from dreaming.cpp:1:
dreaming.h:8:5: note: old declaration 'int travelTime(int, int, int, int*, int*, int*)'
    8 | int travelTime(int N, int M, int L, int A[], int B[], int T[]);
      |     ^~~~~~~~~~