Submission #470776

#TimeUsernameProblemLanguageResultExecution timeMemory
470776a_aguiloMemory (IOI10_memory)C++14
0 / 100
2 ms200 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play() { vector <pair <char, int>> data; for (int i = 1; i <= 50; ++i){ char c = faceup (i); data.push_back(make_pair(c, i)); } sort (data.begin(), data.end()); for (int e = 1; e <= 25; ++e){ char x = faceup(data[2 * e - 1].second); char y = faceup(data[2*e].second); } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:16:14: warning: unused variable 'x' [-Wunused-variable]
   16 |         char x = faceup(data[2 * e - 1].second);
      |              ^
memory.cpp:17:14: warning: unused variable 'y' [-Wunused-variable]
   17 |         char y = faceup(data[2*e].second);
      |              ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...