Submission #270646

#TimeUsernameProblemLanguageResultExecution timeMemory
270646Valera_GrinenkoMemory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#pragma GCC optimize("Ofast") #pragma GCC target("avx,avx2,fma") #pragma GCC optimization ("unroll-loops") #include <iostream> #include <fstream> #include <algorithm> #include <vector> #include <set> #include <stack> #include <map> #include <iomanip> #include <cmath> #include <queue> #include <bitset> #include <numeric> #include <array> #include <cstring> #include <random> #include <chrono> #include "grader.h" #include "memory.h" #define fi first #define se second #define pb push_back #define mp make_pair #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define make_unique(x) sort(all((x))); (x).resize(unique(all((x))) - (x).begin()) typedef long long ll; typedef long double ld; using namespace std; mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); void play() { map<char, int> have; for(int i = 1; i <= 50; i += 2) { char f = faceup(i); if(have[f]) faceup(have[f]); else { have[f] = i; char s = faceup(i + 1); if(have[s]) i--; else have[s] = i + 1; } } return 0; }

Compilation message (stderr)

memory.cpp:3: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
    3 | #pragma GCC optimization ("unroll-loops")
      | 
memory.cpp: In function 'void play()':
memory.cpp:48:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
   48 |   return 0;
      |          ^