0_0_20866819_19473\Main.java:1: 错误: 非法字符: '#'
#include "stdio.h"
^
0_0_20866819_19473\Main.java:1: 错误: 需要class, interface或enum
#include "stdio.h"
^
0_0_20866819_19473\Main.java:2: 错误: 非法字符: '#'
#include "string.h"
^
0_0_20866819_19473\Main.java:3: 错误: 非法字符: '#'
#include <queue>
^
0_0_20866819_19473\Main.java:5: 错误: 非法字符: '#'
#define MAX_N 10010
^
0_0_20866819_19473\Main.java:6: 错误: 非法字符: '#'
#define MAX_P_L 64
^
0_0_20866819_19473\Main.java:7: 错误: 非法字符: '#'
#define MAX_T_L 1000010
^
0_0_20866819_19473\Main.java:9: 错误: 需要class, interface或enum
char g_Target[MAX_T_L];
^
0_0_20866819_19473\Main.java:10: 错误: 需要class, interface或enum
bool g_Found[MAX_N];
^
0_0_20866819_19473\Main.java:12: 错误: 需要class, interface或enum
struct TrieNode{
^
0_0_20866819_19473\Main.java:15: 错误: 需要class, interface或enum
}
^
0_0_20866819_19473\Main.java:17: 错误: 需要class, interface或enum
for (int i = 0; i < 26; i++){
^
0_0_20866819_19473\Main.java:17: 错误: 需要class, interface或enum
for (int i = 0; i < 26; i++){
^
0_0_20866819_19473\Main.java:20: 错误: 需要class, interface或enum
}
^
0_0_20866819_19473\Main.java:24: 错误: 需要class, interface或enum
TrieNode* failureLink;
^
0_0_20866819_19473\Main.java:25: 错误: 需要class, interface或enum
int patternIdx;
^
0_0_20866819_19473\Main.java:26: 错误: 需要class, interface或enum
};
^
0_0_20866819_19473\Main.java:28: 错误: 需要class, interface或enum
void insert(TrieNode* root, const char* pattern, int patternIdx){
^
0_0_20866819_19473\Main.java:30: 错误: 需要class, interface或enum
if (c){
^
0_0_20866819_19473\Main.java:32: 错误: 需要class, interface或enum
if (!root->children[idx]){
^
0_0_20866819_19473\Main.java:34: 错误: 需要class, interface或enum
}
^
0_0_20866819_19473\Main.java:36: 错误: 需要class, interface或enum
} else{
^
0_0_20866819_19473\Main.java:38: 错误: 需要class, interface或enum
}
^
0_0_20866819_19473\Main.java:43: 错误: 需要class, interface或enum
for (int i = 0; i < 26; i++){
^
0_0_20866819_19473\Main.java:43: 错误: 需要class, interface或enum
for (int i = 0; i < 26; i++){
^
0_0_20866819_19473\Main.java:43: 错误: 需要class, interface或enum
for (int i = 0; i < 26; i++){
^
0_0_20866819_19473\Main.java:46: 错误: 需要class, interface或enum
queue.push(root->children[i]);
^
0_0_20866819_19473\Main.java:47: 错误: 需要class, interface或enum
}
^
0_0_20866819_19473\Main.java:51: 错误: 需要class, interface或enum
queue.pop();
^
0_0_20866819_19473\Main.java:52: 错误: 需要class, interface或enum
for (int i = 0; i < 26; i++){
^
0_0_20866819_19473\Main.java:52: 错误: 需要class, interface或enum
for (int i = 0; i < 26; i++){
^
0_0_20866819_19473\Main.java:52: 错误: 需要class, interface或enum
for (int i = 0; i < 26; i++){
^
0_0_20866819_19473\Main.java:55: 错误: 需要class, interface或enum
while (failureLink && !failureLink->children[i]){
^
0_0_20866819_19473\Main.java:57: 错误: 需要class, interface或enum
}
^
0_0_20866819_19473\Main.java:60: 错误: 需要class, interface或enum
} else{
^
0_0_20866819_19473\Main.java:62: 错误: 需要class, interface或enum
}
^
0_0_20866819_19473\Main.java:64: 错误: 需要class, interface或enum
}
^
0_0_20866819_19473\Main.java:71: 错误: 需要class, interface或enum
TrieNode* current = root;
^
0_0_20866819_19473\Main.java:72: 错误: 需要class, interface或enum
while (g_Target[i]){
^
0_0_20866819_19473\Main.java:74: 错误: 需要class, interface或enum
while (!current->children[idx] && current != root){
^
0_0_20866819_19473\Main.java:76: 错误: 需要class, interface或enum
}
^
0_0_20866819_19473\Main.java:78: 错误: 需要class, interface或enum
if (!current){
^
0_0_20866819_19473\Main.java:80: 错误: 需要class, interface或enum
}
^
0_0_20866819_19473\Main.java:82: 错误: 需要class, interface或enum
while (temp != root && temp->patternIdx >= 0) {
^
0_0_20866819_19473\Main.java:84: 错误: 需要class, interface或enum
temp = temp->failureLink;
^
0_0_20866819_19473\Main.java:85: 错误: 需要class, interface或enum
}
^
0_0_20866819_19473\Main.java:100: 错误: 需要class, interface或enum
scanf("%d", &testCases);
^
0_0_20866819_19473\Main.java:101: 错误: 需要class, interface或enum
for (int t = 0; t < testCases; t++){
^
0_0_20866819_19473\Main.java:101: 错误: 需要class, interface或enum
for (int t = 0; t < testCases; t++){
^
0_0_20866819_19473\Main.java:101: 错误: 需要class, interface或enum
for (int t = 0; t < testCases; t++){
^
0_0_20866819_19473\Main.java:103: 错误: 需要class, interface或enum
int N;
^
0_0_20866819_19473\Main.java:104: 错误: 需要class, interface或enum
scanf("%d", &N);
^
0_0_20866819_19473\Main.java:105: 错误: 需要class, interface或enum
TrieNode root;
^
0_0_20866819_19473\Main.java:106: 错误: 需要class, interface或enum
for (int i = 0; i < N; i++){
^
0_0_20866819_19473\Main.java:106: 错误: 需要class, interface或enum
for (int i = 0; i < N; i++){
^
0_0_20866819_19473\Main.java:106: 错误: 需要class, interface或enum
for (int i = 0; i < N; i++){
^
0_0_20866819_19473\Main.java:108: 错误: 需要class, interface或enum
insert(&root, g_Pattern, i);
^
0_0_20866819_19473\Main.java:109: 错误: 需要class, interface或enum
}
^
0_0_20866819_19473\Main.java:111: 错误: 需要class, interface或enum
scanf("%s", g_Target);
^
0_0_20866819_19473\Main.java:112: 错误: 需要class, interface或enum
search_by_AC_algorithm(&root);
^
0_0_20866819_19473\Main.java:114: 错误: 需要class, interface或enum
int count = 0;
^
0_0_20866819_19473\Main.java:115: 错误: 需要class, interface或enum
for (int i = 0; i < N; i++){
^
0_0_20866819_19473\Main.java:115: 错误: 需要class, interface或enum
for (int i = 0; i < N; i++){
^
0_0_20866819_19473\Main.java:115: 错误: 需要class, interface或enum
for (int i = 0; i < N; i++){
^
0_0_20866819_19473\Main.java:118: 错误: 需要class, interface或enum
}
^
0_0_20866819_19473\Main.java:121: 错误: 需要class, interface或enum
}
^
0_0_20866819_19473\Main.java:124: 错误: 需要class, interface或enum
}
^
67 个错误
|