0_0_20784397_3595\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_20784397_3595\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>
^
0_0_20784397_3595\Main.java:2: 错误: 非法字符: '#'
#include<string.h>
^
0_0_20784397_3595\Main.java:6: 错误: 需要class, interface或enum
int flag;
^
0_0_20784397_3595\Main.java:7: 错误: 需要class, interface或enum
}a[105];
^
0_0_20784397_3595\Main.java:8: 错误: 需要class, interface或enum
int count; /*记录次数*/
^
0_0_20784397_3595\Main.java:9: 错误: 需要class, interface或enum
double sum; /*记录时间*/
^
0_0_20784397_3595\Main.java:10: 错误: 需要class, interface或enum
int main()
^
0_0_20784397_3595\Main.java:13: 错误: 需要class, interface或enum
char c;
^
0_0_20784397_3595\Main.java:14: 错误: 需要class, interface或enum
sum=0;
^
0_0_20784397_3595\Main.java:15: 错误: 需要class, interface或enum
count=0;
^
0_0_20784397_3595\Main.java:16: 错误: 需要class, interface或enum
memset(a,0,sizeof(a)); /*初始化*/
^
0_0_20784397_3595\Main.java:17: 错误: 需要class, interface或enum
while(1)
^
0_0_20784397_3595\Main.java:20: 错误: 需要class, interface或enum
if(num==-1)
^
0_0_20784397_3595\Main.java:22: 错误: 需要class, interface或enum
getchar(); /*吸收空格*/
^
0_0_20784397_3595\Main.java:23: 错误: 需要class, interface或enum
scanf("%c",&c); /*租船状态*/
^
0_0_20784397_3595\Main.java:24: 错误: 需要class, interface或enum
scanf("%d:%d",&h,&m);
^
0_0_20784397_3595\Main.java:25: 错误: 需要class, interface或enum
if(num==0) /*一天租船工作结束*/
^
0_0_20784397_3595\Main.java:29: 错误: 需要class, interface或enum
else
^
0_0_20784397_3595\Main.java:31: 错误: 需要class, interface或enum
sum=0;
^
0_0_20784397_3595\Main.java:32: 错误: 需要class, interface或enum
count=0;
^
0_0_20784397_3595\Main.java:33: 错误: 需要class, interface或enum
continue;
^
0_0_20784397_3595\Main.java:34: 错误: 需要class, interface或enum
}
^
0_0_20784397_3595\Main.java:38: 错误: 需要class, interface或enum
a[num].flag=1;
^
0_0_20784397_3595\Main.java:39: 错误: 需要class, interface或enum
}
^
0_0_20784397_3595\Main.java:45: 错误: 需要class, interface或enum
count++; /*次数*/
^
0_0_20784397_3595\Main.java:46: 错误: 需要class, interface或enum
a[num].flag=0; /*标记船已归还*/
^
0_0_20784397_3595\Main.java:47: 错误: 需要class, interface或enum
}
^
0_0_20784397_3595\Main.java:51: 错误: 需要class, interface或enum
}
^
29 个错误
|