제출 #647791

#제출 시각아이디문제언어결과실행 시간메모리
647791ymmMemory (IOI10_memory)C++17
100 / 100
2 ms332 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> #define Loop(x,l,r) for (ll x = (l); x < (ll)(r); ++x) #define LoopR(x,l,r) for (ll x = (r)-1; x >= (ll)(l); --x) typedef long long ll; typedef std::pair<int, int> pii; typedef std::pair<ll , ll > pll; using namespace std; void play() { vector<int> v[256]; Loop (i,1,51) { char c = faceup(i); v[c].push_back(i); } Loop (c,'A','Z') { faceup(v[c][0]); faceup(v[c][1]); } }

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

memory.cpp: In function 'void play()':
memory.cpp:16:5: warning: array subscript has type 'char' [-Wchar-subscripts]
   16 |   v[c].push_back(i);
      |     ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...