Submission #1292742

#TimeUsernameProblemLanguageResultExecution timeMemory
1292742kahoul버섯 세기 (IOI20_mushrooms)C++20
Compilation error
0 ms0 KiB
#include "mushrooms.h"
using namespace std;

int count_mushrooms(int n) {
	int resp = 0;

	for (int i = 1; i <= n; i += 2) {
		vector<int> m = {i, 0, i + 1};
		resp +=  2 - use_macine(m);
	}

	return resp;
}

Compilation message (stderr)

mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:9:30: error: 'use_macine' was not declared in this scope; did you mean 'use_machine'?
    9 |                 resp +=  2 - use_macine(m);
      |                              ^~~~~~~~~~
      |                              use_machine