結果
問題 |
No.241 出席番号(1)
|
ユーザー |
![]() |
提出日時 | 2015-07-16 07:22:44 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 395 bytes |
コンパイル時間 | 152 ms |
コンパイル使用メモリ | 22,784 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-08 08:09:35 |
合計ジャッジ時間 | 5,523 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 1 WA * 28 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:10:20: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | int n;scanf("%d",&n);int a;for(int i=0;i<n;i++)scanf("%d",&a); | ~~~~~^~~~~~~~~ main.cpp:10:61: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | int n;scanf("%d",&n);int a;for(int i=0;i<n;i++)scanf("%d",&a); | ~~~~~^~~~~~~~~
ソースコード
#include <cstdio> using namespace std; //namaega184 //test code int main(){ int n;scanf("%d",&n);int a;for(int i=0;i<n;i++)scanf("%d",&a); //test case 9 printf("%s", "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n37\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n24\n38\n39\n40\n41\n42\n43\n44\n45\n46\n47\n48\n12\n0\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n25\n23\n"); return 0; }