結果

問題 No.353 ヘイトプラス
ユーザー ngtkanangtkana
提出日時 2020-03-02 22:10:31
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 125 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 19,456 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-21 22:52:39
合計ジャッジ時間 681 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 0 ms
5,376 KB
testcase_04 AC 0 ms
5,376 KB
testcase_05 AC 0 ms
5,376 KB
testcase_06 AC 0 ms
5,376 KB
testcase_07 AC 0 ms
5,376 KB
testcase_08 AC 0 ms
5,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:5: warning: conflicting types for built-in function ‘scanf’; expected ‘int(const char *, ...)’ [-Wbuiltin-declaration-mismatch]
    1 | int scanf(char*,int*,int*);
      |     ^~~~~
main.c:1:1: note: ‘scanf’ is declared in header ‘<stdio.h>’
  +++ |+#include <stdio.h>
    1 | int scanf(char*,int*,int*);
main.c:2:5: warning: conflicting types for built-in function ‘printf’; expected ‘int(const char *, ...)’ [-Wbuiltin-declaration-mismatch]
    2 | int printf(char*,int*);
      |     ^~~~~~
main.c:2:5: note: ‘printf’ is declared in header ‘<stdio.h>’
main.c: In function ‘main’:
main.c:5:18: warning: passing argument 2 of ‘printf’ makes pointer from integer without a cast [-Wint-conversion]
    5 |     printf("%d",x-(-y));
      |                 ~^~~~~
      |                  |
      |                  int
main.c:2:18: note: expected ‘int *’ but argument is of type ‘int’
    2 | int printf(char*,int*);
      |                  ^~~~

ソースコード

diff #

int scanf(char*,int*,int*);
int printf(char*,int*);
int main(){
    int x,y;scanf("%d %d",&x,&y);
    printf("%d",x-(-y));
}
0