Submission #1286148

#TimeUsernameProblemLanguageResultExecution timeMemory
1286148lyra_g13Square or Rectangle? (NOI19_squarerect)C++20
0 / 100
1 ms340 KiB
#include "squarerect.h"
#include <bits/stdc++.h>

    bool am_i_square(int N, int Q){
       for(int i = 1 ; i <= N ; i++){
           for(int j = 1 ; j <= N ; j++){
               return inside_shape(i , j);
               int a;
               scanf("%d" , &a);
           }
       }

 }

Compilation message (stderr)

squarerect.cpp: In function 'bool am_i_square(int, int)':
squarerect.cpp:9:21: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    9 |                scanf("%d" , &a);
      |                ~~~~~^~~~~~~~~~~
squarerect.cpp:13:2: warning: control reaches end of non-void function [-Wreturn-type]
   13 |  }
      |  ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...