제출 #1191621

#제출 시각아이디문제언어결과실행 시간메모리
1191621SmuggingSpunSjekira (COCI20_sjekira)C11
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> #define taskname "D" using namespace std; typedef long long ll; 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; cin >> n; vector<int>a(n); ll ans = 0; for(int& x : a){ cin >> x; ans += x; } for(int _ = 1; _ < n; _++){ int u, v; cin >> u >> v; ans += max(a[u - 1], a[v - 1]); } cout << ans - *max_element(a.begin(), a.end()); }

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

sjekira.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.