제출 #717653

#제출 시각아이디문제언어결과실행 시간메모리
717653AndrijaMMemory (IOI10_memory)C++14
0 / 100
1 ms208 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play() { char a, b; bool vis[55]={0}; map<char,int>m; for(int i=1;i<=50;i++) { a=faceup(i); vis[i]=true; if(m[a]!=0) { faceup(m[a]); } else { m[a]=i; } } }

컴파일 시 표준 에러 (stderr) 메시지

memory.cpp: In function 'void play()':
memory.cpp:8:12: warning: unused variable 'b' [-Wunused-variable]
    8 |    char a, b;
      |            ^
memory.cpp:9:9: warning: variable 'vis' set but not used [-Wunused-but-set-variable]
    9 |    bool vis[55]={0};
      |         ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...