제출 #988415

#제출 시각아이디문제언어결과실행 시간메모리
988415cnn008드문 곤충 (IOI22_insects)C++17
컴파일 에러
0 ms0 KiB
#include "bits/stdc++.h" using namespace std; #include "insects.h"; #ifdef N_N_C #include "debug.h" #else #define cebug(...) "Arya" #endif #define ll long long const int N=1e5+5; const int mod=1e9+7; int vis[205],cnt[205],type; int min_cardinality(int n){ for(int i=1; i<=n; i++){ if(!vis[i]){ vis[i]=++type; move_inside(i); for(int j=i+1; j<=n; j++){ move_inside(j); int val=press_buton(); if(val==2) vis[j]=type; move_outside(j); } move_outside(i); } } for(int i=1; i<=n; i++) cnt[vis[i]]++; return *min_element(cnt+1,cnt+n+1); } /** /\_/\ * (= ._.) * / >💖 \>💕 **/

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

insects.cpp:4:21: warning: extra tokens at end of #include directive
    4 | #include "insects.h";
      |                     ^
insects.cpp:34:9: warning: "/*" within comment [-Wcomment]
   34 | /**  /\_/\
      |          
insects.cpp: In function 'int min_cardinality(int)':
insects.cpp:24:13: error: 'press_buton' was not declared in this scope; did you mean 'press_button'?
   24 |     int val=press_buton();
      |             ^~~~~~~~~~~
      |             press_button