실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:10:5: error: ‘vector’ was not declared in this scope 10 | vector<int> many(8001, 0); | ^~~~~~ Main.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’? +++ |+#include <vector> 1 | using namespace std; Main.cpp:3:13: error: expected primary-expression before ‘long’ 3 | #define int long long int | ^~~~ Main.cpp:10:12: note: in expansion of macro ‘int’ 10 | vector<int> many(8001, 0); | ^~~ Main.cpp:11:5: error: ‘scanf’ was not declared in this scope 11 | scanf("%lld", &a); | ^~~~~ Main.cpp:3:13: error: expected primary-expression before ‘long’ 3 | #define int long long int | ^~~~ Main.cpp:12:12: note: in expansion of macro ‘int’ 12 | vector<int> num; | ^~~ Main.cpp:16:9: error: ‘cin’ was not declared in this scope 16 | cin >> temp; | ^~~ Main.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? +++ |+#include <iostream> 1 | using namespace std; Main.cpp:18:9: error: ‘num’ was not declared in this scope; did you mean ‘enum’? 18 | num.push_back(temp); | ^~~ | enum Main.cpp:19:13: error: ‘max’ was not declared in this scope; did you mean ‘maxx’? 19 | b = max(b, temp); | ^~~ | maxx Main.cpp:20:13: error: ‘min’ was not declared in this scope; did you mean ‘main’? 20 | c = min(c, temp); | ^~~ | main Main.cpp:22:9: error: ‘many’ was not declared in this scope 22 | many[temp + 4000]++; | ^~~~ Main.cpp:28:8: error: ‘round’ was not declared in this scope 28 | qw=round(qw); | ^~~~~ Main.cpp:32:10: error: ‘num’ was not declared in this scope; did you mean ‘enum’? 32 | sort(num.begin(), num.end()); | ^~~ | enum Main.cpp:32:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’? 32 | sort(num.begin(), num.end()); | ^~~~ | short Main.cpp:3:13: error: expected primary-expression before ‘long’ 3 | #define int long long int | ^~~~ Main.cpp:36:12: note: in expansion of macro ‘int’ 36 | vector<int> mode_values; // 최빈값을 여러 개 저장할 배열 | ^~~ Main.cpp:38:13: error: ‘many’ was not declared in this scope 38 | if (many[i] > maxx) { | ^~~~ Main.cpp:40:13: error: ‘mode_values’ was not declared in this scope 40 | mode_values.clear(); // 새로운 최빈값 발견, 이전값들 초기화 | ^~~~~~~~~~~ Main.cpp:43:13: error: ‘mode_values’ was not declared in this scope 43 | mode_values.push_back(i - 4000); // 동일한 최빈값을 저장 | ^~~~~~~~~~~ Main.cpp:48:9: error: ‘mode_values’ was not declared in this scope 48 | if (mode_values.size() > 1) { | ^~~~~~~~~~~ Main.cpp:55:5: error: ‘printf’ was not declared in this scope 55 | printf("%.0f\n%lld\n%lld\n%lld\n", qw, n, p, b - c); | ^~~~~~ Main.cpp:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? +++ |+#include <cstdio> 1 | using namespace std;
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.