실행 실패 (제출 코드 컴파일 에러)
Main.cpp:6:27: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive] 6 | int blue_ray_count(const &vector<int> v, int amount){ | ^~~~~~~~~~~ Main.cpp:6:27: error: expected ‘,’ or ‘...’ Main.cpp: In function ‘int blue_ray_count(const int&)’: Main.cpp:9:24: error: ‘v’ was not declared in this scope 9 | for(int i = 0; i < v.size() - 1; i++){ | ^ Main.cpp:11:29: error: ‘amount’ was not declared in this scope 11 | if(sum + v[i + 1] > amount){ // 꽉 채워졌다면 | ^~~~~~ Main.cpp: In function ‘int main()’: Main.cpp:24:20: warning: unused variable ‘temp’ [-Wunused-variable] 24 | int mid, result, temp; | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.