제출 #1286149

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

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

squarerect.cpp: In function 'bool am_i_square(int, int)':
squarerect.cpp:5:9: error: 'll' was not declared in this scope
    5 |         ll c= (4/100)*N;
      |         ^~
squarerect.cpp:6:33: error: 'c' was not declared in this scope
    6 |        for(int i = 1 ; i <= N , c >=0 ; i++){
      |                                 ^
squarerect.cpp:10:21: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   10 |                scanf("%d" , &a);
      |                ~~~~~^~~~~~~~~~~
squarerect.cpp:6:16: warning: control reaches end of non-void function [-Wreturn-type]
    6 |        for(int i = 1 ; i <= N , c >=0 ; i++){
      |                ^