結果
| 問題 |
No.328 きれいな連立方程式
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2016-10-17 11:46:09 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 100 bytes |
| コンパイル時間 | 170 ms |
| コンパイル使用メモリ | 19,968 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-22 12:56:40 |
| 合計ジャッジ時間 | 1,285 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 WA * 13 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | i,a,b,c;main(d){a=scanf("%d%d%d%d",&a,&b,&c,&d)<puts(pow(a*d-b*c,2)/(b*b-c*a)<4*(c*c-b*d)?"I":"R");}
| ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
1 | i,a,b,c;main(d){a=scanf("%d%d%d%d",&a,&b,&c,&d)<puts(pow(a*d-b*c,2)/(b*b-c*a)<4*(c*c-b*d)?"I":"R");}
| ^
main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int]
1 | i,a,b,c;main(d){a=scanf("%d%d%d%d",&a,&b,&c,&d)<puts(pow(a*d-b*c,2)/(b*b-c*a)<4*(c*c-b*d)?"I":"R");}
| ^
main.c:1:7: warning: type defaults to ‘int’ in declaration of ‘c’ [-Wimplicit-int]
1 | i,a,b,c;main(d){a=scanf("%d%d%d%d",&a,&b,&c,&d)<puts(pow(a*d-b*c,2)/(b*b-c*a)<4*(c*c-b*d)?"I":"R");}
| ^
main.c:1:9: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | i,a,b,c;main(d){a=scanf("%d%d%d%d",&a,&b,&c,&d)<puts(pow(a*d-b*c,2)/(b*b-c*a)<4*(c*c-b*d)?"I":"R");}
| ^~~~
main.c: In function ‘main’:
main.c:1:9: warning: type of ‘d’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:19: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
1 | i,a,b,c;main(d){a=scanf("%d%d%d%d",&a,&b,&c,&d)<puts(pow(a*d-b*c,2)/(b*b-c*a)<4*(c*c-b*d)?"I":"R");}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | i,a,b,c;main(d){a=scanf("%d%d%d%d",&a,&b,&c,&d)<puts(pow(a*d-b*c,2)/(b*b-c*a)<4*(c*c-b*d)?"I":"R");}
main.c:1:19: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | i,a,b,c;main(d){a=scanf("%d%d%d%d",&a,&b,&c,&d)<puts(pow(a*d-b*c,2)/(b*b-c*a)<4*(c*c-b*d)?"I":"R");}
| ^~~~~
main.c:1:19: note: include ‘<stdio.h>’ or pro
ソースコード
i,a,b,c;main(d){a=scanf("%d%d%d%d",&a,&b,&c,&d)<puts(pow(a*d-b*c,2)/(b*b-c*a)<4*(c*c-b*d)?"I":"R");}
testestest