Submission #717716

#TimeUsernameProblemLanguageResultExecution timeMemory
717716Vlatko09Memory (IOI10_memory)C++14
0 / 100
1 ms208 KiB
#include "grader.h" #include "memory.h" void play() { char c[55]; int n[55]; for(int i=1;i<=50;i++) { c[i]=faceup(i); n[i]=i; c[i+1]=faceup(i+1); n[i+1]=i; } for(int i=1;i<=50;i++) for(int j=i+1;j<=50;j++) { if(c[i]==c[j]) { faceup(i); faceup(j); } } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:6:9: warning: variable 'n' set but not used [-Wunused-but-set-variable]
    6 |     int n[55];
      |         ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...