실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:108:17: error: too many arguments to function ‘int rand()’ 108 | sos=rand(2,n); | ~~~~^~~~~ In file included from /usr/include/c++/11/bits/std_abs.h:38, from /usr/include/c++/11/cmath:47, from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:41, from Main.cpp:1: /usr/include/stdlib.h:454:12: note: declared here 454 | extern int rand (void) __THROW; | ^~~~ Main.cpp:109:15: error: too many arguments to function ‘int rand()’ 109 | z=rand(1,n); | ~~~~^~~~~ In file included from /usr/include/c++/11/bits/std_abs.h:38, from /usr/include/c++/11/cmath:47, from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:41, from Main.cpp:1: /usr/include/stdlib.h:454:12: note: declared here 454 | extern int rand (void) __THROW; | ^~~~ Main.cpp: In function ‘__int128 read()’: Main.cpp:13:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 13 | scanf("%s", str); | ~~~~~^~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.