실행 실패 (제출 코드 컴파일 에러)
Main.cpp:1:2: error: stray ‘#’ in program 1 | +#include<iostream> | ^ Main.cpp:1:1: error: expected unqualified-id before ‘+’ token 1 | +#include<iostream> | ^ Main.cpp: In constructor ‘Queue::Queue(int, int, int)’: Main.cpp:25:19: error: ‘malloc’ was not declared in this scope 25 | q=(Coord*)malloc(sizeof(Coord)*size); | ^~~~~~ Main.cpp:4:1: note: ‘malloc’ is defined in header ‘<cstdlib>’; did you forget to ‘#include <cstdlib>’? 3 | #include<climits> +++ |+#include <cstdlib> 4 | Main.cpp: In destructor ‘Queue::~Queue()’: Main.cpp:28:9: error: ‘free’ was not declared in this scope 28 | free(q); | ^~~~ Main.cpp:28:9: note: ‘free’ is defined in header ‘<cstdlib>’; did you forget to ‘#include <cstdlib>’? Main.cpp: In function ‘int main()’: Main.cpp:47:5: error: ‘ios_base’ has not been declared 47 | ios_base::sync_with_stdio(false); | ^~~~~~~~ Main.cpp:48:5: error: ‘cin’ was not declared in this scope 48 | cin.tie(NULL); | ^~~ Main.cpp:4:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? 3 | #include<climits> +++ |+#include <iostream> 4 | Main.cpp:49:5: error: ‘cout’ was not declared in this scope 49 | cout.tie(NULL); | ^~~~ Main.cpp:49:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? Main.cpp:54:11: warning: unused variable ‘coord’ [-Wunused-variable] 54 | Coord coord; | ^~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.