Submission #1237959

#TimeUsernameProblemLanguageResultExecution timeMemory
1237959al_reem_2010Coins (IOI17_coins)C++20
Compilation error
0 ms0 KiB
// اَللَهُمَ صَلِ عَلَىَ مُحَمَدٍ وَ آلِ مُحَمَدٍ
#include "bits/stdc++.h"
#include "coins.h"
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include <map>
#include <set>
#include <queue>
#include <thread>
#include <fstream>
#include <stack>
using namespace std ;
//#define int long long
#define pb push_back
#define si size()
#define fi first
#define se second
#define all(a) a.begin(),a.end()
#define applejuice ios::sync_with_stdio(false) ; cin.tie(nullptr) ; cout.tie(nullptr) ;
//const int inf=1e18 ;
const int mod=1e9+7 ;
const int maxn=1e5+7 ;
int tt=1 ;
vector<int> coin_flips(int b[] , int c)
{
    vector<int> f(1) ;
    if(c==0 && b[0]==0) {f[0]=1 ;}
    if(c==0 && b[0]==1) {f[0]=0 ;}
    if(c==1 && b[0]==0) {f[0]=0 ;}
    if(c==1 && b[0]==1) {f[0]=1 ;}
    return f ;
}
int find_coin(int b[])
{
    return b[0] ;
}

Compilation message (stderr)

/usr/bin/ld: /tmp/ccyZV9WV.o: in function `main':
grader.cpp:(.text.startup+0x3e2): undefined reference to `coin_flips(std::vector<int, std::allocator<int> >, int)'
/usr/bin/ld: grader.cpp:(.text.startup+0xb8a): undefined reference to `find_coin(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status