제출 #512754

#제출 시각아이디문제언어결과실행 시간메모리
512754lovro_nidogon1Languages (IOI10_languages)C++14
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> #include "lang.h" #include "grader.h" using namespace std; short freq[56][70001], nocur[56], cfreq[70001]; const short cum = 2; set<pair<short, short> > ses[56]; set<pair<short, pair<short, short> > > sussy[56]; void excerpt(short *e) { short exp = 0; short sd = 0; for(short i = 0; i < 56; i++) { short csd = 0; for(short j = 0; j < 100; j++) csd += freq[i][e[j]]; for(short j = 0; j < 99; j++) csd += (ses[i].find({e[j], e[j + 1]}) != ses[i].end()); for(short j = i%2; j < 98; j+=cum) csd += (sussy[i].find({e[j], {e[j + 1], e[j + 2]}}) != sussy[i].end()); if(csd > sd) sd = csd, exp = i; } short ca = language(exp); for(short i = 0; i < 100; i++) freq[ca][e[i]] = 1; for(short i = 0; i < 99; i++) ses[ca].insert({e[i], e[i + 1]}); for(short i = exp%2; i < 98; i+=cum) sussy[ca].insert({e[i], {e[i + 1], e[i + 2]}}); nocur[ca]++; }

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

/usr/bin/ld: /tmp/cccCcraj.o: in function `main':
grader.c:(.text.startup+0x12f): undefined reference to `excerpt(int*)'
collect2: error: ld returned 1 exit status