실행 실패 (제출 코드 컴파일 에러)
Main.cpp:40:4: error: stray ‘#’ in program 40 | }#include <iostream> | ^ Main.cpp: In function ‘int main(int, char**)’: Main.cpp:40:14: error: ‘iostream’ was not declared in this scope; did you mean ‘std::iostream’? 40 | }#include <iostream> | ^~~~~~~~ | std::iostream In file included from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/iosfwd:144:41: note: ‘std::iostream’ declared here 144 | typedef basic_iostream<char> iostream; | ^~~~~~~~ Main.cpp:40:5: error: ‘include’ was not declared in this scope 40 | }#include <iostream> | ^~~~~~~ Main.cpp:45:1: error: expected primary-expression before ‘int’ 45 | int main(int argc, char* argv[]){ | ^~~ Main.cpp:8:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d %d", &N, &S); | ~~~~~^~~~~~~~~~~~~~~~~ Main.cpp:12:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%d ", &arr[i]); | ~~~~~^~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.