Submission #72397

#TimeUsernameProblemLanguageResultExecution timeMemory
72397 (#118)통행이 제한된 저택 (FXCUP3_key)C++17
Compilation error
0 ms0 KiB
#include"key.h" static A[111][111]; void EnsureKeyInfo(int N){ for(int i=1;i<=N;i++) for(int j=i+1;j<=N;j++){ TakeKey(i), TakeKey(j); A[i][j] = A[j][i] = Explore(); } for(int i=1;i<=N;i++){ TakeKey(i); int cur = Explore(); for(int j=1;j<=N;j++) if(A[i][j]==cur) Report(i,j); } for(int i=1;i<=N;i++) Report(i,i); }

Compilation message (stderr)

key.cpp:3:8: error: 'A' does not name a type
 static A[111][111];
        ^
key.cpp: In function 'void EnsureKeyInfo(int)':
key.cpp:8:9: error: 'A' was not declared in this scope
         A[i][j] = A[j][i] = Explore();
         ^
key.cpp:13:34: error: 'A' was not declared in this scope
         for(int j=1;j<=N;j++) if(A[i][j]==cur) Report(i,j);
                                  ^