답안 #777368

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
777368 2023-07-09T07:10:11 Z Petrix 삶의 질 (IOI10_quality) C++17
컴파일 오류
0 ms 0 KB
#include "quality.h"
int rectangle(int r,int c,int h,int w,int q[][]){
    return r*c/2;
}



Compilation message

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;
      |              ^