실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:14:16: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’ 14 | vector<time> t(n); | ^ Main.cpp:14:16: note: expected a type, got ‘time’ Main.cpp:14:16: error: template argument 2 is invalid Main.cpp:16:15: error: invalid types ‘int[int]’ for array subscript 16 | cin>>t[i].st>>t[i].et; | ^ Main.cpp:16:24: error: invalid types ‘int[int]’ for array subscript 16 | cin>>t[i].st>>t[i].et; | ^ Main.cpp:18:12: error: request for member ‘begin’ in ‘t’, which is of non-class type ‘int’ 18 | sort(t.begin(), t.end(), [](const time& a, const time& b){ | ^~~~~ Main.cpp:18:23: error: request for member ‘end’ in ‘t’, which is of non-class type ‘int’ 18 | sort(t.begin(), t.end(), [](const time& a, const time& b){ | ^~~ Main.cpp:18:39: error: ‘time’ does not name a type 18 | sort(t.begin(), t.end(), [](const time& a, const time& b){ | ^~~~ Main.cpp: In lambda function: Main.cpp:20:7: error: expected ‘{’ before ‘;’ token 20 | }); | ^ Main.cpp: In function ‘int main()’: Main.cpp:20:7: error: expected ‘)’ before ‘;’ token 20 | }); | ^ | ) Main.cpp:18:9: note: to match this ‘(’ 18 | sort(t.begin(), t.end(), [](const time& a, const time& b){ | ^ Main.cpp:27:14: error: invalid types ‘int[int]’ for array subscript 27 | if( t[k+p].st>=t[k].et) { | ^ Main.cpp:27:25: error: invalid types ‘int[int]’ for array subscript 27 | if( t[k+p].st>=t[k].et) { | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.