結果
問題 | No.8051 cracked |
ユーザー | くれちー |
提出日時 | 2019-04-01 23:06:59 |
言語 | C (gcc 13.3.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 600 bytes |
コンパイル時間 | 224 ms |
コンパイル使用メモリ | 28,288 KB |
実行使用メモリ | 25,616 KB |
平均クエリ数 | 3.00 |
最終ジャッジ日時 | 2024-07-22 23:11:02 |
合計ジャッジ時間 | 5,982 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 24 |
コンパイルメッセージ
main.c: In function 'main': main.c:1:475: warning: implicit declaration of function 'getchar' [-Wimplicit-function-declaration] 1 | int main() { const char f[] = { 37, 100, 10, 34, 37, 99, 34, 10, 34, 37, 99, 34, 0 }; const char *code = "int main() { const char f[] = { 37, 100, 10, 34, 37, 99, 34, 10, 34, 37, 99, 34, 0 }; const char *code = %c%s%c; char s[600]; char t[600]; for (int i = 0; i < 600; ++i) s[i] = getchar(); sprintf(t, code, 34, code, 34); for (int i = 0; i < 600; ++i) { if (s[i] != t[i]) { printf(f, i, t[i], s[i]); } } }"; char s[600]; char t[600]; for (int i = 0; i < 600; ++i) s[i] = getchar(); sprintf(t, code, 34, code, 34); for (int i = 0; i < 600; ++i) { if (s[i] != t[i]) { printf(f, i, t[i], s[i]); } } } | ^~~~~~~ main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'? +++ |+#include <stdio.h> 1 | int main() { const char f[] = { 37, 100, 10, 34, 37, 99, 34, 10, 34, 37, 99, 34, 0 }; const char *code = "int main() { const char f[] = { 37, 100, 10, 34, 37, 99, 34, 10, 34, 37, 99, 34, 0 }; const char *code = %c%s%c; char s[600]; char t[600]; for (int i = 0; i < 600; ++i) s[i] = getchar(); sprintf(t, code, 34, code, 34); for (int i = 0; i < 600; ++i) { if (s[i] != t[i]) { printf(f, i, t[i], s[i]); } } }"; char s[600]; char t[600]; for (int i = 0; i < 600; ++i) s[i] = getchar(); sprintf(t, code, 34, code, 34); for (int i = 0; i < 600; ++i) { if (s[i] != t[i]) { printf(f, i, t[i], s[i]); } } } main.c:1:486: warning: implicit dec
ソースコード
int main() { const char f[] = { 37, 100, 10, 34, 37, 99, 34, 10, 34, 37, 99, 34, 0 }; const char *code = "int main() { const char f[] = { 37, 100, 10, 34, 37, 99, 34, 10, 34, 37, 99, 34, 0 }; const char *code = %c%s%c; char s[600]; char t[600]; for (int i = 0; i < 600; ++i) s[i] = getchar(); sprintf(t, code, 34, code, 34); for (int i = 0; i < 600; ++i) { if (s[i] != t[i]) { printf(f, i, t[i], s[i]); } } }"; char s[600]; char t[600]; for (int i = 0; i < 600; ++i) s[i] = getchar(); sprintf(t, code, 34, code, 34); for (int i = 0; i < 600; ++i) { if (s[i] != t[i]) { printf(f, i, t[i], s[i]); } } }