제출 #777368

#제출 시각아이디문제언어결과실행 시간메모리
777368Petrix삶의 질 (IOI10_quality)C++17
컴파일 에러
0 ms0 KiB
#include "quality.h" int rectangle(int r,int c,int h,int w,int q[][]){ return r*c/2; }

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

quality.cpp:3:43: error: declaration of 'q' as multidimensional array must have bounds for all dimensions except the first
    3 | int rectangle(int r,int c,int h,int w,int q[][]){
      |                                           ^
quality.cpp: In function 'int rectangle(...)':
quality.cpp:4:12: error: 'r' was not declared in this scope
    4 |     return r*c/2;
      |            ^
quality.cpp:4:14: error: 'c' was not declared in this scope
    4 |     return r*c/2;
      |              ^