실행 실패 (제출 코드 컴파일 에러)
Main.cpp:22:12: error: stray ‘#’ in program 22 | int main(){#include <iostream> | ^ Main.cpp: In function ‘void DFS(int, std::vector<int>*, bool*)’: Main.cpp:13:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 13 | for(int i=0; i<graph[start].size(); i++){ | ~^~~~~~~~~~~~~~~~~~~~ Main.cpp: In function ‘int main()’: Main.cpp:22:13: error: ‘include’ was not declared in this scope 22 | int main(){#include <iostream> | ^~~~~~~ Main.cpp:22:30: error: expected primary-expression before ‘>’ token 22 | int main(){#include <iostream> | ^ Main.cpp:26:1: error: expected primary-expression before ‘using’ 26 | using namespace std; | ^~~~~ Main.cpp:30:55: error: a function-definition is not allowed here before ‘{’ token 30 | void DFS(int start, vector<int> graph[], bool check[]){ | ^ Main.cpp:44:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 44 | int main(){ | ^~ Main.cpp:44:9: note: remove parentheses to default-initialize a variable 44 | int main(){ | ^~ | -- Main.cpp:44:9: note: or replace parentheses with braces to value-initialize a variable Main.cpp:44:11: error: a function-definition is not allowed here before ‘{’ token 44 | int main(){ | ^ Main.cpp:28:11: warning: unused variable ‘MAX’ [-Wunused-variable] 28 | const int MAX =10; | ^~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.