我在编写它之后尝试调试我的程序,我遇到了这个错误:

这是我的代码:
#include<fstream>
#include <iostream>
#include <vector>
#include <string>
#define MAXINT 2147483647
using namespace std;
struct Edge
{
int id, weight;
Edge(int y, int w)
{
id = y;
weight = w;
}
};
struct Node
{
vector <Edge *> Edges;
};
struct Graph
{
vector < Node *> vertices;
vector < int > indices;
void Resize(int x)
{
if (vertices.capacity() < x)
vertices.resize(x);
}
void InsertEdge(int x, int y, int weight)
{
Resize(((x > y) ? x : y) …Run Code Online (Sandbox Code Playgroud) 我想从dateTime字段中删除时间戳.
int[] projects = {11157, 11138};
protected void compare(System.Data.DataTable dt1, System.Data.DataTable dt2, int[] arr)
{
differences.Columns.Add("ID", typeof(int));
differences.Columns.Add("BRS Date", typeof(string));
foreach (int value in arr)
{
DataRow[] result = dt1.Select("ChangeRequestNo = '" + arr +"' OR [GPP ID] = '" + arr + "'");
string brs = "";
string srs = "";
if (result.Length > 1)
{
DataRow row1 = result[0];
DataRow row2 = result[1];
DateTime row1date = (DateTime)row1[2];
DateTime row2date = (DateTime)row2[10];
//Remove the Time stamp on the dateTime …Run Code Online (Sandbox Code Playgroud)