Submission #102550

#TimeUsernameProblemLanguageResultExecution timeMemory
102550Leonardo_PaesGondola (IOI14_gondola)C++11
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include gondola.h using namespace std; bool valid(int n, int vet[]){ int x=0; bool ok=true; for(int i=0; i<n; i++){ if(vet[i]>n or vet[i+1]>n){ continue; } else{ if(i==n-1){ if(vet[0]<vet[i]){ if(x==0){ x=1; } else{ ok=false; } } } else if(vet[i+1]<vet[i]){ if(x==0){ x=1; } else{ ok=false; } } } } return ok; } int replacement(int n, int gondolaSeq[], int replacementSeq[]){ } int countReplacement(int n, int inputSeq[]){ }

Compilation message (stderr)

gondola.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include gondola.h
          ^~~~~~~
gondola.cpp: In function 'int replacement(int, int*, int*)':
gondola.cpp:42:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
gondola.cpp: In function 'int countReplacement(int, int*)':
gondola.cpp:47:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^