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 个错误
|