제출 #1286134

#제출 시각아이디문제언어결과실행 시간메모리
1286134lyra_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){ while(2*n--){ bool inside_shape(int X, int Y); } }; int main(){ std::ios_base::sync_with_stdio(false); std::cin.tie(nullptr); ll t; while(t--){ ll n , q; std::cin >> n >> q; am_i_square(n , q); } }

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

squarerect.cpp: In function 'bool am_i_square(int, int)':
squarerect.cpp:5:17: error: 'n' was not declared in this scope
    5 |         while(2*n--){
      |                 ^
squarerect.cpp:9:2: warning: no return statement in function returning non-void [-Wreturn-type]
    9 |  };
      |  ^