(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

제출 #1112177

#제출 시각아이디문제언어결과실행 시간메모리
1112177enzyMemory (IOI10_memory)C++14
컴파일 에러
0 ms0 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play() { int v1[30], v2[30]; for(int i=0;i<30;i++) v[i]=-1; for(int i=1;i<=100;i+=2){ char a=faceup(i), b=faceup(i+1); int ia=a%65, ib=b%65; if(v1[ia]==-1) v1[ia]=i; else v2[ia]=i; if(v1[ib]==-1) v1[ib]=i; else v2[ib]=i; } for(int i=0;i<25;i++){ char l1=faceup(v1[i]), l2=faceup(v2[i]); } }

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

memory.cpp: In function 'void play()':
memory.cpp:7:27: error: 'v' was not declared in this scope
    7 |     for(int i=0;i<30;i++) v[i]=-1;
      |                           ^
memory.cpp:17:14: warning: unused variable 'l1' [-Wunused-variable]
   17 |         char l1=faceup(v1[i]), l2=faceup(v2[i]);
      |              ^~
memory.cpp:17:32: warning: unused variable 'l2' [-Wunused-variable]
   17 |         char l1=faceup(v1[i]), l2=faceup(v2[i]);
      |                                ^~