gpt4 book ai didi

java - 基础设施或预检查错误 : No class with name found

转载 作者:行者123 更新时间:2023-12-01 16:15:26 25 4
gpt4 key购买 nike

我不明白为什么会收到此错误。
谁能解释一下这个错误的含义是什么?导致此错误的原因以及解决方法。

错误:

Infra or precheck error: No class with name found

这是我的代码:

import java.util.*;

class TestClass {
public static void main(String args[] ) throws Exception {
Scanner sc = new Scanner(System.in);
int n= sc.nextInt();
String str;
String tstr;
str=sc.nextLine();
tstr=sc.nextLine();

char [] s = new char[n];
char [] t = new char[n];
for(int i=0;i<str.length();i++){
s[i]=str.charAt(i);
}
for(int i=0;i<tstr.length();i++){
t[i]=tstr.charAt(i);

}
int count=0;
for(int i=0;i<n;i++){

if(((s[i]+13)%90)>t[i]){
count=count+t[i]-s[i];

}
else if(((s[i]+13)%90)<t[i]){
count=count+t[i]-s[i]+13;

}

}
System.out.println(count);
}
}

最佳答案

您可能正在 hackerearth 上进行 Coderena 战斗。我也遇到了与使用 java 版本(1.8.1)相同的错误将其更改为 1.7.1 即可开始

关于java - 基础设施或预检查错误 : No class with name found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62405186/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com