Submission #588171

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
5881712022-07-02 18:33:08DeepessonLanguages (IOI10_languages)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include "lang.h"
#include "grader.h"
#define fi first
#define se second
#define pb push_back
using ll = long long;
ll lang[60][66000];
std::unordered_map<int,int> mapa[60];
std::unordered_map<int,int> mapa2[60];
ll tot[60];
ll duptot[60];
ll duptot2[60];
void excerpt(int *E)
{
{
int best=0;double score=0;
for(int i=0;i!=60;++i){
if(!tot[i])continue;
double bonus=0;
/* for(int j=0;j!=100;++j){
bonus+=(double)lang[i][E[j]];
}
bonus/=tot[i];*/
for(int j=0;j!=99;++j){
ll ind = E[j] * 100000 + (E[j+1]);
auto it = mapa[i].find(ind);
if(it!=mapa[i].end())
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

lang.cpp: In function 'void excerpt(int*)':
lang.cpp:31:35: error: 'struct std::__detail::_Node_iterator<std::pair<const int, int>, false, false>' has no member named 'second'
   31 |                 bonus+=(double)it.second*8.0;
      |                                   ^~~~~~
lang.cpp:40:36: error: 'struct std::__detail::_Node_iterator<std::pair<const int, int>, false, false>' has no member named 'second'
   40 |                 nbonus+=(double)it.second*16.0;
      |                                    ^~~~~~