제출 #964963

#제출 시각아이디문제언어결과실행 시간메모리
964963marinalucaMemory (IOI10_memory)C++14
0 / 100
1 ms440 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play (){ int i; char a, b; int NMAX = 50; vector <int> v; for (int i = 0; i < 50; ++ i){ v[i] = faceup(i + 1); } for (int i = 0; i < NMAX; ++ i){ for (int j = i + 1; j < NMAX; ++ j){ if (v[i] == v[j]){ faceup(i + 1); faceup(j + 1); } } } }

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

memory.cpp: In function 'void play()':
memory.cpp:8:9: warning: unused variable 'i' [-Wunused-variable]
    8 |     int i;
      |         ^
memory.cpp:9:8: warning: unused variable 'a' [-Wunused-variable]
    9 |   char a, b;
      |        ^
memory.cpp:9:11: warning: unused variable 'b' [-Wunused-variable]
    9 |   char a, b;
      |           ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...