Submission #1100392

#TimeUsernameProblemLanguageResultExecution timeMemory
1100392akzytrCoins (IOI17_coins)C++17
Compilation error
0 ms0 KiB
#include "coins.h"

std::vector<int> coin_flips(std::vector<int> b, int c) {
    ve<int> turn;
    if(c==0){
        if(b[0] == b[1]){
            turn.pb(63);
        }
        else{
            turn.pb(0);
        }
    }
    else{
        if(b[0] == b[1]){
            turn.pb(0);
        }
        else{
            turn.pb(63);
        }
    }
    return b;
  
}

int find_coin(std::vector<int> b) {
    return b[0] != b[1];
}

Compilation message (stderr)

coins.cpp: In function 'std::vector<int> coin_flips(std::vector<int>, int)':
coins.cpp:4:5: error: 've' was not declared in this scope
    4 |     ve<int> turn;
      |     ^~
coins.cpp:4:8: error: expected primary-expression before 'int'
    4 |     ve<int> turn;
      |        ^~~
coins.cpp:7:13: error: 'turn' was not declared in this scope
    7 |             turn.pb(63);
      |             ^~~~
coins.cpp:10:13: error: 'turn' was not declared in this scope
   10 |             turn.pb(0);
      |             ^~~~
coins.cpp:15:13: error: 'turn' was not declared in this scope
   15 |             turn.pb(0);
      |             ^~~~
coins.cpp:18:13: error: 'turn' was not declared in this scope
   18 |             turn.pb(63);
      |             ^~~~