F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39066182_4211\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_39066182_4211\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_39066182_4211\Main.java:2: 错误: 非法字符: '#'
#include <sstream>
^
0_0_39066182_4211\Main.java:6: 错误: 需要class, interface或enum
int gcdByEuclidsAlgorithm(int n1, int n2) {
^
0_0_39066182_4211\Main.java:9: 错误: 需要class, interface或enum
    }
    ^
0_0_39066182_4211\Main.java:11: 错误: 需要class, interface或enum
}
^
0_0_39066182_4211\Main.java:15: 错误: 需要class, interface或enum
    cin >> numberOflines;
    ^
0_0_39066182_4211\Main.java:16: 错误: 需要class, interface或enum
    cin.ignore(); // consume the newline after the integer input
    ^
0_0_39066182_4211\Main.java:18: 错误: 需要class, interface或enum
    string lines[numberOflines];
    ^
0_0_39066182_4211\Main.java:19: 错误: 需要class, interface或enum
    int numbers[4];
    ^
0_0_39066182_4211\Main.java:21: 错误: 需要class, interface或enum
    for (int i = 0; i < numberOflines; i++) {
    ^
0_0_39066182_4211\Main.java:21: 错误: 需要class, interface或enum
    for (int i = 0; i < numberOflines; i++) {
                    ^
0_0_39066182_4211\Main.java:21: 错误: 需要class, interface或enum
    for (int i = 0; i < numberOflines; i++) {
                                       ^
0_0_39066182_4211\Main.java:23: 错误: 需要class, interface或enum
        istringstream iss(lines[i]);
        ^
0_0_39066182_4211\Main.java:25: 错误: 需要class, interface或enum
        for (int j = 0; j < 4; j++) {
        ^
0_0_39066182_4211\Main.java:25: 错误: 需要class, interface或enum
        for (int j = 0; j < 4; j++) {
                        ^
0_0_39066182_4211\Main.java:25: 错误: 需要class, interface或enum
        for (int j = 0; j < 4; j++) {
                               ^
0_0_39066182_4211\Main.java:27: 错误: 需要class, interface或enum
        }
        ^
0_0_39066182_4211\Main.java:30: 错误: 需要class, interface或enum
        int m = numbers[1];
        ^
0_0_39066182_4211\Main.java:31: 错误: 需要class, interface或enum
        int n = numbers[2];
        ^
0_0_39066182_4211\Main.java:32: 错误: 需要class, interface或enum
        int k = numbers[3];
        ^
0_0_39066182_4211\Main.java:33: 错误: 需要class, interface或enum
        int S = gcdByEuclidsAlgorithm(static_cast<int>(pow(a, m - 1)), static_cast<int>(pow(a, n - 1))) % k;
        ^
0_0_39066182_4211\Main.java:35: 错误: 需要class, interface或enum
        cout << S << endl;
        ^
0_0_39066182_4211\Main.java:36: 错误: 需要class, interface或enum
    }
    ^
0_0_39066182_4211\Main.java:39: 错误: 需要class, interface或enum
}
^
25 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 12:34:02, Gzip enabled