F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_17193989_26611.cpp:68:5: error: redefinition of 'int cas'
 int cas,n,v1,v2,t1,t2,ta,tb,ncity;
     ^
0_0_17193989_26611.cpp:4:5: note: 'int cas' previously declared here
 int cas,n,k;
     ^
0_0_17193989_26611.cpp:68:9: error: redefinition of 'int n'
 int cas,n,v1,v2,t1,t2,ta,tb,ncity;
         ^
0_0_17193989_26611.cpp:4:9: note: 'int n' previously declared here
 int cas,n,k;
         ^
0_0_17193989_26611.cpp: In function 'int main()':
0_0_17193989_26611.cpp:92:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_17193989_26611.cpp:53:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_17193989_26611.cpp: At global scope:
0_0_17193989_26611.cpp:129:5: error: redefinition of 'int n'
 int n,m;
     ^
0_0_17193989_26611.cpp:4:9: note: 'int n' previously declared here
 int cas,n,k;
         ^
0_0_17193989_26611.cpp:129:7: error: conflicting declaration 'int m'
 int n,m;
       ^
0_0_17193989_26611.cpp:69:5: note: previous declaration as 'int m [32][32]'
 int m[32][32];//标记初始矩阵
     ^
0_0_17193989_26611.cpp:131:8: error: redefinition of 'struct jz'
 struct jz{
        ^
0_0_17193989_26611.cpp:71:8: error: previous definition of 'struct jz'
 struct jz{
        ^
0_0_17193989_26611.cpp: In function 'jz binMat(int)':
0_0_17193989_26611.cpp:171:16: error: ambiguating new declaration of 'jz binMat(int)'
 jz binMat(int k){
                ^
0_0_17193989_26611.cpp:35:5: note: old declaration 'mat binMat(int)'
 mat binMat(int k){
     ^
0_0_17193989_26611.cpp: In function 'int main()':
0_0_17193989_26611.cpp:180:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_17193989_26611.cpp:53:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_17193989_26611.cpp:185:16: error: invalid conversion from 'int (*)[32]' to 'int' [-fpermissive]
   jz r=binMat(m);  
                ^
0_0_17193989_26611.cpp:35:5: note: initializing argument 1 of 'mat binMat(int)'
 mat binMat(int k){
     ^
0_0_17193989_26611.cpp:185:16: error: conversion from 'mat' to non-scalar type 'jz' requested
   jz r=binMat(m);  
                ^
0_0_17193989_26611.cpp: At global scope:
0_0_17193989_26611.cpp:193:5: error: redefinition of 'int cas'
 int cas,n,m;
     ^
0_0_17193989_26611.cpp:4:5: note: 'int cas' previously declared here
 int cas,n,k;
     ^
0_0_17193989_26611.cpp:193:9: error: redefinition of 'int n'
 int cas,n,m;
         ^
0_0_17193989_26611.cpp:4:9: note: 'int n' previously declared here
 int cas,n,k;
         ^
0_0_17193989_26611.cpp:193:11: error: conflicting declaration 'int m'
 int cas,n,m;
           ^
0_0_17193989_26611.cpp:69:5: note: previous declaration as 'int m [32][32]'
 int m[32][32];//标记初始矩阵
     ^
0_0_17193989_26611.cpp:197:8: error: redefinition of 'struct jz'
 struct jz{
        ^
0_0_17193989_26611.cpp:71:8: error: previous definition of 'struct jz'
 struct jz{
        ^
0_0_17193989_26611.cpp: In function 'int main()':
0_0_17193989_26611.cpp:224:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_17193989_26611.cpp:53:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_17193989_26611.cpp: At global scope:
0_0_17193989_26611.cpp:253:8: error: redefinition of 'struct mat'
 struct mat{
        ^
0_0_17193989_26611.cpp:7:8: error: previous definition of 'struct mat'
 struct mat{
        ^
0_0_17193989_26611.cpp: In function 'mat binMat(int)':
0_0_17193989_26611.cpp:274:5: error: redefinition of 'mat binMat(int)'
 mat binMat(int k){
     ^
0_0_17193989_26611.cpp:35:5: note: 'mat binMat(int)' previously defined here
 mat binMat(int k){
     ^
0_0_17193989_26611.cpp: In function 'int main()':
0_0_17193989_26611.cpp:281:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_17193989_26611.cpp:53:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_17193989_26611.cpp: At global scope:
0_0_17193989_26611.cpp:299:5: error: redefinition of 'int cas'
 int cas,f1,f2,a,b,n,m,k;
     ^
0_0_17193989_26611.cpp:4:5: note: 'int cas' previously declared here
 int cas,n,k;
     ^
0_0_17193989_26611.cpp:299:19: error: redefinition of 'int n'
 int cas,f1,f2,a,b,n,m,k;
                   ^
0_0_17193989_26611.cpp:4:9: note: 'int n' previously declared here
 int cas,n,k;
         ^
0_0_17193989_26611.cpp:299:21: error: conflicting declaration 'int m'
 int cas,f1,f2,a,b,n,m,k;
                     ^
0_0_17193989_26611.cpp:69:5: note: previous declaration as 'int m [32][32]'
 int m[32][32];//标记初始矩阵
     ^
0_0_17193989_26611.cpp:299:23: error: redefinition of 'int k'
 int cas,f1,f2,a,b,n,m,k;
                       ^
0_0_17193989_26611.cpp:4:11: note: 'int k' previously declared here
 int cas,n,k;
           ^
0_0_17193989_26611.cpp: In function 'void init()':
0_0_17193989_26611.cpp:319:36: error: invalid operands of types 'int' and 'int [32][32]' to binary 'operator%'
    c[i][j]=(c[i-1][j-1]+c[i-1][j])%m; 
                                    ^
0_0_17193989_26611.cpp:324:31: error: invalid operands of types 'LL {aka long long int}' and 'int [32][32]' to binary 'operator%'
   mpa[i]=((LL)mpa[i-1]*(LL)a)%m;
                               ^
0_0_17193989_26611.cpp:325:31: error: invalid operands of types 'LL {aka long long int}' and 'int [32][32]' to binary 'operator%'
   mpb[i]=((LL)mpb[i-1]*(LL)b)%m;
                               ^
0_0_17193989_26611.cpp:330:34: error: invalid operands of types 'LL {aka long long int}' and 'int [32][32]' to binary 'operator%'
   mpf1[i]=((LL)mpf1[i-1]*(LL)f1)%m;
                                  ^
0_0_17193989_26611.cpp:331:34: error: invalid operands of types 'LL {aka long long int}' and 'int [32][32]' to binary 'operator%'
   mpf2[i]=((LL)mpf2[i-1]*(LL)f2)%m;
                                  ^
0_0_17193989_26611.cpp:335:23: error: invalid operands of types 'int' and 'int [32][32]' to binary 'operator%'
  s2=(mpf2[k]+mpf1[k])%m;
                       ^
0_0_17193989_26611.cpp: At global scope:
0_0_17193989_26611.cpp:337:8: error: redefinition of 'struct mat'
 struct mat{
        ^
0_0_17193989_26611.cpp:7:8: error: previous definition of 'struct mat'
 struct mat{
        ^
0_0_17193989_26611.cpp: In function 'mat binMat(int)':
0_0_17193989_26611.cpp:366:5: error: redefinition of 'mat binMat(int)'
 mat binMat(int x){
     ^
0_0_17193989_26611.cpp:35:5: note: 'mat binMat(int)' previously defined here
 mat binMat(int k){
     ^
0_0_17193989_26611.cpp: In function 'int main()':
0_0_17193989_26611.cpp:373:5: error: redefinition of 'int main()'
 int main(){ 
     ^
0_0_17193989_26611.cpp:53:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_17193989_26611.cpp:382:20: error: 'struct mat' has no member named 'sn'
    printf("%d\n",r.sn());
                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 22:44:07, Gzip enabled