제출 #589873

#제출 시각아이디문제언어결과실행 시간메모리
589873almothana05버섯 세기 (IOI20_mushrooms)C++14
컴파일 에러
0 ms0 KiB
#include "mushrooms.h"
#include <bits\stdc++.h>
using namespace std;
vector<int>comp , a, b , cmp , erg;;
int count_mushrooms(int menge) {
	int rechner = 0 , numm , pl , nummer;
	a.push_back(0);
	for(int i = 1 ; i < min(menge , menge) ; i++){
		comp = {0 , i};
		if(use_machine(comp) == 0){
			a.push_back(i);
		}
		else{
			b.push_back(i);
		}
	}
	if(menge <= menge){
		return a.size();
	}
	if(a.size() > b.size()){
		cmp = a;
	}
	else{
		cmp = b;
	}
	for(int i = 200 ; i < menge ; i = i ){
		numm = i + cmp.size();
		pl = 0;
	cout << i << " ja\n";
		while(i < min(menge , numm)){
			erg.push_back(i);
			erg.push_back(cmp[pl]);
			pl++;
			i++;
		}
		nummer = use_machine(erg);
		numm = 0;
		if(nummer % 2 == 1){
			numm++;
		}
		numm += nummer / 2;
		erg.clear();

		if(a.size() > b.size()){
			rechner += (cmp.size() - numm);
		}
		else{
			rechner += numm;
		}
	}
	return rechner + a.size();
}

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

mushrooms.cpp:2:10: fatal error: bits\stdc++.h: No such file or directory
    2 | #include <bits\stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.