0_0_36211659_9064\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_36211659_9064\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
^
0_0_36211659_9064\Main.java:3: 错误: 需要class, interface或enum
int gcd(int a , int b)
^
0_0_36211659_9064\Main.java:6: 错误: 需要class, interface或enum
}
^
0_0_36211659_9064\Main.java:10: 错误: 需要class, interface或enum
cin >> n;
^
0_0_36211659_9064\Main.java:11: 错误: 需要class, interface或enum
char cc[100];
^
0_0_36211659_9064\Main.java:12: 错误: 需要class, interface或enum
char xx[100];
^
0_0_36211659_9064\Main.java:13: 错误: 需要class, interface或enum
while(n --)
^
0_0_36211659_9064\Main.java:16: 错误: 需要class, interface或enum
cin >> ch;
^
0_0_36211659_9064\Main.java:17: 错误: 需要class, interface或enum
memset(cc,'\0',sizeof(cc));
^
0_0_36211659_9064\Main.java:18: 错误: 需要class, interface或enum
int flag = 0;
^
0_0_36211659_9064\Main.java:19: 错误: 需要class, interface或enum
for(int i = 0;i < strlen(ch);i ++)
^
0_0_36211659_9064\Main.java:19: 错误: 需要class, interface或enum
for(int i = 0;i < strlen(ch);i ++)
^
0_0_36211659_9064\Main.java:19: 错误: 需要class, interface或enum
for(int i = 0;i < strlen(ch);i ++)
^
0_0_36211659_9064\Main.java:24: 错误: 需要class, interface或enum
break;
^
0_0_36211659_9064\Main.java:25: 错误: 需要class, interface或enum
}
^
0_0_36211659_9064\Main.java:32: 错误: 需要class, interface或enum
for(int i = 3;ch[i] != ')';i ++)
^
0_0_36211659_9064\Main.java:32: 错误: 需要class, interface或enum
for(int i = 3;ch[i] != ')';i ++)
^
0_0_36211659_9064\Main.java:32: 错误: 需要class, interface或enum
for(int i = 3;ch[i] != ')';i ++)
^
0_0_36211659_9064\Main.java:36: 错误: 需要class, interface或enum
j ++;
^
0_0_36211659_9064\Main.java:37: 错误: 需要class, interface或enum
}
^
0_0_36211659_9064\Main.java:40: 错误: 需要class, interface或enum
int r = 1;
^
0_0_36211659_9064\Main.java:41: 错误: 需要class, interface或enum
while(j --)r = r * 10;
^
0_0_36211659_9064\Main.java:42: 错误: 需要class, interface或enum
int o = gcd(num,r - 1);
^
0_0_36211659_9064\Main.java:44: 错误: 需要class, interface或enum
cout << num / o << "/" << (r - 1) / o << endl;
^
0_0_36211659_9064\Main.java:45: 错误: 需要class, interface或enum
}
^
0_0_36211659_9064\Main.java:49: 错误: 需要class, interface或enum
int j = 0;
^
0_0_36211659_9064\Main.java:50: 错误: 需要class, interface或enum
int l1;
^
0_0_36211659_9064\Main.java:51: 错误: 需要class, interface或enum
int c;
^
0_0_36211659_9064\Main.java:52: 错误: 需要class, interface或enum
for(int i = 2;ch[i] != '(';i++)
^
0_0_36211659_9064\Main.java:52: 错误: 需要class, interface或enum
for(int i = 2;ch[i] != '(';i++)
^
0_0_36211659_9064\Main.java:52: 错误: 需要class, interface或enum
for(int i = 2;ch[i] != '(';i++)
^
0_0_36211659_9064\Main.java:55: 错误: 需要class, interface或enum
c = i;
^
0_0_36211659_9064\Main.java:56: 错误: 需要class, interface或enum
}
^
0_0_36211659_9064\Main.java:58: 错误: 需要class, interface或enum
j = 0;
^
0_0_36211659_9064\Main.java:59: 错误: 需要class, interface或enum
for(int i = c+2;ch[i] != ')';i++)
^
0_0_36211659_9064\Main.java:59: 错误: 需要class, interface或enum
for(int i = c+2;ch[i] != ')';i++)
^
0_0_36211659_9064\Main.java:59: 错误: 需要class, interface或enum
for(int i = c+2;ch[i] != ')';i++)
^
0_0_36211659_9064\Main.java:62: 错误: 需要class, interface或enum
}
^
0_0_36211659_9064\Main.java:64: 错误: 需要class, interface或enum
int num2 = atoi(cc);
^
0_0_36211659_9064\Main.java:65: 错误: 需要class, interface或enum
int r = 1;
^
0_0_36211659_9064\Main.java:66: 错误: 需要class, interface或enum
while(j--)r=r*10;// 循环节长度
^
0_0_36211659_9064\Main.java:67: 错误: 需要class, interface或enum
int e = 1;
^
0_0_36211659_9064\Main.java:68: 错误: 需要class, interface或enum
while(l1 --)e = e * 10;// 非循环长度
^
0_0_36211659_9064\Main.java:69: 错误: 需要class, interface或enum
int q = num1 * r + num2 - num1;
^
0_0_36211659_9064\Main.java:70: 错误: 需要class, interface或enum
int w = (r - 1) * e;
^
0_0_36211659_9064\Main.java:71: 错误: 需要class, interface或enum
int o = gcd(q,w);
^
0_0_36211659_9064\Main.java:72: 错误: 需要class, interface或enum
cout << q / o << "/" << w / o << endl;
^
0_0_36211659_9064\Main.java:73: 错误: 需要class, interface或enum
}
^
0_0_36211659_9064\Main.java:78: 错误: 需要class, interface或enum
for(int i = 2;ch[i] != '\0';i ++)
^
0_0_36211659_9064\Main.java:78: 错误: 需要class, interface或enum
for(int i = 2;ch[i] != '\0';i ++)
^
0_0_36211659_9064\Main.java:78: 错误: 需要class, interface或enum
for(int i = 2;ch[i] != '\0';i ++)
^
0_0_36211659_9064\Main.java:81: 错误: 需要class, interface或enum
}
^
0_0_36211659_9064\Main.java:83: 错误: 需要class, interface或enum
int r = 1;
^
0_0_36211659_9064\Main.java:84: 错误: 需要class, interface或enum
while(j --)r = r * 10;
^
0_0_36211659_9064\Main.java:85: 错误: 需要class, interface或enum
int o = gcd(num,r);
^
0_0_36211659_9064\Main.java:86: 错误: 需要class, interface或enum
cout << num / o << "/" << r / o << endl;
^
0_0_36211659_9064\Main.java:87: 错误: 需要class, interface或enum
}
^
58 个错误
|