Submission #675383

#TimeUsernameProblemLanguageResultExecution timeMemory
675383m23022002Coins (IOI17_coins)C++17
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: 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){
      |       ^~~~~~~~~~
coins.cpp:10:21: error: expected ',' or '...' before 'b'
   10 | int find_coin(int[] b)
      |                     ^