제출 #210812

#제출 시각아이디문제언어결과실행 시간메모리
2108122qbingxuanBubble Sort 2 (JOI18_bubblesort2)C++14
컴파일 에러
0 ms0 KiB
//#include "bubblesort2.h" #include "bubblesort2.cpp" #include <cstdio> #include <cstdlib> #include <vector> int readInt(){ int i; if(scanf("%d",&i)!=1){ fprintf(stderr,"Error while reading input\n"); exit(1); } return i; } int main(){ int N,Q; N=readInt(); Q=readInt(); std::vector<int> A(N); for(int i=0;i<N;i++) A[i]=readInt(); std::vector<int> X(Q),V(Q); for(int j=0;j<Q;j++){ X[j]=readInt(); V[j]=readInt(); } std::vector<int> res=countScans(A,X,V); for(int j=0;j<int(res.size());j++) printf("%d\n",res[j]); } /* 4 2 1 2 3 4 0 3 2 1 */

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

bubblesort2.cpp:2:10: fatal error: bubblesort2.cpp: No such file or directory
 #include "bubblesort2.cpp"
          ^~~~~~~~~~~~~~~~~
compilation terminated.