제출 #969519

#제출 시각아이디문제언어결과실행 시간메모리
969519elotelo966동굴 (IOI13_cave)C++17
컴파일 에러
0 ms0 KiB
#pragma GCC optimize("O3,unroll-loops") #pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> using namespace std; #define int long long #define OYY 100000000000005 #define mod 998244353 #define faster ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); #define FOR for(int i=1;i<=n;i++) #define mid (start+end)/2 #define lim 200005 #define fi first #define se second int arr[lim]; bool kesin[lim]; inline void change(int l,int kac,int val){ int cur=l,adet=0; while(kac){ if(kesin[cur]){ cur++; } else{ kac--; arr[cur]=val; } } } int32_t main(){ faster int n;cin>>n; int ans[n]; for(int i=0;i<n;i++){ int door=tryCombination(arr); if(door!=i)ans[i]=0; //cevap 0da else ans[i]=1; // cevap 1de } return 0; }

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

cave.cpp: In function 'void change(long long int, long long int, long long int)':
cave.cpp:20:12: warning: unused variable 'adet' [-Wunused-variable]
   20 |  int cur=l,adet=0;
      |            ^~~~
cave.cpp: In function 'int32_t main()':
cave.cpp:39:12: error: 'tryCombination' was not declared in this scope
   39 |   int door=tryCombination(arr);
      |            ^~~~~~~~~~~~~~