(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.

제출 #1116390

#제출 시각아이디문제언어결과실행 시간메모리
1116390alenterMemory (IOI10_memory)C++14
100 / 100
3 ms576 KiB
#include "grader.h" #include "memory.h" #include<bits/stdc++.h> using namespace std; const int MAXN = 60; vector<int> v[MAXN]; void play() { for(int i = 1; i <= 50; i++){ char a = faceup(i); int idx = (int)a - (int)'A'; v[idx].push_back(i); } char a; for(int i = 0; i < 25; i++){ a = faceup(v[i][0]); a = faceup(v[i][1]); } }

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

memory.cpp: In function 'void play()':
memory.cpp:19:10: warning: variable 'a' set but not used [-Wunused-but-set-variable]
   19 |     char a;
      |          ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...