제출 #1191656

#제출 시각아이디문제언어결과실행 시간메모리
1191656SmuggingSpunPizza (COCI21_pizza)C++20
50 / 50
0 ms328 KiB
#include<bits/stdc++.h> #define taskname "A" using namespace std; const int lim = 105; bitset<lim>hate; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); if(fopen(taskname".inp", "r")){ freopen(taskname".inp", "r", stdin); } int n, m; cin >> n; hate.reset(); for(int _ = 0; _ < n; _++){ int x; cin >> x; hate.set(x); } cin >> m; int ans = 0; for(int _ = 0; _ < m; _++){ bool flag = true; int k; cin >> k; for(int i = 0; i < k; i++){ int x; cin >> x; if(hate.test(x)){ flag = false; } } if(flag){ ans++; } } cout << ans; }

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

Main.cpp: In function 'int main()':
Main.cpp:9:24: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
    9 |                 freopen(taskname".inp", "r", stdin);
      |                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...