QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#474868#1062. 世界地图LVJBot1Compile Error//C++14433b2024-07-13 08:51:092024-07-13 08:51:09

Judging History

你现在查看的是最新测评结果

  • [2024-07-13 08:51:09]
  • 评测
  • [2024-07-13 08:51:09]
  • 提交

answer

/* Submission UUID: 6029. */
#include<bits/stdc++.h>
unsigned int SA,SB,SC;int lim;int getweight(){SA^=SA<<16;SA^=SA>>5;SA^=SA<<1;unsigned int t=SA;SA=SB;SB=SC;SC^=t^SA;return SC%lim+1;}void gen(){scanf(”%d%d%u%u%u%d”,&n,&m,&SA,&SB,&SC,&lim);int i,j,w;for(i=1;i<=n;i++)for(j=1;j<=m;j++){w=getweight();if (j<m){addedge(i,j,i,j+1,w);}else{addedge(i,j,i,1,w);}}for(i=1;i<n;i++)for(j=1;j<=m;j++){w=getweight();addedge(i,j,i+1,j,w);}}

Details

answer.code:3:151: error: extended character ” is not valid in an identifier
    3 | unsigned int SA,SB,SC;int lim;int getweight(){SA^=SA<<16;SA^=SA>>5;SA^=SA<<1;unsigned int t=SA;SA=SB;SB=SC;SC^=t^SA;return SC%lim+1;}void gen(){scanf(”%d%d%u%u%u%d”,&n,&m,&SA,&SB,&SC,&lim);int i,j,w;for(i=1;i<=n;i++)for(j=1;j<=m;j++){w=getweight();if (j<m){addedge(i,j,i,j+1,w);}else{addedge(i,j,i,1,w);}}for(i=1;i<n;i++)for(j=1;j<=m;j++){w=getweight();addedge(i,j,i+1,j,w);}}
      |                                                                                                                                                       ^
answer.code:3:163: error: extended character ” is not valid in an identifier
    3 | unsigned int SA,SB,SC;int lim;int getweight(){SA^=SA<<16;SA^=SA>>5;SA^=SA<<1;unsigned int t=SA;SA=SB;SB=SC;SC^=t^SA;return SC%lim+1;}void gen(){scanf(”%d%d%u%u%u%d”,&n,&m,&SA,&SB,&SC,&lim);int i,j,w;for(i=1;i<=n;i++)for(j=1;j<=m;j++){w=getweight();if (j<m){addedge(i,j,i,j+1,w);}else{addedge(i,j,i,1,w);}}for(i=1;i<n;i++)for(j=1;j<=m;j++){w=getweight();addedge(i,j,i+1,j,w);}}
      |                                                                                                                                                                   ^
answer.code: In function ‘void gen()’:
answer.code:3:151: error: ‘”’ was not declared in this scope
    3 | unsigned int SA,SB,SC;int lim;int getweight(){SA^=SA<<16;SA^=SA>>5;SA^=SA<<1;unsigned int t=SA;SA=SB;SB=SC;SC^=t^SA;return SC%lim+1;}void gen(){scanf(”%d%d%u%u%u%d”,&n,&m,&SA,&SB,&SC,&lim);int i,j,w;for(i=1;i<=n;i++)for(j=1;j<=m;j++){w=getweight();if (j<m){addedge(i,j,i,j+1,w);}else{addedge(i,j,i,1,w);}}for(i=1;i<n;i++)for(j=1;j<=m;j++){w=getweight();addedge(i,j,i+1,j,w);}}
      |                                                                                                                                                       ^
answer.code:3:153: error: ‘d’ was not declared in this scope
    3 | unsigned int SA,SB,SC;int lim;int getweight(){SA^=SA<<16;SA^=SA>>5;SA^=SA<<1;unsigned int t=SA;SA=SB;SB=SC;SC^=t^SA;return SC%lim+1;}void gen(){scanf(”%d%d%u%u%u%d”,&n,&m,&SA,&SB,&SC,&lim);int i,j,w;for(i=1;i<=n;i++)for(j=1;j<=m;j++){w=getweight();if (j<m){addedge(i,j,i,j+1,w);}else{addedge(i,j,i,1,w);}}for(i=1;i<n;i++)for(j=1;j<=m;j++){w=getweight();addedge(i,j,i+1,j,w);}}
      |                                                                                                                                                         ^
answer.code:3:157: error: ‘u’ was not declared in this scope
    3 | unsigned int SA,SB,SC;int lim;int getweight(){SA^=SA<<16;SA^=SA>>5;SA^=SA<<1;unsigned int t=SA;SA=SB;SB=SC;SC^=t^SA;return SC%lim+1;}void gen(){scanf(”%d%d%u%u%u%d”,&n,&m,&SA,&SB,&SC,&lim);int i,j,w;for(i=1;i<=n;i++)for(j=1;j<=m;j++){w=getweight();if (j<m){addedge(i,j,i,j+1,w);}else{addedge(i,j,i,1,w);}}for(i=1;i<n;i++)for(j=1;j<=m;j++){w=getweight();addedge(i,j,i+1,j,w);}}
      |                                                                                                                                                             ^
answer.code:3:163: error: ‘d”’ was not declared in this scope
    3 | unsigned int SA,SB,SC;int lim;int getweight(){SA^=SA<<16;SA^=SA>>5;SA^=SA<<1;unsigned int t=SA;SA=SB;SB=SC;SC^=t^SA;return SC%lim+1;}void gen(){scanf(”%d%d%u%u%u%d”,&n,&m,&SA,&SB,&SC,&lim);int i,j,w;for(i=1;i<=n;i++)for(j=1;j<=m;j++){w=getweight();if (j<m){addedge(i,j,i,j+1,w);}else{addedge(i,j,i,1,w);}}for(i=1;i<n;i++)for(j=1;j<=m;j++){w=getweight();addedge(i,j,i+1,j,w);}}
      |                                                                                                                                                                   ^~
answer.code:3:167: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
    3 | unsigned int SA,SB,SC;int lim;int getweight(){SA^=SA<<16;SA^=SA>>5;SA^=SA<<1;unsigned int t=SA;SA=SB;SB=SC;SC^=t^SA;return SC%lim+1;}void gen(){scanf(”%d%d%u%u%u%d”,&n,&m,&SA,&SB,&SC,&lim);int i,j,w;for(i=1;i<=n;i++)for(j=1;j<=m;j++){w=getweight();if (j<m){addedge(i,j,i,j+1,w);}else{addedge(i,j,i,1,w);}}for(i=1;i<n;i++)for(j=1;j<=m;j++){w=getweight();addedge(i,j,i+1,j,w);}}
      |                                                                                                                                                                       ^
      |                                                                                                                                                                       yn
answer.code:3:170: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
    3 | unsigned int SA,SB,SC;int lim;int getweight(){SA^=SA<<16;SA^=SA>>5;SA^=SA<<1;unsigned int t=SA;SA=SB;SB=SC;SC^=t^SA;return SC%lim+1;}void gen(){scanf(”%d%d%u%u%u%d”,&n,&m,&SA,&SB,&SC,&lim);int i,j,w;for(i=1;i<=n;i++)for(j=1;j<=m;j++){w=getweight();if (j<m){addedge(i,j,i,j+1,w);}else{addedge(i,j,i,1,w);}}for(i=1;i<n;i++)for(j=1;j<=m;j++){w=getweight(...