실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:10:9: error: ‘vector’ undeclared (first use in this function) 10 | vector<pair<long long, long long>> v; | ^~~~~~ Main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in Main.c:10:16: error: ‘pair’ undeclared (first use in this function) 10 | vector<pair<long long, long long>> v; | ^~~~ Main.c:10:21: error: expected expression before ‘long’ 10 | vector<pair<long long, long long>> v; | ^~~~ Main.c:13:17: error: ‘v’ undeclared (first use in this function) 13 | v.push_back(pair<long long, long long>(in,h)); | ^ Main.c:13:34: error: expected expression before ‘long’ 13 | v.push_back(pair<long long, long long>(in,h)); | ^~~~ Main.c:16:9: warning: implicit declaration of function ‘sort’ [-Wimplicit-function-declaration] 16 | sort(v.begin(),v.begin()+N); | ^~~~ Main.c:30:25: warning: implicit declaration of function ‘min’; did you mean ‘main’? [-Wimplicit-function-declaration] 30 | shadow+=min(v[i].second,x); | ^~~ | main Main.c:19:13: warning: variable ‘maxh’ set but not used [-Wunused-but-set-variable] 19 | int maxh=0; | ^~~~ Main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d %d",&N,&t); | ^~~~~~~~~~~~~~~~~~~~ Main.c:12:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%lld %lld",&in,&h); | ^~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.