실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:2:5: error: ‘ios’ has not been declared 2 | ios::sync_with_stdio(false); | ^~~ Main.cpp:3:5: error: ‘cin’ was not declared in this scope 3 | cin.tie(NULL); cout.tie(NULL); | ^~~ Main.cpp:3:13: error: ‘NULL’ was not declared in this scope 3 | cin.tie(NULL); cout.tie(NULL); | ^~~~ Main.cpp:1:1: note: ‘NULL’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’? +++ |+#include <cstddef> 1 | int main() { Main.cpp:3:20: error: ‘cout’ was not declared in this scope 3 | cin.tie(NULL); cout.tie(NULL); | ^~~~ Main.cpp:5:5: error: ‘vector’ was not declared in this scope 5 | vector<double> nums(n); cin >> nums[0]; ans = nums[0]; | ^~~~~~ Main.cpp:5:12: error: expected primary-expression before ‘double’ 5 | vector<double> nums(n); cin >> nums[0]; ans = nums[0]; | ^~~~~~ Main.cpp:5:36: error: ‘nums’ was not declared in this scope 5 | vector<double> nums(n); cin >> nums[0]; ans = nums[0]; | ^~~~ Main.cpp:11:13: error: ‘fixed’ was not declared in this scope 11 | cout << fixed; | ^~~~~ Main.cpp:13:13: error: ‘round’ was not declared in this scope 13 | cout << round(ans * 1000) / 1000.0 << endl; | ^~~~~ Main.cpp:13:43: error: ‘endl’ was not declared in this scope 13 | cout << round(ans * 1000) / 1000.0 << endl; | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.