제출 #1286138

#제출 시각아이디문제언어결과실행 시간메모리
1286138lyra_g13Square or Rectangle? (NOI19_squarerect)C++20
컴파일 에러
0 ms0 KiB
#include "squarerect.h"
#include <bits/stdc++.h>
using ll = long long;
 bool am_i_square(int N, int Q){
    for(int i = 0 ; i < N ; i++){
        for(int j = 0 ; j < N ; j++){
            bool inside_shape(i+1 , j+1);
        }
    }
 }

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

squarerect.cpp: In function 'bool am_i_square(int, int)':
squarerect.cpp:7:40: error: expression list treated as compound expression in initializer [-fpermissive]
    7 |             bool inside_shape(i+1 , j+1);
      |                                        ^
squarerect.cpp:10:2: warning: no return statement in function returning non-void [-Wreturn-type]
   10 |  }
      |  ^