結果
問題 |
No.565 回転拡大
|
ユーザー |
👑 ![]() |
提出日時 | 2017-11-07 06:55:36 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 30,208 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-24 04:33:04 |
合計ジャッジ時間 | 947 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | i,J;char s[5][11][11];main(r,k,h,w,j){for(scanf("%d%d%d%d\n",&r,&k,&h,&w),r/=90;gets(s[r][i++]););for(;r;i=h^=w^=h^=w)for(r--;i--;)for(j=w;j--;s[r][j][i]=s[r+1][h-1-i][j]);for(;J/w/k?J=!puts(""),++r<h*k:putchar(s[0][r/k][J++/k]););} | ^ 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 'J' [-Wimplicit-int] 1 | i,J;char s[5][11][11];main(r,k,h,w,j){for(scanf("%d%d%d%d\n",&r,&k,&h,&w),r/=90;gets(s[r][i++]););for(;r;i=h^=w^=h^=w)for(r--;i--;)for(j=w;j--;s[r][j][i]=s[r+1][h-1-i][j]);for(;J/w/k?J=!puts(""),++r<h*k:putchar(s[0][r/k][J++/k]););} | ^ main.c:1:23: warning: return type defaults to 'int' [-Wimplicit-int] 1 | i,J;char s[5][11][11];main(r,k,h,w,j){for(scanf("%d%d%d%d\n",&r,&k,&h,&w),r/=90;gets(s[r][i++]););for(;r;i=h^=w^=h^=w)for(r--;i--;)for(j=w;j--;s[r][j][i]=s[r+1][h-1-i][j]);for(;J/w/k?J=!puts(""),++r<h*k:putchar(s[0][r/k][J++/k]););} | ^~~~ main.c: In function 'main': main.c:1:23: warning: type of 'r' defaults to 'int' [-Wimplicit-int] main.c:1:23: warning: type of 'k' defaults to 'int' [-Wimplicit-int] main.c:1:23: warning: type of 'h' defaults to 'int' [-Wimplicit-int] main.c:1:23: warning: type of 'w' defaults to 'int' [-Wimplicit-int] main.c:1:23: warning: type of 'j' defaults to 'int' [-Wimplicit-int] main.c:1:43: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | i,J;char s[5][11][11];main(r,k,h,w,j){for(scanf("%d%d%d%d\n",&r,&k,&h,&w),r/=90;gets(s[r][i++]););for(;r;i=h^=w^=h^=w)for(r--;i--;)for(j=w;j--;s[r][j][i]=s[r+1][h-1-i][j]);for(;J/w/k?J=!puts(""),++r<h*k:putchar(s[0][r/k][J++/k]););} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | i,J;char s[5][11][11];main(r,k,h,w,j){for(s
ソースコード
i,J;char s[5][11][11];main(r,k,h,w,j){for(scanf("%d%d%d%d\n",&r,&k,&h,&w),r/=90;gets(s[r][i++]););for(;r;i=h^=w^=h^=w)for(r--;i--;)for(j=w;j--;s[r][j][i]=s[r+1][h-1-i][j]);for(;J/w/k?J=!puts(""),++r<h*k:putchar(s[0][r/k][J++/k]););}