結果
問題 | No.3021 データベースの練習 |
ユーザー | 👑 testestest |
提出日時 | 2017-04-01 00:58:34 |
言語 | C (gcc 12.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 184 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 27,520 KB |
実行使用メモリ | 25,616 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2024-07-16 12:44:20 |
合計ジャッジ時間 | 5,788 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a,b,c,d,n; | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:1:3: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int] 1 | a,b,c,d,n; | ^ main.c:1:5: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] 1 | a,b,c,d,n; | ^ main.c:1:7: warning: type defaults to 'int' in declaration of 'd' [-Wimplicit-int] 1 | a,b,c,d,n; | ^ main.c:1:9: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int] 1 | a,b,c,d,n; | ^ main.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int] 2 | main(){ | ^~~~ main.c: In function 'main': main.c:3:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | scanf("%d",&n); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | a,b,c,d,n; main.c:3:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 3 | scanf("%d",&n); | ^~~~~ main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:6:1: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration] 6 | fflush(printf("SELECT count(*) FROM point WHERE x>%d AND x<%d AND y>%d AND y<%d;\n",a-1,b+1,c-1,d+1)); | ^~~~~~ main.c:6:8: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 6 | fflush(printf("SELECT count(*) FROM point WHERE x>%d AND x<%d AND y>%d AND y<%d;\n",a-1,b+1,c-1,d+1)); | ^~~~~~ main.c:6:8: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:6:8: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:6:8: note: include '<stdio.h>' or provide a declaration of 'printf'
ソースコード
a,b,c,d,n; main(){ scanf("%d",&n); while(n--){ scanf("%d%d%d%d",&a,&b,&c,&d); fflush(printf("SELECT count(*) FROM point WHERE x>%d AND x<%d AND y>%d AND y<%d;\n",a-1,b+1,c-1,d+1)); } }