Java SPOJ中的NZEC错误

Java SPOJ中的NZEC错误,java,Java,为什么粘贴此代码时在SPOJ中出现运行时NZEC错误 using System; public class Test { public static void Main(string[] args) { int t = int.Parse(Console.ReadLine()); while (t < 1 || t > 100) { t = int.Parse(Console.ReadLine

为什么粘贴此代码时在SPOJ中出现运行时NZEC错误

using System;

public class Test
{
    public static void Main(string[] args)
    {
        int t = int.Parse(Console.ReadLine());

        while (t < 1 || t > 100)
        {
            t = int.Parse(Console.ReadLine());
        }

        string[] words = new string[t];

        for (int i = 0; i < t; i++)
        {
            string word = Console.ReadLine();
            while (word.Length > 100 || word.Length < 1)
            {
                word = Console.ReadLine();
            }
            words[i] += word; 
        }


        foreach (var item in words)
        {
            for (int i = 0; i < item.Length / 2; i+=2)
            {
                Console.Write(item[i]);
            }
            Console.WriteLine();                
        }

    }        
}
使用系统;
公开课考试
{
公共静态void Main(字符串[]args)
{
int t=int.Parse(Console.ReadLine());
而(t<1 | | t>100)
{
t=int.Parse(Console.ReadLine());
}
字符串[]字=新字符串[t];
for(int i=0;i100 | |字长<1)
{
word=Console.ReadLine();
}
单词[i]+=单词;
}
foreach(var项目大写)
{
对于(int i=0;i

我已经尝试了我能想到的每一个输入,它运行良好。什么会使这个抛出非零错误?提前感谢。

您不能将SPOJ提交内容放入包中,因此请删除声明:

package spoj.test;
非零退出代码可能来自JVM无法加载类来运行它