제출 #306376

#제출 시각아이디문제언어결과실행 시간메모리
306376amunduzbaev동굴 (IOI13_cave)C++14
컴파일 에러
0 ms0 KiB
#include "cave.h" #include <bits/stdc++.h> using namespace std; void exploreCave(int n) { int v[n],ans[n]; memset(v,0,sizeof(v)); for(int i=0;i<n;i++){ ans[i]=i; } int cor = tryCombination(v); while(cor!=-1){ v[cor]=1; *cor=*tryCombination(v); } answer(v,ans); }

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

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:15:10: error: invalid type argument of unary '*' (have 'int')
   15 |         *cor=*tryCombination(v);
      |          ^~~
cave.cpp:15:31: error: invalid type argument of unary '*' (have 'int')
   15 |         *cor=*tryCombination(v);
      |                               ^