Submission #347788

#TimeUsernameProblemLanguageResultExecution timeMemory
347788ponkungCounting Mushrooms (IOI20_mushrooms)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; int n,op,ans=0; int main() { scanf("%d",&n); op=use_machine(0,1); //printf("%d\n",ans); count_mushroom(ans); }

Compilation message (stderr)

mushrooms.cpp: In function 'int main()':
mushrooms.cpp:7:8: error: 'use_machine' was not declared in this scope
    7 |     op=use_machine(0,1);
      |        ^~~~~~~~~~~
mushrooms.cpp:9:5: error: 'count_mushroom' was not declared in this scope
    9 |     count_mushroom(ans);
      |     ^~~~~~~~~~~~~~
mushrooms.cpp:6:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    6 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~