#include <stdio.h> #include <vector> #include <algorithm> using namespace std; struct task { int ID; int priority; int start; int time; }; bool compare(const task& task1, const task& task2) { return task1.priority>task2.priority; } int main() { vector<task> ...