제출 #201899

#제출 시각아이디문제언어결과실행 시간메모리
201899Leonardo_PaesMemory (IOI10_memory)C++17
0 / 100
6 ms504 KiB
#include "vector" #include "grader.h" #include "memory.h" void play() { std::vector<int> p[100]; int i=1, j=50, a; while(i<j){ a = faceup(i) - 'A'; p[a].push_back(i); a = faceup(j) - 'A'; p[a].push_back(j); i++, j--; } for(i=0; i<25; i++) faceup(p[i][0]); faceup(p[i][1]); }

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

memory.cpp: In function 'void play()':
memory.cpp:15:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(i=0; i<25; i++)
     ^~~
memory.cpp:16:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
         faceup(p[i][0]); faceup(p[i][1]);
                          ^~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...