제출 #528860

#제출 시각아이디문제언어결과실행 시간메모리
528860Alex_tz307곤돌라 (IOI14_gondola)C++17
20 / 100
8 ms1104 KiB
#include<bits/stdc++.h> #include "gondola.h" using namespace std; int valid(int n, int a[]) { int pos = 0; for (int i = 0; i < n; ++i) { if (a[i] == 1) { pos = i; break; } } for (int x = 1; x <= n; ++x) { if (a[pos] != x) { return 0; } pos += 1; if (pos == n) { pos = 0; } } return 1; } int replacement(int n, int gondolaSeq[], int replacementSeq[]){ } int countReplacement(int n, int gondolaSeq[]){ }

컴파일 시 표준 에러 (stderr) 메시지

gondola.cpp: In function 'int replacement(int, int*, int*)':
gondola.cpp:28:1: warning: no return statement in function returning non-void [-Wreturn-type]
   28 | }
      | ^
gondola.cpp: In function 'int countReplacement(int, int*)':
gondola.cpp:32:1: warning: no return statement in function returning non-void [-Wreturn-type]
   32 | }
      | ^
#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...