Submission #867312

#TimeUsernameProblemLanguageResultExecution timeMemory
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]); } }

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