0_0_19858998_11926\Main.java:1: 错误: 需要class, interface或enum
importjava.util.*; publicclass Main { publicstaticintgetpig(int n){ int pig1=1; int pig2=0; int s=1; if(n==1) return s; else{ for(inti=2;i<=n;i++){ pig2=pig1; pig1=getpig(i-1);
^
0_0_19858998_11926\Main.java:1: 错误: 需要class, interface或enum
importjava.util.*; publicclass Main { publicstaticintgetpig(int n){ int pig1=1; int pig2=0; int s=1; if(n==1) return s; else{ for(inti=2;i<=n;i++){ pig2=pig1; pig1=getpig(i-1);
^
0_0_19858998_11926\Main.java:1: 错误: 需要class, interface或enum
importjava.util.*; publicclass Main { publicstaticintgetpig(int n){ int pig1=1; int pig2=0; int s=1; if(n==1) return s; else{ for(inti=2;i<=n;i++){ pig2=pig1; pig1=getpig(i-1);
^
0_0_19858998_11926\Main.java:1: 错误: 需要class, interface或enum
importjava.util.*; publicclass Main { publicstaticintgetpig(int n){ int pig1=1; int pig2=0; int s=1; if(n==1) return s; else{ for(inti=2;i<=n;i++){ pig2=pig1; pig1=getpig(i-1);
^
0_0_19858998_11926\Main.java:1: 错误: 需要class, interface或enum
importjava.util.*; publicclass Main { publicstaticintgetpig(int n){ int pig1=1; int pig2=0; int s=1; if(n==1) return s; else{ for(inti=2;i<=n;i++){ pig2=pig1; pig1=getpig(i-1);
^
0_0_19858998_11926\Main.java:1: 错误: 需要class, interface或enum
importjava.util.*; publicclass Main { publicstaticintgetpig(int n){ int pig1=1; int pig2=0; int s=1; if(n==1) return s; else{ for(inti=2;i<=n;i++){ pig2=pig1; pig1=getpig(i-1);
^
0_0_19858998_11926\Main.java:1: 错误: 需要class, interface或enum
importjava.util.*; publicclass Main { publicstaticintgetpig(int n){ int pig1=1; int pig2=0; int s=1; if(n==1) return s; else{ for(inti=2;i<=n;i++){ pig2=pig1; pig1=getpig(i-1);
^
0_0_19858998_11926\Main.java:1: 错误: 需要class, interface或enum
importjava.util.*; publicclass Main { publicstaticintgetpig(int n){ int pig1=1; int pig2=0; int s=1; if(n==1) return s; else{ for(inti=2;i<=n;i++){ pig2=pig1; pig1=getpig(i-1);
^
0_0_19858998_11926\Main.java:1: 错误: 需要class, interface或enum
importjava.util.*; publicclass Main { publicstaticintgetpig(int n){ int pig1=1; int pig2=0; int s=1; if(n==1) return s; else{ for(inti=2;i<=n;i++){ pig2=pig1; pig1=getpig(i-1);
^
0_0_19858998_11926\Main.java:2: 错误: 需要class, interface或enum
s=pig1+pig2; } return s; } } publicstaticvoid main(String args[]){ int k=0; Scanner s=newScanner(System.in); int n=s.nextInt(); while(k<n){ Scanner s1=newScanner(System.in); int n2=s.nextInt(); System.out.println(getpig(n2)); k++; } } }
^
0_0_19858998_11926\Main.java:2: 错误: 需要class, interface或enum
s=pig1+pig2; } return s; } } publicstaticvoid main(String args[]){ int k=0; Scanner s=newScanner(System.in); int n=s.nextInt(); while(k<n){ Scanner s1=newScanner(System.in); int n2=s.nextInt(); System.out.println(getpig(n2)); k++; } } }
^
0_0_19858998_11926\Main.java:2: 错误: 需要class, interface或enum
s=pig1+pig2; } return s; } } publicstaticvoid main(String args[]){ int k=0; Scanner s=newScanner(System.in); int n=s.nextInt(); while(k<n){ Scanner s1=newScanner(System.in); int n2=s.nextInt(); System.out.println(getpig(n2)); k++; } } }
^
0_0_19858998_11926\Main.java:2: 错误: 需要class, interface或enum
s=pig1+pig2; } return s; } } publicstaticvoid main(String args[]){ int k=0; Scanner s=newScanner(System.in); int n=s.nextInt(); while(k<n){ Scanner s1=newScanner(System.in); int n2=s.nextInt(); System.out.println(getpig(n2)); k++; } } }
^
0_0_19858998_11926\Main.java:2: 错误: 需要class, interface或enum
s=pig1+pig2; } return s; } } publicstaticvoid main(String args[]){ int k=0; Scanner s=newScanner(System.in); int n=s.nextInt(); while(k<n){ Scanner s1=newScanner(System.in); int n2=s.nextInt(); System.out.println(getpig(n2)); k++; } } }
^
0_0_19858998_11926\Main.java:2: 错误: 需要class, interface或enum
s=pig1+pig2; } return s; } } publicstaticvoid main(String args[]){ int k=0; Scanner s=newScanner(System.in); int n=s.nextInt(); while(k<n){ Scanner s1=newScanner(System.in); int n2=s.nextInt(); System.out.println(getpig(n2)); k++; } } }
^
0_0_19858998_11926\Main.java:2: 错误: 需要class, interface或enum
s=pig1+pig2; } return s; } } publicstaticvoid main(String args[]){ int k=0; Scanner s=newScanner(System.in); int n=s.nextInt(); while(k<n){ Scanner s1=newScanner(System.in); int n2=s.nextInt(); System.out.println(getpig(n2)); k++; } } }
^
0_0_19858998_11926\Main.java:2: 错误: 需要class, interface或enum
s=pig1+pig2; } return s; } } publicstaticvoid main(String args[]){ int k=0; Scanner s=newScanner(System.in); int n=s.nextInt(); while(k<n){ Scanner s1=newScanner(System.in); int n2=s.nextInt(); System.out.println(getpig(n2)); k++; } } }
^
0_0_19858998_11926\Main.java:2: 错误: 需要class, interface或enum
s=pig1+pig2; } return s; } } publicstaticvoid main(String args[]){ int k=0; Scanner s=newScanner(System.in); int n=s.nextInt(); while(k<n){ Scanner s1=newScanner(System.in); int n2=s.nextInt(); System.out.println(getpig(n2)); k++; } } }
^
0_0_19858998_11926\Main.java:2: 错误: 需要class, interface或enum
s=pig1+pig2; } return s; } } publicstaticvoid main(String args[]){ int k=0; Scanner s=newScanner(System.in); int n=s.nextInt(); while(k<n){ Scanner s1=newScanner(System.in); int n2=s.nextInt(); System.out.println(getpig(n2)); k++; } } }
^
19 个错误
|