QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#451908#2810. Speedrunegypt_ioi2024_12#Compile Error//C++204.7kb2024-06-23 17:45:092024-06-23 17:45:12

Details

speedrun.code:125:10: error: redefinition of ‘const ll mod’
  125 | const ll mod=1e9+7;
      |          ^~~
speedrun.code:26:10: note: ‘const ll mod’ previously defined here
   26 | const ll mod=1e9+7;
      |          ^~~
speedrun.code:126:5: error: redefinition of ‘int dx [8]’
  126 | int dx[8]={0,1,0,-1,1,1,-1,-1};
      |     ^~
speedrun.code:27:5: note: ‘int dx [8]’ previously defined here
   27 | int dx[8]={0,1,0,-1,1,1,-1,-1};
      |     ^~
speedrun.code:127:5: error: redefinition of ‘int dy [8]’
  127 | int dy[8]={1,0,-1,0,1,-1,-1,1};
      |     ^~
speedrun.code:28:5: note: ‘int dy [8]’ previously defined here
   28 | int dy[8]={1,0,-1,0,1,-1,-1,1};
      |     ^~
speedrun.code:129:4: error: redefinition of ‘ll lcm(ll, ll)’
  129 | ll lcm(ll a,ll b)
      |    ^~~
speedrun.code:30:4: note: ‘ll lcm(ll, ll)’ previously defined here
   30 | ll lcm(ll a,ll b)
      |    ^~~
speedrun.code:133:6: error: redefinition of ‘void person_bool(bool)’
  133 | void person_bool(bool x)
      |      ^~~~~~~~~~~
speedrun.code:34:6: note: ‘void person_bool(bool)’ previously defined here
   34 | void person_bool(bool x)
      |      ^~~~~~~~~~~
speedrun.code:142:11: error: redefinition of ‘const int N’
  142 | const int N=1005;
      |           ^
speedrun.code:43:11: note: ‘const int N’ previously defined here
   43 | const int N=1005;
      |           ^
speedrun.code:143:12: error: redefinition of ‘std::vector<int> adj [1005]’
  143 | vector<int>adj[N];
      |            ^~~
speedrun.code:44:12: note: ‘std::vector<int> adj [1005]’ previously declared here
   44 | vector<int>adj[N];
      |            ^~~
speedrun.code:144:12: error: redefinition of ‘std::vector<int> ord’
  144 | vector<int>ord;
      |            ^~~
speedrun.code:45:12: note: ‘std::vector<int> ord’ previously declared here
   45 | vector<int>ord;
      |            ^~~
speedrun.code:145:5: error: redefinition of ‘int node_ord [1005]’
  145 | int node_ord[N],p[N];
      |     ^~~~~~~~
speedrun.code:46:5: note: ‘int node_ord [1005]’ previously declared here
   46 | int node_ord[N],p[N];
      |     ^~~~~~~~
speedrun.code:145:17: error: redefinition of ‘int p [1005]’
  145 | int node_ord[N],p[N];
      |                 ^
speedrun.code:46:17: note: ‘int p [1005]’ previously declared here
   46 | int node_ord[N],p[N];
      |                 ^
speedrun.code:146:6: error: redefinition of ‘void dfs(int, int)’
  146 | void dfs(int node,int par){
      |      ^~~
speedrun.code:47:6: note: ‘void dfs(int, int)’ previously defined here
   47 | void dfs(int node,int par){
      |      ^~~
speedrun.code:154:6: error: redefinition of ‘void assignHints(int, int, int*, int*)’
  154 | void assignHints(int subtask , int n, int a[], int b[]){
      |      ^~~~~~~~~~~
speedrun.code:55:6: note: ‘void assignHints(int, int, int*, int*)’ previously defined here
   55 | void assignHints(int subtask , int n, int a[], int b[]){
      |      ^~~~~~~~~~~
speedrun.code:171:5: error: redefinition of ‘int getParent()’
  171 | int getParent(){
      |     ^~~~~~~~~
speedrun.code:73:5: note: ‘int getParent()’ previously defined here
   73 | int getParent(){
      |     ^~~~~~~~~
speedrun.code:178:5: error: redefinition of ‘int getNext()’
  178 | int getNext(){
      |     ^~~~~~~
speedrun.code:80:5: note: ‘int getNext()’ previously defined here
   80 | int getNext(){
      |     ^~~~~~~
speedrun.code:185:6: error: redefinition of ‘void speedrun(int, int, int)’
  185 | void speedrun(int subtask , int n, int start){
      |      ^~~~~~~~
speedrun.code:87:6: note: ‘void speedrun(int, int, int)’ previously defined here
   87 | void speedrun(int subtask , int n, int start){
      |      ^~~~~~~~
grader_speedrun.cpp: In function ‘int readvalue()’:
grader_speedrun.cpp:9:9: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |   fscanf(input, "%d", &val);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~