제출 #571400

#제출 시각아이디문제언어결과실행 시간메모리
571400amukkalirPoi (IOI09_poi)C++17
컴파일 에러
0 ms0 KiB
#include "bits\stdc++.h" using namespace std; const int nax = 2000; int pt[nax+5]; signed main () { int n, t, p; scanf("%d %d %d", &n, &t, &p); bool sc[n][t]; for(int i=0; i<n; i++) { for(int j=0; j<t; j++) { int x; scanf("%d", &x); pt[j] += (x==0); sc[i][j] = x; } } //point, task, id vector<pair<pair<int,int>, int>> ans; for(int i=0; i<n; i++) { int point = 0, task = 0, id = i+1; for(int j=0; j<t; j++) { task += sc[i][j]; if(sc[i][j]) point += pt[j]; } //cout << id << " " << point << endl; ans.push_back({{-point, -task}, id}); } sort(ans.begin(), ans.end()); for(int i=0; i<n; i++) { //cout << ans[i].first.first*-1 << " " << ans[i].first.second*-1 << ' ' << ans[i].second << endl; if(ans[i].second == p) { printf("%d %d", ans[i].first.first * -1, i+1); return 0; } } }

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

poi.cpp:1:10: fatal error: bits\stdc++.h: No such file or directory
    1 | #include "bits\stdc++.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.