실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:5:9: error: ‘cin’ was not declared in this scope 5 | cin >> N >> M; | ^~~ Main.cpp:7:9: error: ‘vector’ was not declared in this scope 7 | vector <int> A(N, 0); // 재료들을 담을 배열 (크기 N, 0으로 모두 초기화) | ^~~~~~ Main.cpp:7:17: error: expected primary-expression before ‘int’ 7 | vector <int> A(N, 0); // 재료들을 담을 배열 (크기 N, 0으로 모두 초기화) | ^~~ Main.cpp:13:24: error: ‘A’ was not declared in this scope 13 | cin >> A[i]; | ^ Main.cpp:16:14: error: ‘A’ was not declared in this scope 16 | sort(A.begin(), A.end()); // 오름차순 정렬 | ^ Main.cpp:16:9: error: ‘sort’ was not declared in this scope; did you mean ‘short’? 16 | sort(A.begin(), A.end()); // 오름차순 정렬 | ^~~~ | short Main.cpp:42:9: error: ‘cout’ was not declared in this scope; did you mean ‘count’? 42 | cout << count << endl; | ^~~~ | count Main.cpp:42:26: error: ‘endl’ was not declared in this scope 42 | cout << count << endl; | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.