답안 #270861

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
270861 2020-08-18T03:55:21 Z TMJN Languages (IOI10_languages) C++17
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;

map<int,int>mp[55];
int C[55];

void excerpt(int *E) {
  	lauguage(0);
  	return;
	pair<double,int>mx={0,0};
	for(int i=0;i<55;i++){
		if(C[i]==0)continue;
		int c=0;
		for(int j=0;j<100;j++){
			c+=mp[i][E[j]];
		}
		mx=max(mx,{(double)c/C[i],i});
	}
	int l=language(mx.second);
	C[l]++;
	for(int i=0;i<100;i++){
		mp[l][E[i]]++;
	}
}

Compilation message

lang.cpp: In function 'void excerpt(int*)':
lang.cpp:9:4: error: 'lauguage' was not declared in this scope; did you mean 'language'?
    9 |    lauguage(0);
      |    ^~~~~~~~
      |    language