Submission #8073

#TimeUsernameProblemLanguageResultExecution timeMemory
8073woqja125Languages (IOI10_languages)C++98
56 / 100
370 ms2988 KiB
#include <stdlib.h> #include <stdio.h> #include "grader.h" #include "lang.h" int counts[60][65540]; void excerpt(int *E) { int i,j,similcnt,mxv=-1,mxp,ans; for(i=0;i<=55;++i) { similcnt=0; for(j=0;j<100;++j)if(counts[i][E[j]])similcnt++; if(similcnt>mxv) { mxv=similcnt; mxp=i; } } ans=language(mxp); for(i=0;i<100;++i)counts[ans][E[i]]=1; }

Compilation message (stderr)

lang.cpp: In function 'void excerpt(int*)':
lang.cpp:21:5: warning: 'mxp' may be used uninitialized in this function [-Wmaybe-uninitialized]
  ans=language(mxp);
  ~~~^~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...