代码:
#include <bits/stdc++.h>
#include <windows.h>
#include <conio.h>
#define INF 1e9
using namespace std;
typedef long long U;
typedef float F;
typedef double D;
typedef __int128 K;
typedef long L;
typedef int I;
typedef char C;
typedef string S;
typedef bool O;
//variable here
int n, m, t, s;
vector<int> a;
int main(int argc, char** argv)
{
//system things here
system("color f0");
//code here
cin>>n>>m;
for(int i; i<n; i++)
{
cin>>t;
a.push_back("t");
}
t = 0;
for(int i; i<n; i++){
t += a[i];
if (t < m)
{
continue;
}else{
s++;
}
}
//RT0
return 0;
}
显示 32 15 [Error] invalid conversion from 'const char*' to 'std::vector::value_type' {aka 'int'} [-fpermissive]