제출 #867312

#제출 시각아이디문제언어결과실행 시간메모리
867312inawahMemory (IOI10_memory)C++14
100 / 100
1 ms596 KiB
#include "grader.h" #include "memory.h" #define MAXN 105 #define MAXM 5 int a[MAXN][MAXM], cnt[MAXN]; void play() { for (int i = 1, j; i <= 50; i++) { a[j = faceup(i)][++cnt[j]] = i; } for (int i = 'A'; i <= 'Y'; i++) { faceup(a[i][1]), faceup(a[i][2]); } }

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

memory.cpp: In function 'void play()':
memory.cpp:10:13: warning: operation on 'j' may be undefined [-Wsequence-point]
   10 |         a[j = faceup(i)][++cnt[j]] = i;
      |           ~~^~~~~~~~~~~
memory.cpp:10:13: warning: operation on 'j' may be undefined [-Wsequence-point]
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...