Submission #346316

#TimeUsernameProblemLanguageResultExecution timeMemory
346316ponkungCounting Mushrooms (IOI20_mushrooms)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; #include<mushrooms.h> int n; int main() { scanf("%d",&n); }

Compilation message (stderr)

mushrooms.cpp: In function 'int main()':
mushrooms.cpp:7:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    7 |  scanf("%d",&n);
      |  ~~~~~^~~~~~~~~
/tmp/cckQP8HA.o: In function `main':
stub.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/cchGuWVv.o:mushrooms.cpp:(.text.startup+0x0): first defined here
/tmp/cckQP8HA.o: In function `main':
stub.cpp:(.text.startup+0x86): undefined reference to `count_mushrooms(int)'
collect2: error: ld returned 1 exit status