실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp:1:10: error: #include expects \"FILENAME\" or <FILENAME>\n 1 | #include bits/stdc++.h>\n | ^~~~\nMain.cpp:8:6: error: variable or field \u2018traverse\u2019 declared void\n 8 | void traverse(vector<int> &cost_list, int cost, int init_city, int travel_count, int start_city)\n | ^~~~~~~~\nMain.cpp:8:15: error: \u2018vector\u2019 was not declared in this scope\n 8 | void traverse(vector<int> &cost_list, int cost, int init_city, int travel_count, int start_city)\n | ^~~~~~\nMain.cpp:1:1: note: \u2018std::vector\u2019 is defined in header \u2018<vector>\u2019; did you forget to \u2018#include <vector>\u2019?\n +++ |+#include <vector>\n 1 | #include bits/stdc++.h>\nMain.cpp:8:22: error: expected primary-expression before \u2018int\u2019\n 8 | void traverse(vector<int> &cost_list, int cost, int init_city, int travel_count, int start_city)\n | ^~~\nMain.cpp:8:39: error: expected primary-expression before \u2018int\u2019\n 8 | void traverse(vector<int> &cost_list, int cost, int init_city, int travel_count, int start_city)\n | ^~~\nMain.cpp:8:49: error: expected primary-expression before \u2018int\u2019\n 8 | void traverse(vector<int> &cost_list, int cost, int init_city, int travel_count, int start_city)\n | ^~~\nMain.cpp:8:64: error: expected primary-expression before \u2018int\u2019\n 8 | void traverse(vector<int> &cost_list, int cost, int init_city, int travel_count, int start_city)\n | ^~~\nMain.cpp:8:82: error: expected primary-expression before \u2018int\u2019\n 8 | void traverse(vector<int> &cost_list, int cost, int init_city, int travel_count, int start_city)\n | ^~~\nMain.cpp:25:6: error: variable or field \u2018printv\u2019 declared void\n 25 | void printv(vector<int> cost_list)\n | ^~~~~~\nMain.cpp:25:13: error: \u2018vector\u2019 was not declared in this scope\n 25 | void printv(vector<int> cost_list)\n | ^~~~~~\nMain.cpp:25:13: note: \u2018std::vector\u2019 is defined in header \u2018<vector>\u2019; did you forget to \u2018#include <vector>\u2019?\nMain.cpp:25:20: error: expected primary-expression before \u2018int\u2019\n 25 | void printv(vector<int> cost_list)\n | ^~~\nMain.cpp: In function \u2018int travel(int, int, int)\u2019:\nMain.cpp:35:5: error: \u2018vector\u2019 was not declared in this scope\n 35 | vector<int> cost_list;\n | ^~~~~~\nMain.cpp:35:5: note: \u2018std::vector\u2019 is defined in header \u2018<vector>\u2019; did you forget to \u2018#include <vector>\u2019?\nMain.cpp:35:12: error: expected primary-expression before \u2018int\u2019\n 35 | vector<int> cost_list;\n | ^~~\nMain.cpp:37:14: error: \u2018cost_list\u2019 was not declared in this scope\n 37 | traverse(cost_list, cost, start_city, travel_count, start_city);\n | ^~~~~~~~~\nMain.cpp:37:5: error: \u2018traverse\u2019 was not declared in this scope; did you mean \u2018travel\u2019?\n 37 | traverse(cost_list, cost, start_city, travel_count, start_city);\n | ^~~~~~~~\n | travel\nMain.cpp:39:5: error: \u2018sort\u2019 was not declared in this scope; did you mean \u2018short\u2019?\n 39 | sort(cost_list.begin(), cost_list.end());\n | ^~~~\n | short\nMain.cpp: In function \u2018int main()\u2019:\nMain.cpp:45:5: error: \u2018cin\u2019 was not declared in this scope\n 45 | cin >> N;\n | ^~~\nMain.cpp:1:1: note: \u2018std::cin\u2019 is defined in header \u2018<iostream>\u2019; did you forget to \u2018#include <iostream>\u2019?\n +++ |+#include <iostream>\n 1 | #include bits/stdc++.h>\nMain.cpp:56:18: error: \u2018mi(...truncated, total 4450 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.