실행 실패 (제출 코드 컴파일 에러)
Main.cpp:15:5: warning: built-in function ‘index’ declared as non-function [-Wbuiltin-declaration-mismatch] 15 | int index[100001]; | ^~~~~ Main.cpp: In function ‘int query(int, int, int, int, int, int, int)’: Main.cpp:87:30: error: return-statement with no value, in function returning ‘int’ [-fpermissive] 87 | if(r <= s || e <= l) return; | ^~~~~~ Main.cpp:90:17: error: return-statement with no value, in function returning ‘int’ [-fpermissive] 90 | return; | ^~~~~~ Main.cpp:92:9: error: ‘update’ was not declared in this scope 92 | update(x*2,l,r-b,s,e,v,b/2); | ^~~~~~ Main.cpp: In function ‘void calc()’: Main.cpp:108:44: error: ‘base’ was not declared in this scope 108 | update(1,0,base,dist[1][j]+1,base,dist[2][j],base/2); | ^~~~ Main.cpp:108:33: error: ‘update’ was not declared in this scope 108 | update(1,0,base,dist[1][j]+1,base,dist[2][j],base/2); | ^~~~~~ Main.cpp: In function ‘int main()’: Main.cpp:119:23: warning: unused variable ‘previ’ [-Wunused-variable] 119 | int m,t,u,v,c,previ; | ^~~~~ Main.cpp: In function ‘int query(int, int, int, int, int, int, int)’: Main.cpp:94:1: warning: control reaches end of non-void function [-Wreturn-type] 94 | } | ^ Main.cpp: In function ‘int main()’: Main.cpp:120:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 120 | scanf("%d",&n); | ~~~~~^~~~~~~~~ Main.cpp:123:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 123 | scanf("%d%d%d",&apart[0],&apart[1],&apart[2]); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Main.cpp:124:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 124 | scanf("%d",&m); | ~~~~~^~~~~~~~~ Main.cpp:126:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 126 | scanf("%d%d%d",&u,&v,&c); | ~~~~~^~~~~~~~~~~~~~~~~~~ Main.cpp:152:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 152 | scanf("%d",&t); | ~~~~~^~~~~~~~~ Main.cpp:154:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 154 | scanf("%d",&u); | ~~~~~^~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.