Submission #969954

#TimeUsernameProblemLanguageResultExecution timeMemory
969954irmuunCoins (IOI17_coins)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include "coins.h" using namespace std; #define ll long long #define pb push_back #define ff first #define ss second #define all(s) s.begin(),s.end() #define rall(s) s.rbegin(),s.rend() vector<int>coin_flips(vector<int>b,int c){ int xr=c; for(int i=0;i<64;i++){ if(b[i]==0) xr^=i; } return xr; } int find_coin(vector<int>b){ int xr=0; for(int i=0;i<64;i++){ if(b[i]==0) xr^=i; } return xr; }

Compilation message (stderr)

coins.cpp: In function 'std::vector<int> coin_flips(std::vector<int>, int)':
coins.cpp:18:12: error: could not convert 'xr' from 'int' to 'std::vector<int>'
   18 |     return xr;
      |            ^~
      |            |
      |            int