실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int query(int, int, int, int, int, int)’: Main.cpp:68:26: error: too many arguments to function ‘void update(int, int)’ 68 | return min(update(x*2,l,r-b,s,e,b/2),update(x*2+1,l+b,r,s,e,b/2)); | ~~~~~~^~~~~~~~~~~~~~~~~~~ Main.cpp:57:6: note: declared here 57 | void update(int x,int v){ | ^~~~~~ Main.cpp:68:52: error: too many arguments to function ‘void update(int, int)’ 68 | return min(update(x*2,l,r-b,s,e,b/2),update(x*2+1,l+b,r,s,e,b/2)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ Main.cpp:57:6: note: declared here 57 | void update(int x,int v){ | ^~~~~~ Main.cpp:68:26: error: invalid use of void expression 68 | return min(update(x*2,l,r-b,s,e,b/2),update(x*2+1,l+b,r,s,e,b/2)); | ~~~~~~^~~~~~~~~~~~~~~~~~~ Main.cpp: In function ‘int main()’: Main.cpp:91:43: error: ‘j’ was not declared in this scope 91 | if(query(1, 0, b, 0, dist[j].rank[1]-1,b/2) >= dist[i].rank[2]) | ^ Main.cpp:73:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 73 | scanf("%d",&n); | ~~~~~^~~~~~~~~ Main.cpp:77:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 77 | scanf("%d%d%d",&apart[0],&apart[1],&apart[2]); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Main.cpp:78:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 78 | scanf("%d",&m); | ~~~~~^~~~~~~~~ Main.cpp:80:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 80 | scanf("%d%d%d",&u,&v,&c); | ~~~~~^~~~~~~~~~~~~~~~~~~ Main.cpp:99:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 99 | scanf("%d",&t); | ~~~~~^~~~~~~~~ Main.cpp:101:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 101 | scanf("%d",&u); | ~~~~~^~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.