求 我翻译不了这个错误
  • 板块灌水区
  • 楼主luogu_tanbozhi
  • 当前回复6
  • 已保存回复6
  • 发布时间2024/5/22 20:52
  • 上次更新2024/5/22 22:59:09
查看原帖
求 我翻译不了这个错误
1321076
luogu_tanbozhi楼主2024/5/22 20:52

代码:



#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]

2024/5/22 20:52
加载中...