Submission #988793

# Submission time Handle Problem Language Result Execution time Memory
988793 2024-05-26T07:52:50 Z vjudge1 A Plus B (IOI23_aplusb) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "aplusb.h"
#include <vector>
using namespace std;
vector<long long> smallest_sums(int N, vector<int>A, vector<int>B){
    long long minna = 1e18,minnb = 1e18;
    for(int i = 0; i < (int)A.size(); i++) minna = min(minna,(long long)A[i]);
    for(int i = 0; i < (int)B.size(); i++) minnb = min(minnb,(long long)B[i]);
    vector<long long> ans;
    ans.push_back(minna * minnb);
    return ans;
}

Compilation message

aplusb.cpp:5:19: error: ambiguating new declaration of 'std::vector<long long int> smallest_sums(int, std::vector<int>, std::vector<int>)'
    5 | vector<long long> smallest_sums(int N, vector<int>A, vector<int>B){
      |                   ^~~~~~~~~~~~~
In file included from aplusb.cpp:2:
aplusb.h:3:18: note: old declaration 'std::vector<int> smallest_sums(int, std::vector<int>, std::vector<int>)'
    3 | std::vector<int> smallest_sums(int N, std::vector<int> A, std::vector<int> B);
      |                  ^~~~~~~~~~~~~