0_0_23555879_26050.cpp:3:13: error: 's' does not name a type
s[i]=(a*s[i-1]+b*s[i-2])%7; for(j=1;j<i-1;j++)//第二个循环 { if(s[j-1]==s[i-1]&&s[j]==s[i]){ T=i-j; break; } } } n = n%T; printf("%ld\n",s[n-1]); } return 0; }
^
0_0_23555879_26050.cpp:3:53: error: expected unqualified-id before 'for'
s[i]=(a*s[i-1]+b*s[i-2])%7; for(j=1;j<i-1;j++)//第二个循环 { if(s[j-1]==s[i-1]&&s[j]==s[i]){ T=i-j; break; } } } n = n%T; printf("%ld\n",s[n-1]); } return 0; }
^
0_0_23555879_26050.cpp:3:61: error: 'j' does not name a type
s[i]=(a*s[i-1]+b*s[i-2])%7; for(j=1;j<i-1;j++)//第二个循环 { if(s[j-1]==s[i-1]&&s[j]==s[i]){ T=i-j; break; } } } n = n%T; printf("%ld\n",s[n-1]); } return 0; }
^
0_0_23555879_26050.cpp:3:67: error: 'j' does not name a type
s[i]=(a*s[i-1]+b*s[i-2])%7; for(j=1;j<i-1;j++)//第二个循环 { if(s[j-1]==s[i-1]&&s[j]==s[i]){ T=i-j; break; } } } n = n%T; printf("%ld\n",s[n-1]); } return 0; }
^
|