結果
| 問題 | No.656 ゴルフ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-12 11:31:13 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 166 bytes |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 22,528 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-07 09:00:40 |
| 合計ジャッジ時間 | 793 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:8:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%d\n",&score[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(void)
{
int score[9],ans,i;
ans=0;
for(i=0;i<9;i++){
scanf("%d\n",&score[i]);
ans+=score[i];
}
printf("%d\n",ans);
return 0;
}