Submission #1237965

#TimeUsernameProblemLanguageResultExecution timeMemory
1237965al_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(vector<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(vector<int> b) { return b[0] ;

Compilation message (stderr)

coins.cpp: In function 'int find_coin(std::vector<int>)':
coins.cpp:38:18: error: expected '}' at end of input
   38 |     return b[0] ;
      |                  ^
coins.cpp:37:1: note: to match this '{'
   37 | {
      | ^