실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:22:22: error: request for member ‘frist’ in ‘m.std::map<int, int>::operator[](0)’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘int’} 22 | int width = m[0].frist; | ^~~~~ Main.cpp:23:23: error: request for member ‘second’ in ‘m.std::map<int, int>::operator[](0)’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘int’} 23 | int height = m[0].second; | ^~~~~~ Main.cpp:25:17: error: request for member ‘second’ in ‘m.std::map<int, int>::operator[](i)’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘int’} 25 | if(m[i].second > height){ | ^~~~~~ Main.cpp:26:29: error: request for member ‘frist’ in ‘m.std::map<int, int>::operator[](i)’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘int’} 26 | result += (m[i].frist - width) * height; | ^~~~~ Main.cpp:27:26: error: request for member ‘frist’ in ‘m.std::map<int, int>::operator[](i)’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘int’} 27 | width = m[i].frist; | ^~~~~ Main.cpp:28:27: error: request for member ‘second’ in ‘m.std::map<int, int>::operator[](i)’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘int’} 28 | height = m[i].second; | ^~~~~~ Main.cpp:32:22: error: request for member ‘frist’ in ‘m.std::map<int, int>::operator[]((n - 1))’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘int’} 32 | width = m[n - 1].frist; | ^~~~~ Main.cpp:33:23: error: request for member ‘second’ in ‘m.std::map<int, int>::operator[]((n - 1))’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘int’} 33 | height = m[n - 1].second; | ^~~~~~ Main.cpp:35:17: error: request for member ‘second’ in ‘m.std::map<int, int>::operator[](i)’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘int’} 35 | if(m[i].second > height){ | ^~~~~~ Main.cpp:36:37: error: request for member ‘frist’ in ‘m.std::map<int, int>::operator[](i)’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘int’} 36 | result += (width - m[i].frist) * height; | ^~~~~ Main.cpp:37:26: error: request for member ‘frist’ in ‘m.std::map<int, int>::operator[](i)’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘int’} 37 | width = m[i].frist; | ^~~~~ Main.cpp:38:27: error: request for member ‘second’ in ‘m.std::map<int, int>::operator[](i)’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘int’} 38 | height = m[i].second; | ^~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.