(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 #383910

#TimeUsernameProblemLanguageResultExecution timeMemory
383910MODDIMemory (IOI10_memory)C++14
100 / 100
3 ms492 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> #define pb push_back using namespace std; void play() { map<char, int> lp; for(char i = 'A'; i<='Y';i++) lp[i] = -1; for(int i = 1; i <= 50; i+=2){ //cout<<i<<endl; char a = faceup(i); char b = faceup(i+1); if(lp[a] == -1) lp[a] = i; else{ char z = faceup(i); z = faceup(lp[a]); } if(lp[b] == -1) lp[b] = i+1; else{ char z = faceup(i+1); z = faceup(lp[b]); } } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:17:9: warning: variable 'z' set but not used [-Wunused-but-set-variable]
   17 |    char z = faceup(i);
      |         ^
memory.cpp:23:9: warning: variable 'z' set but not used [-Wunused-but-set-variable]
   23 |    char z = faceup(i+1);
      |         ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...