結果
問題 | No.2041 E-mail Address |
ユーザー | subsn |
提出日時 | 2023-06-15 10:13:57 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 133 bytes |
コンパイル時間 | 191 ms |
コンパイル使用メモリ | 27,904 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-23 11:42:48 |
合計ジャッジ時間 | 786 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 1 ms
6,944 KB |
testcase_02 | WA | - |
testcase_03 | AC | 1 ms
6,944 KB |
testcase_04 | WA | - |
testcase_05 | AC | 1 ms
6,944 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 1 ms
6,944 KB |
コンパイルメッセージ
main.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int] 1 | main(f){char s[100001];scanf("%s",s);for(int i=0;s[i];){if(s[i]=='(')f=1;if(!f) printf("%c",s[i]);if(s[i++]==')'){f=0;printf("@");}}} | ^~~~ main.c: In function 'main': main.c:1:1: warning: type of 'f' defaults to 'int' [-Wimplicit-int] main.c:1:24: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | main(f){char s[100001];scanf("%s",s);for(int i=0;s[i];){if(s[i]=='(')f=1;if(!f) printf("%c",s[i]);if(s[i++]==')'){f=0;printf("@");}}} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | main(f){char s[100001];scanf("%s",s);for(int i=0;s[i];){if(s[i]=='(')f=1;if(!f) printf("%c",s[i]);if(s[i++]==')'){f=0;printf("@");}}} main.c:1:24: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | main(f){char s[100001];scanf("%s",s);for(int i=0;s[i];){if(s[i]=='(')f=1;if(!f) printf("%c",s[i]);if(s[i++]==')'){f=0;printf("@");}}} | ^~~~~ main.c:1:24: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:81: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | main(f){char s[100001];scanf("%s",s);for(int i=0;s[i];){if(s[i]=='(')f=1;if(!f) printf("%c",s[i]);if(s[i++]==')'){f=0;printf("@");}}} | ^~~~~~ main.c:1:81: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:81: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:1:81: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:119: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 1 | main(f){char s[100001];scanf("%s",s);for(int i=0;s[i];){
ソースコード
main(f){char s[100001];scanf("%s",s);for(int i=0;s[i];){if(s[i]=='(')f=1;if(!f) printf("%c",s[i]);if(s[i++]==')'){f=0;printf("@");}}}