submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s373303511
p00435
C
1 #include <stdio.h> 2 3 int main(){ 4 char ch = 'a'; 5 int i; 6 7 while(ch != '\n'){ 8 scanf("%c", &ch); 9 ch += 3; 10 printf("%c", ch); 11 12 } 13 14 printf("\n"); 15 return 0; 16 } ~ ...
main.c:1:3: error: expected identifier or '(' before numeric constant 1 | 1 #include <stdio.h> | ^ main.c:1:5: error: stray '#' in program 1 | 1 #include <stdio.h> | ^ main.c:17:1: error: expected identifier or '(' before '~' token 17 | ~ | ^
s025934159
p00435
C
#include <stdio.h> #include <string.h> int main(void) { char code[1000]; char decode[1000]; int i; scanf("%[^\n]", code); i = 0; while (code[i] != '\0'){ code[i] == 'A' ? decode[i] = 'X' : code[i] == 'B' ? decode[i] = 'Y' : code[i] == 'C' ? decode[i] = 'Z' : decode[i] = code[i] - 3; } decode[i] = '\0';...
main.c: In function 'main': main.c:14:132: error: lvalue required as left operand of assignment 14 | code[i] == 'A' ? decode[i] = 'X' : code[i] == 'B' ? decode[i] = 'Y' : code[i] == 'C' ? decode[i] = 'Z' : decode[i] = code[i] - 3; | ...
s499968122
p00435
C
#include <stdio.h> #include <string.h> int main(void) { char code[1000]; char decode[1000]; int i; scanf("%s", code); i = 0; while (code[i] != '\0'){ code[i] == 'A' ? decode[i] = 'X' : code[i] == 'B' ? decode[i] = 'Y' : code[i] == 'C' ? decode[i] = 'Z' : decode[i] = code[i] - 3; } decode[i] = '\0'; ...
main.c: In function 'main': main.c:14:132: error: lvalue required as left operand of assignment 14 | code[i] == 'A' ? decode[i] = 'X' : code[i] == 'B' ? decode[i] = 'Y' : code[i] == 'C' ? decode[i] = 'Z' : decode[i] = code[i] - 3; | ...
s901732007
p00435
C
#include<stdio.h> #include<string.h> int main(void) { int i,j,k; char ch[30]={0}; scanf("%s",ch); k = strlen(ch); for(i=0;i<k;i++){ if(ch[i] == 'A'){ ch[i]+=23; } else if(ch[i] == 'B'){ ch[i]+=24; } else if(ch[i] == 'C'){ ch...
main.c: In function 'main': main.c:20:21: error: expected ';' before '}' token 20 | ch[i]-=3 | ^ | ; 21 | } | ~
s662202317
p00435
C
#include<stdio.h> #include<iostream> using namespace std; int main(void) { int a,i=0,j; char bet,c[1001]; for (;;) { scanf("%c", &bet); a = bet; if (a == 10) { break; } c[i] = a - 3; if (a == 65) { a = 88; c[i] = a; } if (a == 66) { a = 89; c[i] = a; } if (a == 67) { ...
main.c:2:9: fatal error: iostream: No such file or directory 2 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s892383330
p00435
C
#include <stdio.h> #include <string.h> #include <ctype.h> int main(void) { int i,j; int count; char p[1001]; while (1) { j = 0; count = 0; fgets(p, sizeof(p), stdin); while (p[j++] != '\0') { count++; //何故かカウントが一回多くされる。なんも入力しなくても(=p[0]='\0')でもcountが1される } for (i = 0; i<count-1; i++) { if (!is...
main.c: In function 'main': main.c:8:16: error: invalid suffix "1" on integer constant 8 | char p[1001]; | ^~~~~
s690526379
p00435
C
include<stdio.h> int main(){ char a; while(scanf("%c",&a) != EOF){ switch(a){ case 'A': printf('X');break; case 'B': printf('Y');break; case 'C': printf('Z');break; default:printf("%c",a-3);break; } } printf("\n"); return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s794517646
p00435
C
include<stdio.h> int main(){ char a; while(scanf("%c",&a) != EOF){ switch(a){ case 'A': printf('X');break; case 'B': printf('Y');break; case 'C': printf('Z');break; default:printf("%c",(char)((int)a - 3));break; } } printf("\n"); return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s106975772
p00435
C
include<stdio.h> int main(){ char a; while(scanf("%c",&a) != EOF){ switch(a){ case 'A': printf("X");break; case 'B': printf("Y");break; case 'C': printf("Z");break; default:printf("%c",(char)((int)a - 3));break; } } printf("\n"); return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s176629008
p00435
C
include<stdio.h> int main(){ char a; while(scanf("%c",&a) != EOF){ switch(a){ case 'A': printf("X");break; case 'B': printf("Y");break; case 'C': printf("Z");break; default:printf("%c",a - 3);break; } } printf("\n"); return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s142868407
p00435
C
include<stdio.h> int main(){ char a; while(scanf("%c",&a) != EOF){ switch(a){ case 'A': printf('X');break; case 'B': printf('Y');break; case 'C': printf('Z');break; default : printf("%c",a - 3);break; } } printf("\n"); return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s834365179
p00435
C
include<stdio.h> int main(){ char a; while(scanf("%c",&a) != EOF){ switch(a){ case 'A': printf("X");break; case 'B': printf("Y");break; case 'C': printf("Z");break; default : printf("%c",a - 3);break; } } printf("\n"); return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s591233332
p00435
C
include <stdio.h> int main(void){ char a; while(scanf("%c",&a) != EOF){ switch(a){ case 'A': printf("X");break; case 'B': printf("Y");break; case 'C': printf("Z");break; default : printf("%c",a - 3);break; } } printf("\n"); return 0; }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s342003149
p00435
C
include <stdio.h> int main(void){ char a; while(scanf("%c",&a) != EOF){ switch(a){ case 'A': printf("X");break; case 'B': printf("Y");break; case 'C': printf("Z");break; default : printf("%c",a - 3);break; } } printf("\n"); return 0; }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s729152690
p00435
C
#include <stdio.h> int main(void){ char a; while(scanf("%c",&a) != EOF){ switch(a){ case 'A': printf("X");break; case 'B': printf("Y");break; case 'C': printf("Z");break; default : printf("%c",(char)(int(a) - 3);break; } } return 0; }
main.c: In function 'main': main.c:10:38: error: expected ')' before 'a' 10 | default : printf("%c",(char)(int(a) - 3);break; | ^ | ) main.c:10:40: error: expected ')' before '-' token 10 | default : printf("%c",(char)(i...
s271543489
p00435
C
main(c){for(gets(&c);c=getchar(),~c;putchar(c>10?65+c%68%42:c));exit(0);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(c){for(gets(&c);c=getchar(),~c;putchar(c>10?65+c%68%42:c));exit(0);} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int] main.c:1:13: error: implicit declaration of function 'gets' [-Wim...
s764708251
p00435
C
include<stdio.h> #include<string.h> int main(){ int i,slen; char str[1001],b; fgets(str,1000,stdin); slen=strlen(str); for(i=0;i<slen;i++){ if(isalpha(str[i])){ b=(int)str[i]-(int)'A'-3; b=(b>-1?b:26+b)+'A'; printf("%c",b); }else{ printf("%c",str[i]); } } return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^ In file included from main.c:2: /usr/include/string.h:44:22: error: unknown type name 'size_t' 44 | size_t __n) __THROW __nonnull ((1, 2)); | ...
s061311496
p00435
C
main(a){for(;~scanf("%d",&c);printf("%c",(c-62)%26+65));}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(a){for(;~scanf("%d",&c);printf("%c",(c-62)%26+65));} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int] main.c:1:15: error: implicit declaration of function 'scanf' [-Wimplicit-function...
s096526932
p00435
C
main(c){for(;~scanf("%c",&c);printf("%c",c+3-(c>90)?26:0);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(c){for(;~scanf("%c",&c);printf("%c",c+3-(c>90)?26:0);} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int] main.c:1:15: error: implicit declaration of function 'scanf' [-Wimplicit-functi...
s439617257
p00435
C
#include<stdio.h> #include<string.h> int main(){ char a[27]="ABCDEFGHIJKLMNOPQRSTUVWXYZ",b[1000],bstr,c,check,d; scanf("%1001[^\n]",b); bstr=strlen(b); for(c=0;c<bstr;c++){ for(d=0;d<27;d++){ f(b[c]==a[d]){ b[c]=a[d-3]; } } } printf("%s\n",b); return 0; }
main.c: In function 'main': main.c:11:25: error: implicit declaration of function 'f' [-Wimplicit-function-declaration] 11 | f(b[c]==a[d]){ | ^ main.c:11:38: error: expected ';' before '{' token 11 | f(b[c]==a[d]){ | ...
s246604265
p00435
C
#include<iostream> #include<string> using namespace std; int main(){ string s; while(cin>>s){ for(int i = 0; i < s.size(); i++){ s[i] -= 3; if(s[i]<'A' || s[i]>'Z')s[i] += 26; } cout<<s<<endl; } }
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s743972142
p00435
C
#include <stdio.h> int main(){ char x[1000]; int i=0; while(scanf("%s",&x) != EOF){ x[i] -= 3; printf("%c",x[i]; i++; } printf("\n"); return 0; }
main.c: In function 'main': main.c:7:27: error: expected ')' before ';' token 7 | printf("%c",x[i]; | ~ ^ | ) main.c:8:16: error: expected ';' before '}' token 8 | i++; | ^ | ; 9 | ...
s923435875
p00435
C
#include <stdio.h> int main(){ char x[1001; int i=0; while(x[i] != EOF){ scanf("%c",&x[i]); if(x[i]=='A'){ x[i]='X'; } else if(x[i]=='B'){ x[i]='Y'; } else if(x[i]=='C'){ x[i]='Z'; } else{ x[i] -= 3; } printf("%c",x[i]); i++; } return 0; }
main.c: In function 'main': main.c:3:15: error: expected ']' before ';' token 3 | char x[1001; | ^ | ] main.c:23:1: error: expected declaration or statement at end of input 23 | } | ^
s058045974
p00435
C
#include <stdio.h> int main(){ char x[1002]; int i=0; while(scanf("%c",&x[i]) != EOF){ if(x[i]=='A'){ x[i]=X; } else if(x[i]=='B'){ x[i]=Y; } else if(x[i]=='C'){ x[i]=Z; } else{ x[i] -= 3; } printf("%c",x[i]); i++; } printf("\n"); return 0; }
main.c: In function 'main': main.c:7:22: error: 'X' undeclared (first use in this function) 7 | x[i]=X; | ^ main.c:7:22: note: each undeclared identifier is reported only once for each function it appears in main.c:10:22: error: 'Y' undeclared (first use in this function) ...
s516385877
p00435
C
#include<stdio.h> int main(){ char c; while(1){ getchar(c); if(c == '\n')return 0; int x = c - 'A'; x = (x - 3) % 26; putchar(c + x); } }
main.c: In function 'main': main.c:6:5: error: too many arguments to function 'getchar' 6 | getchar(c); | ^~~~~~~ In file included from main.c:1: /usr/include/stdio.h:582:12: note: declared here 582 | extern int getchar (void); | ^~~~~~~
s592935095
p00435
C
#include<stdio.h> int main() { int x[26]={'X','Y','Z','A','B','C','D','E','F','G','H','I','J','K', 'L','M','N','O','P','Q','R','S','T','U','V','W'); char input[1001]; int i; scanf("%s",input); char c=input[0]; for(i=0; (c!='\0'); i++){ printf("%c", x[(c-65)]; c = x[i+1]; } putchar('\n'); return...
main.c: In function 'main': main.c:5:50: error: expected '}' before ')' token 5 | 'L','M','N','O','P','Q','R','S','T','U','V','W'); | ^ main.c:4:13: note: to match this '{' 4 | int x[26]={'X','Y','Z','A','B','C','D','E','F','G','H','I','J','K', | ...
s538253172
p00435
C
#include <stdio.h> int main(void){ char str[1001]; int i=0; scanf("%s",str); while(str[i]!='\0'){ str[i]-=3; if(str[i]<'A'){ c+=26; } } printf("%s",str); return 0; }
main.c: In function 'main': main.c:10:25: error: 'c' undeclared (first use in this function) 10 | c+=26; | ^ main.c:10:25: note: each undeclared identifier is reported only once for each function it appears in
s993682045
p00435
C
c;main(i){for(;~scanf("%d",&c);i++)printf("%c",(c>67)?c-3:c+23) return 0;}
main.c:1:1: warning: data definition has no type or storage class 1 | c;main(i){for(;~scanf("%d",&c);i++)printf("%c",(c>67)?c-3:c+23) | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int] 1 | c;main(i){for(;~s...
s897526311
p00435
C++
#include<iostream> #include<string> using namespace std; int main () { string s; cin >> s; for(i=0;i<s.length();i++){ s[i] = s[i]-3; } cout << s << endl; }
a.cc: In function 'int main()': a.cc:8:9: error: 'i' was not declared in this scope 8 | for(i=0;i<s.length();i++){ | ^
s169295421
p00435
C++
#include<iostream> #include<string> using namespace std; int main () { int i; string s; cin >> s; for(i=0;i<s.length();i++){ if(s[i]==A) s[i] = X; else if (s[i]==B) s[i] = Y; else if (s[i]==C) s[i] = Z; else s[i] = s[i]-3; } cout << s << endl; }
a.cc: In function 'int main()': a.cc:10:18: error: 'A' was not declared in this scope 10 | if(s[i]==A) s[i] = X; | ^ a.cc:10:28: error: 'X' was not declared in this scope 10 | if(s[i]==A) s[i] = X; | ^ a.cc:11:24: error: 'B' was not declared ...
s039918466
p00435
C++
#include <cstring> using namespace std; int main(){ char str[1000]; char a[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'}; cin >> str; int len = strlen(str); for(int i = 0; i < len; i++){ for(int ...
a.cc: In function 'int main()': a.cc:13:9: error: 'cin' was not declared in this scope 13 | cin >> str; | ^~~ a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 1 | #include <cstring> +++ |+#include <iostream> 2 | usi...
s734052181
p00435
C++
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include <limits.h> //#include <windows.h> #include <iostream> #include <algorithm> #include <set> #include <queue> #include <functional> using namespace std; typedef unsigned int uint; typedef long long int llint; typedef ...
a.cc: In function 'void func()': a.cc:451:13: error: cannot convert 'bool*' to 'char*' 451 | ins(s); | ^ | | | bool* a.cc:422:16: note: initializing argument 1 of 'void ins(char*)' 422 | void ins(char* a) | ~~~~~~^ a.cc:452:24: error: ca...
s978006133
p00435
C++
#include<stdio.h> #include<hamakou.h> main(){ int now,k,i=0,n; char c[1024]; n=getstring("文字列: ",c); k=getint("キー : "); while(i<n){ now=k;//kを操作するためのコピー if(k<0){ now-=('~'-c[i]);//余りを足したときはみ出さないように範囲の最大まで移動した場合のキーの調整 c[i]+=('~'-c[i]);//余りを足したときはみ出さないように範囲の最大まで移動 now=now%('~'-' '+1);/...
a.cc:2:9: fatal error: hamakou.h: No such file or directory 2 | #include<hamakou.h> | ^~~~~~~~~~~ compilation terminated.
s320514917
p00435
C++
#include<stdio.h> #include<hamakou.h> main(){ int now,k,i=0,n; char c[1024]; n=getstring("文字列: ",c); k=getint("キー : "); while(i<n){ now=k;//kを操作するためのコピー if(k<0){ now-=('~'-c[i]);//余りを足したときはみ出さないように範囲の最大まで移動した場合のキーの調整 c[i]+=('~'-c[i]);//余りを足したときはみ出さないように範囲の最大まで移動 now=now%('~'-' '+1);/...
a.cc:2:9: fatal error: hamakou.h: No such file or directory 2 | #include<hamakou.h> | ^~~~~~~~~~~ compilation terminated.
s138642312
p00435
C++
#include<stdio.h> int main(){ char ch,ST; char N[27]={}; while(scanf("%c",&ch)!=EOF){ if(ch=='A')printf("D",ch); else if(ch=='A')printf("D",ch); else if(ch=='B')printf("E",ch); else if(ch=='C')printf("F",ch); else if(ch=='D')printf("G",ch); else if(ch=='E')printf("H",ch); else if(ch=='F')printf("I",ch); else if(ch=='...
a.cc: In function 'int main()': a.cc:40:1: error: 'return0' was not declared in this scope 40 | return0; | ^~~~~~~
s719157625
p00435
C++
#include<stdio.h> int main(){ char ch; while(scanf("%c",&ch)!=EOF){ if(ch>='D')ch-=3; else ch+=23; printf("%c",c); }printf("\n"); return 0; }
a.cc: In function 'int main()': a.cc:9:13: error: 'c' was not declared in this scope; did you mean 'ch'? 9 | printf("%c",c); | ^ | ch
s804424463
p00435
C++
#include<iostream> #include<string> using namespace std; int main() { char alphabet[30] ="XYZABCDEFGHIJKLMNOPQRSTUVWXYZ"; char input[1000] = { "" }; char output[1000] = { "" }; scanf_s("%s",&input[0],1000); for (int a = 0; a < 1000; a++) { for (int b = 3; b < 30; b++) { if (input[a] == alphabet[b]) ...
a.cc: In function 'int main()': a.cc:13:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'? 13 | scanf_s("%s",&input[0],1000); | ^~~~~~~ | scanf
s917250468
p00435
C++
char ans(char t){ if(t == 'G'){return 'D';} if(t == 'H'){return 'E';} if(t == 'I'){return 'F';} if(t == 'J'){return 'G';} if(t == 'K'){return 'H';} if(t == 'L'){return 'I';} if(t == 'N'){return 'J';} if(t == 'M'){return 'K';} if(t == 'O'){return 'L';} if(t == 'P'){return 'M';} if(t == 'Q'){return 'N';} if(t == 'R'){re...
a.cc: In function 'int main()': a.cc:33:15: error: 'cin' was not declared in this scope 33 | while(cin >> a[i]){i++;} | ^~~ a.cc:35:17: error: 'cout' was not declared in this scope 35 | cout<<ans(a[j]); | ^~~~ a.cc:37:9: error: 'cout' was not decla...
s643104040
p00435
C++
#include <cstdio.h> #include <vector> using namespace std; int main(void) { char str[1024]; scanf("%s", str); int i = 0; while (str[i] != '\0'){ if (str[i] >= 88){ str[i] -= 23; } else { str[i] -= 3; } i++; } printf("%s\n", str); return (0); }
a.cc:1:10: fatal error: cstdio.h: No such file or directory 1 | #include <cstdio.h> | ^~~~~~~~~~ compilation terminated.
s783725580
p00435
C++
#include <cstdio.h> using namespace std; int main(void) { char str[1024]; scanf("%s", str); int i = 0; while (str[i] != '\0'){ if (str[i] >= 88){ str[i] -= 23; } else { str[i] -= 3; } i++; } printf("%s\n", str); return (0); }
a.cc:1:10: fatal error: cstdio.h: No such file or directory 1 | #include <cstdio.h> | ^~~~~~~~~~ compilation terminated.
s164884929
p00435
C++
#include <cstdio.h> using namespace std; int main(void) { char str[1024]; scanf("%s", str); int i = 0; while (str[i] != '\0'){ if (str[i] >= 88){ str[i] -= 23; } else { str[i] -= 3; } i++; } printf("%s\n", str); return (0); }
a.cc:1:10: fatal error: cstdio.h: No such file or directory 1 | #include <cstdio.h> | ^~~~~~~~~~ compilation terminated.
s719408680
p00435
C++
FURDWLD
a.cc:1:1: error: 'FURDWLD' does not name a type 1 | FURDWLD | ^~~~~~~
s101328532
p00435
C++
#include <iostream> using namespace std; int main() { int a[1000]; char b[1000]; cin >> b; for (int i = 0; b[i] != "\0"; i++) { a[i] = b[i]; if (b[i] != "A" && b[i] != "B" && b[i] != "C") a[i] -= 3; else a[i] += 23; b[i] = a[i]; } for (int i = 0; i < 26; i++){ cout << b[i]; } cout << endl; }
a.cc: In function 'int main()': a.cc:11:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | for (int i = 0; b[i] != "\0"; i++) { | ~~~~~^~~~~~~ a.cc:13:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 13 | ...
s348547308
p00435
C++
#include<iostream> #include<string> using namespace std; char T[30]="XYZABCDEFGHIJKLMNOPQRSTUVWXYZ" main(){ string S;cin>>S; for(int i=0;i<S.size();i++){for(int j=3;j<29;j++){if(S[i]==T[j]){cout<<T[j-3];}}} cout<<endl;}
a.cc:5:1: error: expected ',' or ';' before 'main' 5 | main(){ | ^~~~
s868748977
p00435
C++
#include <bits/stdc++.h> using namespace std; int main() { string a="ABCDEFGHIJKLMNOPQRSTUVWXYZ",s; cin>>s; int q[s.size()]; for(int i=0; i<s.size(); i++){ for(int j=0; j<a.size(); j++){ if(s[i]==a[j]){ q[i]=j; break; } } if(q[i]<3) cout<<a[q[i]+23] else cout<<a[q[i]-3]; } re...
a.cc: In function 'int main()': a.cc:17:33: error: expected ';' before 'else' 17 | cout<<a[q[i]+23] | ^ | ; 18 | else | ~~~~
s956182636
p00435
C++
#include <iostream> #include <string> using namespace std; int main() { string InStr; char *OutStr; cin >> InStr; OutStr = new char[ InStr.size() ]; for( unsigned short i = 0; i < InStr.size(); i++ ) { if( InStr[i] - 3 >= 64 ) { OutStr[i] = InStr[i] - 3; } else { OutStr[i] = InStr[i] + 23; ...
a.cc: In function 'int main()': a.cc:27:17: error: 'printf_s' was not declared in this scope; did you mean 'printf'? 27 | printf_s( "%c", OutStr[i] ); | ^~~~~~~~ | printf a.cc:30:9: error: 'printf_s' was not declared in this scope; did you mean 'printf'? ...
s645104061
p00435
C++
int main(void){char*t,s[1001];scanf("%s",s);for(t=s;*t;t++)(*t)-=3,(*t<'A')&&((*t)+=26);puts(s);return 0;}
a.cc: In function 'int main()': a.cc:1:31: error: 'scanf' was not declared in this scope 1 | int main(void){char*t,s[1001];scanf("%s",s);for(t=s;*t;t++)(*t)-=3,(*t<'A')&&((*t)+=26);puts(s);return 0;} | ^~~~~ a.cc:1:89: error: 'puts' was not declared in this scope 1 | int main...
s094140223
p00435
C++
s = gets.chomp s.length.count.times do |i| s[i].to_i += 3 print s[i].to_s end print "\n"
a.cc:1:1: error: 's' does not name a type 1 | s = gets.chomp | ^
s183193435
p00435
C++
s = gets.chomp s.length.count.times do |i| s[i].to_i! += 3 print s[i].to_s end print "\n"
a.cc:1:1: error: 's' does not name a type 1 | s = gets.chomp | ^
s869749715
p00435
C++
a = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ") b = list("DEFGHIJKLMNOPQRSTUVWXYZABC") x = list(input()) for i in range(len(x)): for j in range(len(a)): if x[i] == b[j]: x[i] = a[j] break for i in range(len(x)): print(x[i], end = "") print("")
a.cc:1:1: error: 'a' does not name a type 1 | a = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ") | ^
s207210951
p00435
C++
#include<iostream> #include<cstdio> #include<cctype> using namespace std; #define LEN 1000 int main(){ char angou[LEN]; char buff[27] = {"ABCDEFGHIJKLMNOPQRSTUVWXYZ"}; int i, str; cin >> angou; str = strlen(angou); for(i = 0; i < str; i ++){ angou[i] = tolower(angou[i]); } for(i = 0; angou[i] != '\0'; i++...
a.cc: In function 'int main()': a.cc:14:15: error: 'strlen' was not declared in this scope 14 | str = strlen(angou); | ^~~~~~ a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 3 | #include<cctype> +++ |+#include <cstri...
s591050572
p00435
C++
#include<iostream> #include<cstdio> #include<cctype> #include<string> using namespace std; #define LEN 1000 int main(){ char angou[LEN]; char buff[27] = {"ABCDEFGHIJKLMNOPQRSTUVWXYZ"}; int i, str; cin >> angou; str = strlen(angou); for(i = 0; i < str; i ++){ angou[i] = tolower(angou[i]); } for(i = 0; ang...
a.cc: In function 'int main()': a.cc:16:15: error: 'strlen' was not declared in this scope 16 | str = strlen(angou); | ^~~~~~ a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 3 | #include<cctype> +++ |+#include <cstri...
s320557873
p00435
C++
#include<iostream> #include<stdio.h> #include<string.h> using namespace std; int main(void){ char a[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}; char b[1000]; int c[1000],i,n,s,kazu,; cin>>b; for(i=0;i<1000;i++){ c[i]=0; } kazu=strlen(b); n=0; ...
a.cc: In function 'int main()': a.cc:8:32: error: expected unqualified-id before ';' token 8 | int c[1000],i,n,s,kazu,; | ^
s603278049
p00435
C++
#include <bits/stdc++.h> int main(){ string s; cin >> s; map<char, char>m; m['D'] = 'A'; m['E'] = 'B'; m['F'] = 'C'; m['G'] = 'D'; m['H'] = 'E'; m['I'] = 'F'; m['J'] = 'G'; m['K'] = 'H'; m['L'] = 'I'; m['M'] = 'J'; m['N'] = 'K'; m['O'] = 'L'; m['P'] = 'M'; m['Q'] = 'N'; m['R'] = 'O'; m['S'] = 'P'; ...
a.cc: In function 'int main()': a.cc:4:9: error: 'string' was not declared in this scope 4 | string s; | ^~~~~~ a.cc:4:9: note: suggested alternatives: In file included from /usr/include/c++/14/string:41, from /usr/include/c++/14/bitset:52, from /usr/include/x...
s595851440
p00435
C++
#include <iostream> #include <string> int main() { string str, res; std::cin >> str; string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (int i = 0; i < (int)str.size(); ++i) { char s = str[i]; for (int j = 0; j < (int)alphabet.size(); j++) { if (s == alphabet[j]) { ...
a.cc: In function 'int main()': a.cc:5:5: error: 'string' was not declared in this scope 5 | string str, res; | ^~~~~~ a.cc:5:5: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, from /usr/include/c++/1...
s294290478
p00435
C++
#include <iostream> #include <string> using namespace std:: int main(){ string str; string res = ""; cin >> str; string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (int i = 0; i <(int)s.size() ++i) { char s = str[i]; for (int j = 0; i < (int)alphabet.size(); res += alphabet[(size + j -3) %...
a.cc:4:1: error: expected identifier before 'int' 4 | int main(){ | ^~~ a.cc:3:22: error: expected ';' before 'int' 3 | using namespace std:: | ^ | ; 4 | int main(){ | ~~~ a.cc: In function 'int main()': a.cc:5:3: error: 's...
s118603504
p00435
C++
#include <iostream> #include <string> using namespace std; int main(){ string str; string res = ""; cin >> str; string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (int i = 0; i <(int)s.size() ++i) { char s = str[i]; for (int j = 0; i < (int)alphabet.size(); res += alphabet[(size + j -3) % ...
a.cc: In function 'int main()': a.cc:11:27: error: 's' was not declared in this scope 11 | for (int i = 0; i <(int)s.size() ++i) { | ^ a.cc:11:38: error: expected ';' before 'i' 11 | for (int i = 0; i <(int)s.size() ++i) { | ^ | ...
s463610286
p00435
C++
#include <iostream> #include <string> using namespace std; int main(){ string str; string res = ""; cin >> str; string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (int i = 0; i <(int)s.size() ++i) { char s = str[i]; for (int j = 0; i < (int)alphabet.size(); res += alphabet[(size + j -3) % ...
a.cc: In function 'int main()': a.cc:11:27: error: 's' was not declared in this scope 11 | for (int i = 0; i <(int)s.size() ++i) { | ^ a.cc:11:38: error: expected ';' before 'i' 11 | for (int i = 0; i <(int)s.size() ++i) { | ^ | ...
s695695050
p00435
C++
#include <iostream> #include <string> using namespace std; int main(){ string str; string res = ""; cin >> str; string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (int i = 0; i <(int)s.size(); ++i) { char s = str[i]; for (int j = 0; j < (int)alphabet.size();j++) { res += alphabet[(size + j...
a.cc: In function 'int main()': a.cc:11:27: error: 's' was not declared in this scope 11 | for (int i = 0; i <(int)s.size(); ++i) { | ^ a.cc:14:28: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+' 14 | res += alphabet[(...
s257679006
p00435
C++
#include <iostream> #include <string> using namespace std; int main(){ string str; string res = ""; cin >> str; string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (int i = 0; i <(int)str.size(); ++i) { char s = str[i]; for (int j = 0; j < (int)alphabet.size();j++) { res += alphabet[(size +...
a.cc: In function 'int main()': a.cc:14:28: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+' 14 | res += alphabet[(size + j -3) % size]; | ~~~~~^~~ a.cc: At global scope: a.cc:18:1: error: 'cout' does not name a type 18 | cou...
s682157069
p00435
C++
#include <iostream> #include <string> using namespace std; int main(){ string str; string res = ""; cin >> str; string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (int i = 0; i <(int)str.size(); ++i) { char s = str[i]; for (int j = 0; j < (int)alphabet.size();j++) { res += alphabet[(size +...
a.cc: In function 'int main()': a.cc:14:28: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+' 14 | res += alphabet[(size + j -3) % size]; | ~~~~~^~~ a.cc: At global scope: a.cc:18:1: error: 'cout' does not name a type 18 | cou...
s517445665
p00435
C++
#include <iostream> #include <string> using namespace std; int main(){ string str; string res = ""; cin >> str; string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for (int i = 0; i <(int)str.size(); ++i) { char s = str[i]; for (int j = 0; j < (int)alphabet.size();j++) { int size = (int)alphabe...
a.cc:19:1: error: 'cout' does not name a type 19 | cout << res << end]; | ^~~~ a.cc:23:1: error: expected declaration before '}' token 23 | } | ^
s995151098
p00435
C++
#include <stdio.h> #include <string> using namespace std; string S; unsigned int n; int main(void){ getline(cin,S); n = S.length(); for(int i = 0; i < n; i++){ char c = S[i]; int n = ((c - 'A') + 3)%26; printf("%c",'A' + n); } printf("\n"); }
a.cc: In function 'int main()': a.cc:9:13: error: 'cin' was not declared in this scope 9 | getline(cin,S); | ^~~ a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 2 | #include <string> +++ |+#include <iostream> 3 | ...
s092666972
p00435
C++
#include<stdio.h> main(){ char S[1024]; scanf("%s",S); for(int i = 0;S[i] != '\0';i++){ char c = S[i] - 3; if(c < 'A'){ c += 26; } printf("%c",c); } printf('\n'); }
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:12:12: error: invalid conversion from 'char' to 'const char*' [-fpermissive] 12 | printf('\n'); | ^~~~ | | | c...
s389491778
p00435
C++
#include<cstdio> #include<iostream> #include<algorithm> #include<vector> #include<string> #include<queue> #include<stack> #include<set> #include<functional> #include<cmath> using namespace std; typedef long long ll; int main() { char str[1050]; scanf("%s",str); char b; for (int i = 0; i < strlen(str); i++) { ...
a.cc: In function 'int main()': a.cc:23:29: error: 'strlen' was not declared in this scope 23 | for (int i = 0; i < strlen(str); i++) { | ^~~~~~ a.cc:11:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 10 | #inclu...
s083973606
p00435
C++
#include<cstdio> #include<iostream> #include<cstring> using namespace std; char a[1001]; int main() { int i,lena; char n; gets(a); lena=strlen(a); for(i=0;i<lena;i++) { n=a[i]-3; if(n<65)n=91-(65-n); cout<<n; } cout<<endl; return 0; }
a.cc: In function 'int main()': a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | gets(a); | ^~~~ | getw
s263963205
p00435
C++
#include<cstdio> #include<iostream> #include<cstring> using namespace std; char a[1001]; int main() { int i,lena; char n; gets(a); lena=strlen(a); for(i=0;i<lena;i++) { n=a[i]-3; if(n<65)n=91-(65-n); cout<<n; } cout<<endl; return 0; }
a.cc: In function 'int main()': a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | gets(a); | ^~~~ | getw
s719907828
p00435
C++
#include<cstdio> #include<iostream> #include<cstring> using namespace std; char a[1001]; int main() { int i,lena; char n; gets(a); lena=strlen(a); for(i=0;i<lena;i++) { n=a[i]-3; if(n<41)n=7B-(41-n); cout<<n; } cout<<endl; return 0; }
a.cc: In function 'int main()': a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | gets(a); | ^~~~ | getw a.cc:15:27: error: unable to find numeric literal operator 'operator""B' 15 | if(n<41)n=7B-(41-n); | ...
s986797506
p00435
C++
#include<cstdio> #include<iostream> #include<cstring> using namespace std; char a[1001]; int main() { int i,lena; char n; gets(a); lena=strlen(a); for(i=0;i<lena;i++) { if(a[i]<='C') { n=a[i]+23; } else n=a[i]-3; cout<<n; } cout<<endl; return 0; }
a.cc: In function 'int main()': a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | gets(a); | ^~~~ | getw
s138684017
p00435
C++
#include<cstdio> #include<iostream> #include<cstring> using namespace std; char a[1001]; int main() { int i,lena; char n; gets(a); lena=strlen(a); for(i=0;i<lena;i++) { if(a[i]<='C') a[i]+=23; else a[i]-=3; cout<<a[i]; } cout<<endl; return 0; }
a.cc: In function 'int main()': a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | gets(a); | ^~~~ | getw
s794704078
p00435
C++
#include<cstdio> #include<iostream> #include<cmath> #include<cstring> using namespace std; char a[1001]; int main() { int i,lena; char n; gets(a); lena=strlen(a); for(i=0;i<lena;i++) { if(a[i]<='C') a[i]+=23; else a[i]-=3; cout<<a[i]; } cout<<endl; return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 11 | gets(a); | ^~~~ | getw
s196405877
p00435
C++
#include<cstdio> #include<iostream> #include<cmath> #include<cstring> using namespace std; char a[1001]; int main() { int i,lena; char n; gets(a); lena=strlen(a); for(i=0;i<lena;i++) { if(a[i]<='C') a[i]+=23; else a[i]-=3; cout<<a[i]; } cout<<endl; return 0; }
a.cc: In function 'int main()': a.cc:11:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 11 | gets(a); | ^~~~ | getw
s760910815
p00435
C++
#include <iostream> #include <string> using namespace std; int main(){ string str; cin>>str; for (i=0;i<str.size();i++) { if (str[i]<'D'){ str[i]=str[i]+23; }else{ str[i]=str[i]+3; } cout<<str<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:14: error: 'i' was not declared in this scope 7 | for (i=0;i<str.size();i++) | ^ a.cc:16:2: error: expected '}' at end of input 16 | } | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s958113815
p00435
C++
#include <iostream> #include <string> using namespace std; int main(void){ string str; cin>>str; for (int i=0;i<str.size();i++) { if (str[i]<'D'){ str[i]=str[i]+23; }else{ str[i]=str[i]+3; } cout<<str<<endl; return 0; }
a.cc: In function 'int main()': a.cc:16:2: error: expected '}' at end of input 16 | } | ^ a.cc:4:15: note: to match this '{' 4 | int main(void){ | ^
s203910573
p00435
C++
#include <iostream> #include <string> using namespace std; int main(void){ string str; cin>>str; for (int i=0;i<str.size();i++) { if (str[i]<'D'){ str[i]=str[i]+23; }else{ str[i]=str[i]+3; } cout<<str<<endl; return 0; }
a.cc: In function 'int main()': a.cc:16:2: error: expected '}' at end of input 16 | } | ^ a.cc:4:15: note: to match this '{' 4 | int main(void){ | ^
s340569706
p00435
C++
#include <iostream> #include <string> using namespace std; int main(void){ string str; cin>>str; for (int i=0;i<str.size();i++) { if (str[i]<'D'){ str[i]=str[i]+23; }else{ str[i]=str[i]-3; } cout<<str<<endl; return 0; }
a.cc: In function 'int main()': a.cc:16:2: error: expected '}' at end of input 16 | } | ^ a.cc:4:15: note: to match this '{' 4 | int main(void){ | ^
s000908079
p00435
C++
#include <iostream> #include <string> using namespace std; int main(void){ string str; int i; cin>>str; for (i=0;i<str.size();i++) { if (str[i]<'D'){ str[i]=str[i]+23; }else{ str[i]=str[i]-3; } cout<<str<<endl; return 0; }
a.cc: In function 'int main()': a.cc:17:2: error: expected '}' at end of input 17 | } | ^ a.cc:4:15: note: to match this '{' 4 | int main(void){ | ^
s235645536
p00435
C++
#include<stdio.h> #include<iostream> #include<string> using namespace std; int main(void) { int a, siz,i; char c,b,p[1001]; scanf("%s", p); siz = strlen(p); for (i = 0; i <siz; i++) { a = p[i]; if (a >= 68) { a = a - 3; } else { a = a + 23; } b = a; printf("%c", b); } cout << endl; retu...
a.cc: In function 'int main()': a.cc:10:15: error: 'strlen' was not declared in this scope 10 | siz = strlen(p); | ^~~~~~ a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include<iostream> +++ |+#include <cstring...
s057215260
p00435
C++
#include<iostream> #include<string> using namespace std; int main(){ char moji[10000]={}; int len; cin>>moji; len=strlen(moji); for(int i=0;i<len;i++){ if(moji[i]-'A'<=22){ moji[i]=moji[i]-3; } else{ moji[i]=moji[i]+23; } } for(int i=0;i<len;i++){ cout<<moji[i]; } cout<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:13: error: 'strlen' was not declared in this scope 8 | len=strlen(moji); | ^~~~~~ a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include<iostream> +++ |+#include <cstring> ...
s442170708
p00435
C++
#include<iostream> #include<string> using namespace std; int main(){ char moji[1500]={}; int len; cin>>moji; len=strlen(moji); for(int i=0;i<len;i++){ if(moji[i]-'A'<=22){ moji[i]=moji[i]-3; } else{ moji[i]=moji[i]+23; } } for(int i=0;i<len;i++){ cout<<moji[i]; } cout<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:13: error: 'strlen' was not declared in this scope 8 | len=strlen(moji); | ^~~~~~ a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include<iostream> +++ |+#include <cstring> ...
s763811073
p00435
C++
#include<iostream> #include<string> using namespace std; int main(){ char moji[1500]={}; int len; cin>>moji; len=strlen(moji); for(int i=0;i<len;i++){ if(moji[i]-'A'<=22){ moji[i]=moji[i]-3; } else{ moji[i]=moji[i]+23; } } for(int i=0;i<len;i++){ cout<<moji[i]; } cout<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:13: error: 'strlen' was not declared in this scope 8 | len=strlen(moji); | ^~~~~~ a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 1 | #include<iostream> +++ |+#include <cstring> ...
s629851882
p00435
C++
main(){char s[1001],*a;scanf("%s",a=s);for(;*a;a++)*a=(*a-42)%26+65;puts(s);return 0;}
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 1 | main(){char s[1001],*a;scanf("%s",a=s);for(;*a;a++)*a=(*a-42)%26+65;puts(s);return 0;} | ^~~~ a.cc: In function 'int main()': a.cc:1:24: error: 'scanf' was not declared in this scope 1 | main(){char s[1001],*a;scanf(...
s454687598
p00435
C++
main(a){for(;~scanf("%d",&c);printf("%c",(c-62)%26+65));}
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token 1 | main(a){for(;~scanf("%d",&c);printf("%c",(c-62)%26+65));} | ^
s114559240
p00435
C++
#include<iostream> #include<string> int main() { string s; while(cin>>s){ for(int i=0;i<s.size();i++){ int a=s[i]-'A'; a+=3; a%=26; char p='A'+a; cout<<p; } cout<<endl; } }
a.cc: In function 'int main()': a.cc:6:1: error: 'string' was not declared in this scope 6 | string s; | ^~~~~~ a.cc:6:1: note: suggested alternatives: In file included from /usr/include/c++/14/iosfwd:41, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/ostream:40, ...
s720387637
p00435
C++
#include<iostream> #include<cstring> using namespace std; int main(){ int s[1001]; ci>>s; for(int i=0;i<strlen(s);i++){ switch(s[i]){ case 'X': cout<<'A'; break; case 'Y': cout<<'B'; break; case 'Z': cout<<'C'; break; default: cout<<(char)(s[i]+3); } } cout<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'ci' was not declared in this scope 6 | ci>>s; | ^~ a.cc:7:30: error: cannot convert 'int*' to 'const char*' 7 | for(int i=0;i<strlen(s);i++){ | ^ | | | ...
s682150132
p00435
C++
#include<iostream> #include<cstring> using namespace std; int main(){ int s[1001]; cin>>s; for(int i=0;i<strlen(s);i++){ switch(s[i]){ case 'X': cout<<'A'; break; case 'Y': cout<<'B'; break; case 'Z': cout<<'C'; break; default: cout<<(char)(s[i]+3); } } cout<<endl; return 0; ...
a.cc: In function 'int main()': a.cc:6:12: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int [1001]') 6 | cin>>s; | ~~~^~~ | | | | | int [1001] | std::istream {aka std::basic_istream<char...
s523990830
p00435
C++
#include<cstdio> #include<iostream> #include<algorithm> #include<string> using namespace std; int main(){ int n = 0; char t[1001] = {0}; gets(t); for(n = 0; n < 1001; n++){ if(t[n] == 0) break; t[n] += 3; if(t[n] > 'z') t[n] -= 'z' - 'a' + 1; printf("%c", t[n]); } printf("\n");
a.cc: In function 'int main()': a.cc:11:3: error: 'gets' was not declared in this scope; did you mean 'getw'? 11 | gets(t); | ^~~~ | getw a.cc:20:16: error: expected '}' at end of input 20 | printf("\n"); | ^ a.cc:8:11: note: to match this '{' 8 | int main(){ | ...
s438420816
p00435
C++
#include<cstdio> #include<iostream> #include<algorithm> #include<string> using namespace std; int main(){ int n = 0; char t[1001] = {0}; gets(t); for(n = 0; n < 1001; n++){ if(t[n] == 0) break; t[n] += 3; if(t[n] > 'z') t[n] -= 'z' - 'a' + 1; printf("%c", t[n]); } printf("\n");...
a.cc: In function 'int main()': a.cc:11:3: error: 'gets' was not declared in this scope; did you mean 'getw'? 11 | gets(t); | ^~~~ | getw a.cc:21:3: error: 'return0' was not declared in this scope 21 | return0; | ^~~~~~~
s936723342
p00435
C++
#include<cstdio> #include<iostream> #include<algorithm> #include<string> using namespace std; int main(){ int n = 0; char t[1001] = {0}; gets(t); for(n = 0; n < 1001; n++){ if(t[n] == 0) break; t[n] += 3; if(t[n] > 'z') t[n] -= 'z' - 'a' + 1; printf("%c", t[n]); } printf("\n");...
a.cc: In function 'int main()': a.cc:11:3: error: 'gets' was not declared in this scope; did you mean 'getw'? 11 | gets(t); | ^~~~ | getw a.cc:21:2: error: 'return0' was not declared in this scope 21 | return0; | ^~~~~~~
s246008381
p00435
C++
#include<stdio.h> int main() { char a[1001]; int i=0; while (scanf("%c", &a[i]) != EOF){ if (a[i] == 'A'){ a[i] = 'X'; } else if (a[i] == 'B'){ a[i] = 'Y'; } else if (a[i] == 'C'){ a[i] = 'Z'; } else if('D'<=a[i]&&'Z'>=a[i]){ a[i] -= 3; } printf("%c", a[i]); i++; }
a.cc: In function 'int main()': a.cc:23:10: error: expected '}' at end of input 23 | } | ^ a.cc:3:1: note: to match this '{' 3 | { | ^
s096798839
p00435
C++
#include <iostream> #include <cstring> using namespace std; int main() { char a[1000],b[1000]; cin.getline(a,1000); size_t len; len=stlen(a); for(int i=0;i<len;i++){ if (a[i]>'C'){ b[i]=a[i]-3; cout<<b[i];} else{ b[i]=a[i]+26-3; cout<<b[i];}} return 0; }
a.cc: In function 'int main()': a.cc:8:5: error: 'stlen' was not declared in this scope; did you mean 'strlen'? 8 | len=stlen(a); | ^~~~~ | strlen
s138808134
p00435
C++
#include <iostream> #include <cstring> using namespace std; int main() { char a[1000],b[1000]; cin.getline(a,1000); size_t len; len=stren(a); for(int i=0;i<len;i++){ if (a[i]>'C'){ b[i]=a[i]-3; cout<<b[i];} else{ b[i]=a[i]+26-3; cout<<b[i];}} return 0; }
a.cc: In function 'int main()': a.cc:8:5: error: 'stren' was not declared in this scope; did you mean 'strlen'? 8 | len=stren(a); | ^~~~~ | strlen
s196782098
p00435
C++
include <iostream> #include <string> using namespace std; int main(){ string s; cin >> s; for(int i=0;i<s.size();i++){ if(s[i] >= 'D' && s[i] <= 'Z') s[i] -= 3; else s[i] += 23; } cout << s << endl; }
a.cc:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a typ...
s441869827
p00435
C++
#include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; for(int i=0;i<S.size();i++){ if(S[i]==(int)"A"||S[i]==(int)"B"||S[i]==(int)"C") S[i]+=26; S[i]-=3; cout << S[i] ; } return 0; }
a.cc: In function 'int main()': a.cc:11:26: error: cast from 'const char*' to 'int' loses precision [-fpermissive] 11 | if(S[i]==(int)"A"||S[i]==(int)"B"||S[i]==(int)"C") | ^~~~~~~~ a.cc:11:42: error: cast from 'const char*' to 'int' loses precision [-fpermissive] 11...
s929317754
p00435
C++
// #include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; for(int i=0;i<S.size();i++){ if(S[i]==(int)"A"||S[i]==(int)"B"||S[i]==(int)"C") S[i]+=26; S[i]-=3; cout << S[i] ; } return 0; }
a.cc: In function 'int main()': a.cc:12:26: error: cast from 'const char*' to 'int' loses precision [-fpermissive] 12 | if(S[i]==(int)"A"||S[i]==(int)"B"||S[i]==(int)"C") | ^~~~~~~~ a.cc:12:42: error: cast from 'const char*' to 'int' loses precision [-fpermissive] 12...
s796858579
p00436
Java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); static int n = stdIn.nextInt(); static int[] cardSet = cardSet[2*n]; for(int i=0;i<n*2;i++){ cardSet[i] = i+1; } int m = stdIn.nextInt(); for(i=0;i<m;i++){ int shuffle = stdIn.n...
Main.java:6: error: illegal start of expression static int n = stdIn.nextInt(); ^ Main.java:9: error: illegal start of type for(int i=0;i<n*2;i++){ ^ Main.java:9: error: > or ',' expected for(int i=0;i<n*2;i++){ ^ Main.java:9: error: <identifier> expected for(int i=0;i<n*2;i++){ ...
s539073740
p00436
Java
import java.util.Scanner; class Main{ static int n = 0; static int[] cardSet = null; public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); n = stdIn.nextInt(); cardSet = Integer[2*n]; for(int i=0;i<n*2;i++){ cardSet[i] = i+1; } int m = stdIn.nextInt(); for(i=0;i<m;i++){...
Main.java:9: error: cannot find symbol cardSet = Integer[2*n]; ^ symbol: variable Integer location: class Main Main.java:15: error: cannot find symbol for(i=0;i<m;i++){ ^ symbol: variable i location: class Main Main.java:15: error: cannot find symbol for(i=0;i<m;i++){ ^ s...
s588507167
p00436
Java
import java.util.Scanner; class Main{ static int n = 0; static int[] cardSet = null; public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); n = stdIn.nextInt(); cardSet = new Integer[2*n]; for(int i=0;i<n*2;i++){ cardSet[i] = i+1; } int m = stdIn.nextInt(); for(int i=0;i...
Main.java:9: error: incompatible types: Integer[] cannot be converted to int[] cardSet = new Integer[2*n]; ^ Main.java:28: error: incompatible types: Integer[] cannot be converted to int[] int temp[] = new Integer[shufflePosition]; ^ Main.java:33: error: cannot find symbol for(i=0;i<car...
s858677056
p00436
C
#include<stdio.h> int main(){ int n,m,k,i,j,l=1; scanf("%d\n%d\n",&n,&m); int before[n*2],after[n*2]; for(i=0;i<n*2;i++){ before[i]=i+1; } for(i=0;i<m;i++){ scanf("%d\n",&k); if(k==0){ for(j=0;j<n*2;j++){ after[j]=before[j]; after[l]=before[n+j+1]; l+=2; } }else{ for(j=0;j<2*n-k;j++){ after[j]=before[k+j]; } for(j=0;j<...
main.c: In function 'main': main.c:33:1: error: expected declaration or statement at end of input 33 | } | ^
s238808310
p00436
C
#include <stdio.h> #include <stdlib.h> void shuffle(int **p,int k,int arraynum){ int* first; first = (int *)calloc(k,sizeof(int)); if(first == NULL){ exit(EXIT_FAILURE); } int* second; second = (int *)calloc(arraynum-k,sizeof(int)); if(second == NULL){ exit(EXIT_FAILURE); } int i; for(i=0;i<k;i++){ f...
main.c: In function 'main': main.c:69:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 69 | scanf_s("%d",&arraynum); | ^~~~~~~ | scanf