실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:13:29: error: request for member ‘first’ in ‘v.std::vector<int>::operator[](((std::vector<int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’} 13 | cin >> v[i].first; | ^~~~~ Main.cpp:14:22: error: request for member ‘second’ in ‘v.std::vector<int>::operator[](((std::vector<int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’} 14 | v[i].second = i; | ^~~~~~ Main.cpp:19:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 19 | for(int i = 0; i < v.size(); i++) | ~~^~~~~~~~~~ Main.cpp:29:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 29 | for(int i = 0; i < v.size(); i++) | ~~^~~~~~~~~~ Main.cpp:8:26: warning: unused variable ‘temp’ [-Wunused-variable] 8 | int n, taesu, p, temp; | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.