Submission #777368

#TimeUsernameProblemLanguageResultExecution timeMemory
777368PetrixQuality Of Living (IOI10_quality)C++17
Compilation error
0 ms0 KiB
#include "quality.h" int rectangle(int r,int c,int h,int w,int q[][]){ return r*c/2; }

Compilation message (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;
      |              ^