(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

Submission #468093

#TimeUsernameProblemLanguageResultExecution timeMemory
468093HabitusCoins (IOI17_coins)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #define ios ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0) #define dec(x, y) fixed << setprecision((y)) << (x) #define xx first #define yy second #define srt(v) sort((v).begin(), (v).end()) #define srtr(v) sort((v).rbegin(), (v).rend()) #define pb push_back #define popb pop_back #define sz(a) (int)(a).size() #define len(a) (int)(a).length() #define mp make_pair using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; int[] coin_flips(int[] b, int c) { int vr=0; for(int i=0; i<64; ++i) { vr^=b[i]; } vr^=c; int d[1]; d[0]=vr; return d; } int find_coin(int[] b) { int vr=0; for(int i=0; i<64; ++i) { vr^=b[i]; } return vr; }

Compilation message (stderr)

coins.cpp:20:4: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
   20 | int[] coin_flips(int[] b, int c) {
      |    ^
coins.cpp:20:4: error: structured binding declaration cannot have type 'int'
   20 | int[] coin_flips(int[] b, int c) {
      |    ^~
coins.cpp:20:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
coins.cpp:20:4: error: empty structured binding declaration
coins.cpp:20:7: error: expected initializer before 'coin_flips'
   20 | int[] coin_flips(int[] b, int c) {
      |       ^~~~~~~~~~
coins.cpp:30:21: error: expected ',' or '...' before 'b'
   30 | int find_coin(int[] b) {
      |                     ^
coins.cpp: In function 'int find_coin(int*)':
coins.cpp:33:13: error: 'b' was not declared in this scope
   33 |         vr^=b[i];
      |             ^