Submission #1286134

#TimeUsernameProblemLanguageResultExecution timeMemory
1286134lyra_g13Square or Rectangle? (NOI19_squarerect)C++20
Compilation error
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);
    }
}

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