제출 #1270585

#제출 시각아이디문제언어결과실행 시간메모리
1270585ezzzay곤돌라 (IOI14_gondola)C++20
컴파일 에러
0 ms0 KiB
#include "gondola.h" int valid(int n, int inputSeq[]) { int a=0; for(int i=1;i<n;i++){ if(inputSeq[i-1]+1==inputSeq[i]){ a++; } else if(intputSeq[i-1]==n and inputSeq[i]==1){ a++; } } return (a==n); } //---------------------- int replacement(int n, int gondolaSeq[], int replacementSeq[]) { return -2; } //---------------------- int countReplacement(int n, int inputSeq[]) { return -3; }

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

gondola.cpp: In function 'int valid(int, int*)':
gondola.cpp:10:25: error: 'intputSeq' was not declared in this scope; did you mean 'inputSeq'?
   10 |                 else if(intputSeq[i-1]==n and inputSeq[i]==1){
      |                         ^~~~~~~~~
      |                         inputSeq