Submission #675385

#TimeUsernameProblemLanguageResultExecution timeMemory
675385m23022002Coins (IOI17_coins)C++14
Compilation error
0 ms0 KiB
#include "coins.h"
int cu;
int[] coin_flips(int b[], int c){
  int ans[1];
  ans[0] = 0;
  cu = c;
  return ans;
}
 
int find_coin(int b[])
{
  return cu;
}

Compilation message (stderr)

coins.cpp:3:4: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
    3 | int[] coin_flips(int b[], int c){
      |    ^
coins.cpp:3:4: error: structured binding declaration cannot have type 'int'
    3 | int[] coin_flips(int b[], int c){
      |    ^~
coins.cpp:3:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
coins.cpp:3:4: error: empty structured binding declaration
coins.cpp:3:7: error: expected initializer before 'coin_flips'
    3 | int[] coin_flips(int b[], int c){
      |       ^~~~~~~~~~