Submission #1009716

#TimeUsernameProblemLanguageResultExecution timeMemory
1009716u_suck_oLanguages (IOI10_languages)C++17
Compilation error
0 ms0 KiB
#include "bits/stdc++.h" #include "lang.h" #define C 65536 using namespace std; int freq[56][C]; int cfreq[C]; void excerpt(int E[]) { memset(cfreq, 0, sizeof cfreq); for (int i = 0; i < 100; i++) { cfreq[E[i]]++; } int maxcnt = 0, maxlang = -1; for (int l = 0; l < 56; l++) { int cnt = 0; for (int i = 0; i < C; i++) { if (cfreq[i] && freq[l][i]) cnt++; } if (cnt > maxcnt) { maxcnt = cnt; maxlang = l; } } language(maxlang); }

Compilation message (stderr)

lang.cpp: In function 'void excerpt(int*)':
lang.cpp:28:5: error: 'language' was not declared in this scope
   28 |     language(maxlang);
      |     ^~~~~~~~