Submission #402437

#TimeUsernameProblemLanguageResultExecution timeMemory
402437AlmaGondola (IOI14_gondola)C++17
0 / 100
2 ms432 KiB
#include <bits/stdc++.h> #include "gondola.h" using namespace std; int valid(int n, int inputSeq[]) { for (int i = 1; i < n; i++) { if (inputSeq[i-1] == n && inputSeq[i] != 1) return 0; else if (inputSeq[i] - inputSeq[i-1] != 1) return 0; } return 1; } int replacement(int n, int gondolaSeq[], int replacementSeq[]) {} int countReplacement(int n, int inputSeq[]) {}

Compilation message (stderr)

gondola.cpp: In function 'int replacement(int, int*, int*)':
gondola.cpp:13:65: warning: no return statement in function returning non-void [-Wreturn-type]
   13 | int replacement(int n, int gondolaSeq[], int replacementSeq[]) {}
      |                                                                 ^
gondola.cpp: In function 'int countReplacement(int, int*)':
gondola.cpp:15:46: warning: no return statement in function returning non-void [-Wreturn-type]
   15 | int countReplacement(int n, int inputSeq[]) {}
      |                                              ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...