submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s363856525
p00017
C
#include <stdio.h> #include <string.h> int scan(char *str,int max) { int i; for(i=0;i<max;i++){ if(!strncmp(&(str[i]),"this ",5))return 1; if(!strncmp(&(str[i]),"that ",5))return 1; if(!strncmp(&(str[i]),"the ",4))return 1; if(!strncmp(&(str[i]),"this.",5))return 1; if(!...
main.c: In function 'main': main.c:26:11: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 26 | while(gets(in)!=EOF){ | ^~~~ | fgets
s738268736
p00017
C
#include <stdio.h> #include <string.h> #define X 90 int scan(char *str,int max) { int i; for(i=0;i<max;i++){ if(!strncmp(&(str[i]),"this ",5))return 1; if(!strncmp(&(str[i]),"that ",5))return 1; if(!strncmp(&(str[i]),"the ",4))return 1; if(!strncmp(&(str[i]),"this.",5))return 1; ...
main.c: In function 'main': main.c:26:11: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 26 | while(gets(in,X,stdin)!=EOF){ | ^~~~ | fgets
s885440754
p00017
C
#include <stdio.h> #include <string.h> #define X 90 int scan(char *str,int max) { int i; for(i=0;i<max;i++){ if(str[i]=='t'){ if(!strncmp(&(str[i]),"this ",5))return 1; if(!strncmp(&(str[i]),"that ",5))return 1; if(!strncmp(&(str[i]),"the ",4))return 1; if(!strncmp(&(str[i]),"thi...
main.c: In function 'main': main.c:32:11: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 32 | while(gets(in,X,stdin)!=EOF){ | ^~~~ | fgets main.c: In function 'scan': main.c:49:1: error: expected declaration or statement at ...
s934741231
p00017
C
#include <stdio.h> #include <string.h> #define X 90 int scan(char *str,int max) { int i; for(i=0;i<max;i++){ if(str[i]=='t'){ if(!strncmp(&(str[i]),"this ",5))return 1; if(!strncmp(&(str[i]),"that ",5))return 1; if(!strncmp(&(str[i]),"the ",4))return 1; if(!strncmp(&(str[i]),"thi...
main.c: In function 'main': main.c:32:28: warning: comparison between pointer and integer 32 | while(fgets(in,X,stdin)!=EOF){ | ^~ main.c: In function 'scan': main.c:49:1: error: expected declaration or statement at end of input 49 | } | ^ main.c:49:1: error: expected de...
s253830369
p00017
C
#include<stdio.h> #include<string.h> int main() { char s[99],*p; while(gets(s)) { while(!strstr(s,"the") && !strstr(s,"this") && !strstr(s,"that")) { for(p=s; *p; p++) { if(*p>='a' && *p<='y') ++*p; else if(*p=='z') *p='a'; } } puts(s); } return 0; }
main.c: In function 'main': main.c:6:15: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | while(gets(s)) { | ^~~~ | fgets
s195080573
p00017
C
main(){char s[99],*p;while(~scanf("%[ a-z.]\n",s)){while(!(strstr(s,"the")|strstr(s,"this")|strstr(s,"that")))for(p=s;*p;p++)*p>96&&*p<122?++*p:*p-122||(*p=97);puts(s);}return 0;}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(){char s[99],*p;while(~scanf("%[ a-z.]\n",s)){while(!(strstr(s,"the")|strstr(s,"this")|strstr(s,"that")))for(p=s;*p;p++)*p>96&&*p<122?++*p:*p-122||(*p=97);puts(s);}return 0;} | ^~~~ main.c: In function 'main': main.c:1:29: error: impli...
s301321738
p00017
C
#include <stdio.h> #include <string.h> #define MAX 80 // ˆÃ†•¶‚ÌÅ‘å•¶Žš” #define THE 0 // ”»•ʂɎg‚¤’PŒê #define THIS 1 #define THAT 2 #define SORT 3 // ”»•Ê’PŒê‚ÌŽí—Þ #define C_MAX 4 // ”»•Ê’PŒê‚ÌÅ‘å•¶Žš” #define A_NUM 26 // Žg—p•¶Žš‚̐” int main(void) { char s[MAX+1]; char CRYPT[SORT][A_NUM][C_MAX+1]; int f...
main.c: In function 'main': main.c:36:15: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 36 | while(gets(s) != NULL) { | ^~~~ | fgets main.c:36:23: warning: comparison between pointer and integer 36 | ...
s111316496
p00017
C
#include <stdio.h> #include <string.h> #define MAX 80 #define THE 0 #define THIS 1 #define THAT 2 #define SORT 3 #define C_MAX 4 #define A_NUM 26 int main(void) { char s[MAX+1]; char CRYPT[SORT][A_NUM][C_MAX+1]; int flag; char c[MAX+1]; int i, j, k; for(i = 0; i < A_NUM; i++) { CRYPT[THE][i][0] = ('t'-'a'+i)...
main.c: In function 'main': main.c:36:15: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 36 | while(gets(s) != NULL) { | ^~~~ | fgets main.c:36:23: warning: comparison between pointer and integer 36 | ...
s521942420
p00017
C
#include <stdio.h> #include <string.h> #define MAX 80 // ˆÃ†•¶‚ÌÅ‘å•¶Žš” #define THE 0 // ”»•ʂɎg‚¤’PŒê #define THIS 1 #define THAT 2 #define SORT 3 // ”»•Ê’PŒê‚ÌŽí—Þ #define C_MAX 4 // ”»•Ê’PŒê‚ÌÅ‘å•¶Žš” #define A_NUM 26 // Žg—p•¶Žš‚̐” int main(void) { char s[MAX+1]; char str[MAX+1]; char CRYPT[SORT][A_N...
main.c: In function 'main': main.c:38:15: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 38 | while(gets(s) != NULL) { | ^~~~ | fgets main.c:38:23: warning: comparison between pointer and integer 38 | ...
s106774464
p00017
C
// AOJ Volume 0 Problem 0017 #include <stdio.h> #include <string.h> #define DIFF(c1, c2) ((((c2)-(c1))>=0)?((c2)-(c1)+1):((c2)-(c1)+1+26)) void conv(char *str, char *str_diff) { int i; i = 0; do { switch (str[i]){ case ' ': case '.': str_diff[i] = -2; ...
main.c: In function 'main': main.c:85:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 85 | gets(&str[1]); | ^~~~ | fgets
s451644862
p00017
C
// AOJ Volume 0 Problem 0017 #include <stdio.h> #include <string.h> #define DIFF(c1, c2) ((((c2)-(c1))>=0)?((c2)-(c1)+1):((c2)-(c1)+1+26)) void conv(char *str, char *str_diff) { int i; i = 0; do { switch (str[i]){ case ' ': case '.': str_diff[i] = -2; ...
main.c: In function 'main': main.c:85:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 85 | gets(&str[1]); | ^~~~ | fgets
s581717695
p00017
C
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws InterruptedException, IOException { BufferedReader din = new BufferedReader(new InputStreamReader(System.in)); String data , str; char tmp; while ( true ){ data = din.readLine(); if ( data == null ) b...
main.c:1:1: error: unknown type name 'import' 1 | import java.io.*; | ^~~~~~ main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token 1 | import java.io.*; | ^ main.c:2:1: error: unknown type name 'import' 2 | import java.util.*; | ^~~~~~ main.c:2:12...
s360880769
p00017
C
#include<stdio.h> #include<string.h> main(){ char s[10000]; char this[10]="this"; char that[10]="that"; //(scanf("%[^\n]s",s) while(gets(s)!=NULL){ int n,i; n=strlen(s); while(1){ int co=0; for(i=0;i<n;i++){ if(97<=s[i] && 122>=s[i]){ s[i]--; if(s[i]==...
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int] 4 | main(){ | ^~~~ main.c: In function 'main': main.c:11:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 11 | while(gets(s)!=NULL){ | ^~~~ | fgets main....
s057912680
p00017
C
#include<stdio.h> #include<string.h> main(){ char s[10000]; char this[10]="this"; char that[10]="that"; while(gets(s)!=NULL){ int n,i; n=strlen(s); while(1){ int co=0; for(i=0;i<n;i++){ if(97<=s[i] && 122>=s[i]){ s[i]--; if(s[i]==96){ s[i]=122; } ...
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int] 4 | main(){ | ^~~~ main.c: In function 'main': main.c:10:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 10 | while(gets(s)!=NULL){ | ^~~~ | fgets main....
s367279869
p00017
C
#include <stdio.h> /*ƒV[ƒU[ˆÃ†*/ int main(){ char str[81]; int i; while(gets(str)!=NULL){ char zure=(str[0]-'t'); for(i=0;str[i]!='\0';i++) if(str[i]!=' ' && str[i]!='.') str[i] -= zure; printf(str); printf("\n"); } return 0; }
main.c: In function 'main': main.c:7:15: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 7 | while(gets(str)!=NULL){ | ^~~~ | fgets main.c:7:24: warning: comparison between pointer and integer 7 | whi...
s350290494
p00017
C
#define s(p)!strstr(a,"th"#p)&& char*c;main(i,a){for(;gets(a);!puts(a))for(;s(is)s(at)s(e)1;)for(c=a;*c;c++)*c=*c<97?*c:(*c+8)%26+97;}
main.c:2:8: error: return type defaults to 'int' [-Wimplicit-int] 2 | char*c;main(i,a){for(;gets(a);!puts(a))for(;s(is)s(at)s(e)1;)for(c=a;*c;c++)*c=*c<97?*c:(*c+8)%26+97;} | ^~~~ main.c: In function 'main': main.c:2:8: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:2:8: error: type of 'a...
s278360872
p00017
C
main(i,s){for(char*t=&i;~scanf("%[^\n] ",s);puts(s))for(;*t||!strstr(t=s,"th");*t++-=*t-97?*t>>6:-25);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(i,s){for(char*t=&i;~scanf("%[^\n] ",s);puts(s))for(;*t||!strstr(t=s,"th");*t++-=*t-97?*t>>6:-25);} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:1: error: type of 's' defa...
s364068345
p00017
C
#include <stdio.h> #include <string.h> int main(void){ char str[81]; int key; int len; int i; while(gets(str) != '\0'){ key = 't' - str[0]; len = strlen(str); for(i=0; i < len; i++){ if(str[i] == ' ' || str[i] == '.') continue; str[i] += key; if(str[i] < 'a') str[i] = 'z' + 1 - ('a' - str[i]); ...
main.c: In function 'main': main.c:10:15: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 10 | while(gets(str) != '\0'){ | ^~~~ | fgets
s477099145
p00017
C
#include<string.h> #include<stdio.h> using namespace std; int main(){ char a[100],b[100]; for(int i;i<100;i++){ a[i]='\0'; b[i]='\0'; } gets(a); int i=0; while(i<26){ for(int j=0;!(a[j]=='\0');j++){ if(0x61<=a[j]+i&&a[j]+i<=0x7A) b[j]+=i; else if(0x61<=a[j]&&a[j]<=0x7A){ b[j]=a[j]...
main.c:3:1: error: unknown type name 'using' 3 | using namespace std; | ^~~~~ main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std' 3 | using namespace std; | ^~~ main.c: In function 'main': main.c:11:3: error: implicit declaration of function 'gets'; did ...
s011195793
p00017
C
main(){gets();}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(){gets();} | ^~~~ main.c: In function 'main': main.c:1:8: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 1 | main(){gets();} | ^~~~
s607245374
p00017
C
#include<stdio.h> #include<string.h> char a[100]; int flag=1; void shift(){ int i=0; while(a[i]!=0){ if(a[i]>='a' && a[i]<='y') a[i]++; else if(a[i]=='z') a[i]='a'; i++; } } void match(){ char b[4]; char m[3][5]={"this","the","that"}; int i; for(i=0;i<4;i++) b[i]=a[i]; ...
main.c: In function 'main': main.c:33:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 33 | gets(a); | ^~~~ | fgets
s899079598
p00017
C
#include<stdio.h> #include<string.h> char a[100]; int flag=1; void shift(){ int i=0; while(a[i]!=0){ if(a[i]>='a' && a[i]<='y') a[i]++; else if(a[i]=='z') a[i]='a'; i++; } } void match(){ char b[4]; char m[3][5]={"this","the","that"}; int i; for(i=0;i<4;i++) b[i]=a[i]; ...
main.c: In function 'main': main.c:33:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 33 | gets(a); | ^~~~ | fgets
s971294568
p00017
C
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char str[81]; while(gets(str) != NULL) { int i,j; int len = strlen(str); for(i = 0;i < 26;i++) { for(j = 0;j < len;j++) { if(str[j] >= 'a' && str[j] <= 'z') { str[j] = (str[j] - 'a' + 1) % 26 + 'a'; } } ...
main.c: In function 'main': main.c:8:15: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 8 | while(gets(str) != NULL) | ^~~~ | fgets main.c:8:25: warning: comparison between pointer and integer 8 | wh...
s028427611
p00017
C
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char str[81]; while(gets(str) != NULL) { int i,j; int len = strlen(str); for(i = 0;i < 26;i++) { for(j = 0;j < len;j++) { if(str[j] >= 'a' && str[j] <= 'z') { str[j] = (str[j] - 'a' + 1) % 26 + 'a'; } } ...
main.c: In function 'main': main.c:8:15: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 8 | while(gets(str) != NULL) | ^~~~ | fgets main.c:8:25: warning: comparison between pointer and integer 8 | wh...
s445164306
p00017
C
#include<stdio.h> #include<string.h> #define s_plen(STR) STR,strlen(STR) #define test_the(p, len) test_xxx((p), (len),s_plen("the")) #define test_that(p, len) test_xxx((p), (len), s_plen("that")) #define test_this(p, len) test_xxx((p), (len), s_plen("this")) char rotate(char t, int i){ int r; if (t == '.') retu...
main.c: In function 'main': main.c:102:10: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 102 | while (gets(buf)){ | ^~~~ | fgets
s129063159
p00017
C
#include<stdio.h> #include<string.h> #define s_plen(STR) STR,strlen(STR) #define test_the(p, len) test_xxx((p), (len),s_plen("the")) #define test_that(p, len) test_xxx((p), (len), s_plen("that")) #define test_this(p, len) test_xxx((p), (len), s_plen("this")) char rotate(char t, int i){ int r; if (t == '.') retu...
main.c: In function 'main': main.c:103:10: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 103 | while (gets(buf)){ | ^~~~ | fgets
s901100549
p00017
C
#include<stdio.h> #include<string.h> #define s_plen(STR) STR,strlen(STR) #define test_the(p, len) test_xxx((p), (len),s_plen("the")) #define test_that(p, len) test_xxx((p), (len), s_plen("that")) #define test_this(p, len) test_xxx((p), (len), s_plen("this")) #define DEBUG 0 char rotate(char t, int i){ int r; ...
main.c: In function 'main': main.c:107:10: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 107 | while (gets(buf)){ | ^~~~ | fgets
s282556164
p00017
C
include<stdio.h> #include<string.h> #define BUFSIZE 81 #define s_plen(STR) STR,strlen(STR) #define test_the(p, len) test_xxx((p), (len),s_plen("the")) #define test_that(p, len) test_xxx((p), (len), s_plen("that")) #define test_this(p, len) test_xxx((p), (len), s_plen("this")) #define DEBUG 0 int readline(char*buf,...
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)); | ...
s110072166
p00017
C
#include<iostream> #include<string> using namespace std; string thi[100],tha[100],the[100]; string change_str(string ch,int mov); void set(void); int main() { int i,j; char ch[100]; set(); for(;cin.getline(ch,81);) { for(i=0;i<27;i++) { int se; se=string(ch).find(thi[i],0); if(se!=string::npos) ...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s811621992
p00017
C
#include<iostream> #include<string> using namespace std; string thi[100],tha[100],the[100]; string change_str(string ch,int mov); int set(void); int main() { int i,j; char ch[100]; set(); for(;cin.getline(ch,81);) { for(i=0;i<27;i++) { int se; se=string(ch).find(thi[i],0); if(se!=string::npos) ...
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s172046624
p00017
C
#include <stdio.h> #include <string.h> int main() { int i, l, c=0; char str[80]; while(scanf("%[^\n]",&str)!=EOF) { // Get String length for(l=1;1;l++) { if (str[l]=='\0') break; } for(c=0;c<26;c++) { for(i=0;i<l;i++) { // if str[i] is "." or " ", I will do nothing. if ((str[i]==' ')||(str...
main.c: In function 'main': main.c:33:9: error: expected declaration or statement at end of input 33 | return 0; | ^~~~~~
s058787668
p00017
C
#include<stdio.h> #include<string.h> char p[1024]; char y[1024]; int main(void){ while(gets(p)){ int x = strlen(p); int f = 0; for(int i = 0; i < 26; i++){ for(int j = 0; j < x; j++)if(p[j] >= 'a' && p[j] <='z')p[j] = (p[j]+1-'a')%26 + 'a'; if(strstr(p,"the")!= NULL)break; if(strstr(p,"that")!= NU...
main.c: In function 'main': main.c:8:15: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 8 | while(gets(p)){ | ^~~~ | fgets
s590004767
p00017
C
using System; using System.Collections.Generic; class _0017 { public static void Main() { string str; List<string> sentence = new List<string>(); str = Console.ReadLine(); while ((str = Console.ReadLine()) != null)sentence.Add(str + '\n'); for (int i = 0; i < 26; i++) ...
main.c:1:1: error: unknown type name 'using' 1 | using System; | ^~~~~ main.c:2:1: error: unknown type name 'using' 2 | using System.Collections.Generic; | ^~~~~ main.c:2:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token 2 | using System.Collections.Generic; | ...
s041925973
p00017
C
include<stdio.h> #include<string.h> main(){ char str[85]; int l,i; while(fgets(str,81,stdin)!=NULL){ l=strlen(str); while(1){ if(strstr(str,"the ")!='\0'||strstr(str,"this ")!='\0'||strstr(str,"that ")!='\0'){ break; } else { for(i=0;i<l;i++){ if(str[i]>='a'&&str[i]<='y')str[i]+=1; els...
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)); | ...
s171472023
p00017
C
#include <stdio.h> int main(void){ char words[128]; int i,j,zure,end; //while(scanf("%[^\n]",words) != EOF){// 文字列を配列に読み込む (scanf("%[^\n]",words); getchar(); zure=0,end=0; for(j=0;words[j] != '\0';j++){ for(i=1;i <= 26;i++){// 1つずつずらしていく if(words[j]+i > 'z'){// zを超えるとき if(words[j]+i-25 == 't' &&...
main.c: In function 'main': main.c:8:31: error: expected ')' before ';' token 8 | (scanf("%[^\n]",words); | ~ ^ | ) main.c:77:18: error: expected ';' before '}' token 77 | return 0; | ^ | ...
s848382711
p00017
C
#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include<stdio.h> #include<math.h> #include<string.h> #include<stdlib.h> #include<stdarg.h> #include<malloc.h> void caesar(char *); int main() { char *pstr, str[128]; pstr = str; while(gets(pstr) != NULL){ while(1){ caesar(pstr); if((strstr(pst...
main.c: In function 'main': main.c:19:15: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 19 | while(gets(pstr) != NULL){ | ^~~~ | fgets main.c:19:26: warning: comparison between pointer and integer 19 | ...
s256077339
p00017
C
#include <math.h> #define PI 3.14159265358979323 //int calc1(float a,float b,float c,float d,float e,float f,float *x,float *y); //void quick(int *,long long,long long); //int comp(char *a,char *b); int main(){ char a[100]; char b[100]; char c; int i,j,k,n; n=100; i=0; j=0; while(scanf("%c",&c)!=EOF){ if...
main.c: In function 'main': main.c:18:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 18 | while(scanf("%c",&c)!=EOF){ | ^~~~~ main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf' 1 | #include <math.h> +++ |+#include <stdio....
s609309854
p00017
C
int main(){ char c,str[81]; int i,code; while(fgets(str,81,stdin)!=EOF){ i=0; while(str[i]!='\0'){ if(str[i]==' ')i++; code=str[i]-'t'; i++; if(str[i]-code=='h'){ i++; if(str[i]-code=='e')break; if(str[i]-code=='i'&&str[i+1]-code=='s')break; if(str[i...
main.c: In function 'main': main.c:4:9: error: implicit declaration of function 'fgets' [-Wimplicit-function-declaration] 4 | while(fgets(str,81,stdin)!=EOF){ | ^~~~~ main.c:4:22: error: 'stdin' undeclared (first use in this function) 4 | while(fgets(str,81,stdin)!=EOF){ | ...
s500550390
p00017
C
void main(){ FILE *f1; char c; int c1,c2; printf("Data Input\n\n"); /*f1=fopen("input.txt","w"); while((c=getchar())!='\n') { putc(c,f1); } fclose(f1);*/ f1=fopen("input.txt","r"); while((c=getc(f1))!=EOF) { //printf("%c",c); i...
main.c: In function 'main': main.c:4:6: error: unknown type name 'FILE' 4 | FILE *f1; | ^~~~ main.c:1:1: note: 'FILE' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>' +++ |+#include <stdio.h> 1 | main.c:7:6: error: implicit declaration of function 'pri...
s077354309
p00017
C
#include <stdio.h> #include <string.h> int main() { char str[255]; int i; int l; i while(fgets(str,sizeof(str),stdin) != NULL) { l = strlen(str); while(1){ if(strstr(str,"the") != '\0' || strstr(str,"this") != '\0' || strstr(str, "that") != '\0') break; else { for(i = 0; i < l; i++) { ...
main.c: In function 'main': main.c:8:2: error: expected ';' before 'while' 8 | i | ^ | ; 9 | while(fgets(str,sizeof(str),stdin) != NULL) | ~~~~~
s874669191
p00017
C
#include<stdio.h> #include<string.h> int search(char []); int main(void){ int i,j,flag; char string[90]; while(1){ for(i = 0 ;; i ++){ string[i] = getchar(); if(string[i] == 'EOF'){ return 0; } if(string[i] == '.'){ string[i + 1] = '\0'; break; } } for(i = 0 ; i < 25; i ++){ ...
main.c: In function 'main': main.c:12:49: warning: multi-character character constant [-Wmultichar] 12 | if(string[i] == 'EOF'){ | ^~~~~ main.c:46:1: error: expected declaration or statement at end of input 46 | } | ^
s593910091
p00017
C++
#include <iostream> #include <cstdio> #include <cstdlib> #include <string> using namespace std; int main(){ char input[81],str[50][81]; int pos=0,last_pos=0,i,j,diff; const char cmp[3][5]={"that","this","the"}; bool is_found=false; scanf("%[^\n]",input); for(i=0;input[i]!='\0';i++){ if(input[i]==' ' || input...
a.cc: In function 'int main()': a.cc:32:28: error: 'strcmp' was not declared in this scope 32 | if(strcmp(str[i],cmp[j])){ | ^~~~~~ a.cc:4:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 3 | #incl...
s200248274
p00017
C++
xlmw mw xli tmgxyvi xlex m xsso mr xli xvmt.
a.cc:1:1: error: 'xlmw' does not name a type 1 | xlmw mw xli tmgxyvi xlex m xsso mr xli xvmt. | ^~~~
s299083121
p00017
C++
#include <cctype> #include <cstdio> #include <cstring> using namespace std; bool includes_keyword(const char *str) { const static char *keywords[] = { "the", "this", "that" }; for (const auto keyword : keywords) { char *pos = strstr(str, keyword); if (pos == NULL) { continue; } if (pos != str && isalp...
a.cc: In function 'bool includes_keyword(const char*)': a.cc:10:23: error: invalid conversion from 'const char*' to 'char*' [-fpermissive] 10 | char *pos = strstr(str, keyword); | ~~~~~~^~~~~~~~~~~~~~ | | | const char*
s369940536
p00017
C++
#include <bits/stdc++.h> using namespace std; int main() { string str; while (getline(cin, str)) { for (int i = 0; i < 26; ++i) { for (int j = 0; j < (int)str.size(); ++j) { if (str[j] >= 'a' && str[j] <= 'z') { str[j] = (str[j] - 'a' + 1) % 26 + 'a'; } } if (str.find("the") != string::npos ...
a.cc: In function 'int main()': a.cc:17:23: error: 'solv' was not declared in this scope 17 | str = solv(str); | ^~~~
s716808832
p00017
C++
module main; import std.stdio; import std.string; void main() { string s; while((s = chomp(readln())).length) { char s2[] = new char[s.length]; for(auto i = 0; i < 26; i++) { for(auto j = 0; j < s.length; j++) { s2[j] = s[j]; if(!(s[j] == ' ' || s[j] == '\n' || s[j] == '.'...
a.cc:1:1: error: 'module' does not name a type 1 | module main; | ^~~~~~ a.cc:1:1: note: C++20 'module' only available with '-fmodules-ts' a.cc:2:1: error: 'import' does not name a type 2 | import std.stdio; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: error: ...
s963578061
p00017
C++
require("fs").readFileSync("/dev/stdin","utf8").split('\n').map(function(i){for(s=26;s--;)r=i.replace(/[a-z]/g,function(j){return j.fromCharCode((j.charCodeAt(0)-97+s)%26+97)}),r.match(/th(e|is|at)/)?console.log(r):0})
a.cc:1:8: error: expected constructor, destructor, or type conversion before '(' token 1 | require("fs").readFileSync("/dev/stdin","utf8").split('\n').map(function(i){for(s=26;s--;)r=i.replace(/[a-z]/g,function(j){return j.fromCharCode((j.charCodeAt(0)-97+s)%26+97)}),r.match(/th(e|is|at)/)?console.log(r):0}) ...
s645857596
p00017
C++
require("fs").readFileSync("/dev/stdin","utf8").split('\n').map(function(i){for(s=26;s--;)r=i.replace(/[a-z]/g,function(j){return String.fromCharCode((j.charCodeAt(0)-97+s)%26+97)}),r.match(/th(e|is|at)/)?console.log(r):0})
a.cc:1:8: error: expected constructor, destructor, or type conversion before '(' token 1 | require("fs").readFileSync("/dev/stdin","utf8").split('\n').map(function(i){for(s=26;s--;)r=i.replace(/[a-z]/g,function(j){return String.fromCharCode((j.charCodeAt(0)-97+s)%26+97)}),r.match(/th(e|is|at)/)?console.log(r):0}) ...
s430707464
p00017
C++
string s
a.cc:1:2: error: 'string' does not name a type 1 | string s | ^~~~~~
s379225890
p00017
C++
import java.io.*; import java.util.regex.Pattern; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); Pattern pattern=Pattern.compile("the|this|that"); String str; try{ whil...
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.*; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:2:1: error: 'import' does not name a type 2 | import java.util.regex.Pattern; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts...
s278588176
p00017
C++
#include<iostream> using namespace std; int main() { char key[80] = ""; cin.getline(key, sizeof(key); for (int i = 0; i < sizeof(key); i++) { //if (key[i] == (int)" ")cout << "space"; if ((int)key[i] == 0)break; if ((int)key[i] <= 122 && (int)key[i] >= 97) key[i] = (int)key[i] - 1; if (key[i] =...
a.cc: In function 'int main()': a.cc:7:37: error: expected ')' before ';' token 7 | cin.getline(key, sizeof(key); | ~ ^ | )
s071960687
p00017
C++
#include<iostream> #include<string.h> #include<stdio.h> int main(){ char s[100]; while (gets(s)){ int diff; int flag = false; //一番最初に{the,that,this}がある場合 diff = s[0] - 't'; if ((s[1] - diff) == 'h'){ //printf("%c\n", s[j+1] - diff); if ((s[2] - diff) == 'e'){ //printf("%c\n", s[j + 2] - diff)...
a.cc: In function 'int main()': a.cc:8:16: error: 'gets' was not declared in this scope; did you mean 'getw'? 8 | while (gets(s)){ | ^~~~ | getw a.cc:89:18: error: expected '}' at end of input 89 | return 0; | ^ a.cc:5:11: note: to ...
s370908893
p00017
C++
#include<iostream> using namespace std; int main(){ char a; while(cin>>a){ if(a==' '||a=='.'||a=='\n')cout<<a; else for(int i=0;i<26;i++){ if((char)(a+i)=="that"||(char)(a+i)=="this"||(char)(a+i)=="the") { cout<<(char)(a+i); break; } i++; } cout<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:9:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if((char)(a+i)=="that"||(char)(a+i)=="this"||(char)(a+i)=="the") { | ~~~~~~~~~~~^~~~~~~~ a.cc:9:45: error: ISO C++ forbids comparison between pointer and integer [-f...
s866884733
p00017
C++
#include <bits/stdc++.h> using namespace std; void f(string &s) { for (char &c : s) { if ('a' <= c && c <= 'z') c = (c - 'a' + 25) % 26 + 'a'; } } int main() { string s; while (getline(cin, s)) { if (!s) break; while (s.find("the") == string::npos || s.find("this") == string:...
a.cc: In function 'int main()': a.cc:17:13: error: no match for 'operator!' (operand type is 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 17 | if (!s) break; | ^~ a.cc:17:13: note: candidate: 'operator!(bool)' (built-in) a.cc:17:13: note: no known conversion for argument 1 from...
s950858186
p00017
C++
#define scanf_s scanf #define gets_s gets #include <stdio.h> #include <string> #include <iostream> #include <math.h> using namespace std; #define MAX 81 #define _MAX 100 #define ABC 26 int main(void) { int n, s = 0, x, y, r = 0, a, b; int sum_n[50][3] = { 0 }; char sum[50][_MAX], str[_MAX], bstr[_MAX], num[11] = { "...
a.cc: In function 'int main()': a.cc:2:16: error: 'gets' was not declared in this scope; did you mean 'getw'? 2 | #define gets_s gets | ^~~~ a.cc:17:15: note: in expansion of macro 'gets_s' 17 | while(gets_s(str) != EOF){ | ^~~~~~
s297172002
p00017
C++
#define scanf_s scanf #define gets_s gets #include <stdio.h> #include <string> #include <iostream> #include <math.h> using namespace std; #define MAX 81 #define _MAX 100 #define ABC 26 int main(void) { int n, s = 0, x, y, r = 0, d; char str[MAX]; while (gets_s(str, _MAX) != NULL) { for (int i = 0; str[i] != '\0'; ...
a.cc: In function 'int main()': a.cc:2:16: error: 'gets' was not declared in this scope; did you mean 'getw'? 2 | #define gets_s gets | ^~~~ a.cc:15:16: note: in expansion of macro 'gets_s' 15 | while (gets_s(str, _MAX) != NULL) { | ^~~~~~
s258522558
p00017
C++
#define scanf_s scanf #define gets_s gets #include <stdio.h> #include <string> #include <iostream> #include <math.h> using namespace std; #define MAX 81 #define _MAX 100 #define ABC 26 int main(void) { int n, s = 0, x, y, r = 0, d; char str[MAX]; while (gets_s(str) != NULL) { for (int i = 0; str[i] != '\0'; ++i) {...
a.cc: In function 'int main()': a.cc:2:16: error: 'gets' was not declared in this scope; did you mean 'getw'? 2 | #define gets_s gets | ^~~~ a.cc:15:16: note: in expansion of macro 'gets_s' 15 | while (gets_s(str) != NULL) { | ^~~~~~ a.cc:29:36: error: 'i' was no...
s973789638
p00017
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ stirng s; while(getiline(cin,s)){ while(s.find("the") == string::npos && s.find("this") == string::npos && s.find("that") == string::npos){ for(int i = 0; i < s.size(): i++){ if(s[i] == 'z') s[i] = 'a...
a.cc: In function 'int main()': a.cc:7:9: error: 'stirng' was not declared in this scope 7 | stirng s; | ^~~~~~ a.cc:8:28: error: 's' was not declared in this scope 8 | while(getiline(cin,s)){ | ^ a.cc:8:15: error: 'getiline' was not declared in thi...
s613247298
p00017
C++
#include <iostream> #include <string> using namespace std; int main(){ stirng s; while(getline(cin,s)){ while(s.find("the") == string::npos && s.find("this") == string::npos && s.find("that") == string::npos){ for(int i = 0; i < s.size(): i++){ if(s[i] == 'z') s[i] = 'a'; else if(s[...
a.cc: In function 'int main()': a.cc:6:9: error: 'stirng' was not declared in this scope 6 | stirng s; | ^~~~~~ a.cc:7:27: error: 's' was not declared in this scope 7 | while(getline(cin,s)){ | ^ a.cc:11:56: warning: range-based 'for' loops with init...
s460736481
p00017
C++
#include <iostream> #include <string> using namespace std; int main() { string s; while (getline(cin, s)) { while (s.find("the" == s.npos && s.find("this") == s.npos && s.find("that") == s.npos) ) { for (int i = 0; i < s.size(); i++) { ...
a.cc: In function 'int main()': a.cc:11:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 11 | while (s.find("the" == s.npos &&
s117949220
p00017
C++
#include <iostream> #include <cstdio> #include <cstring> using namespace std; void caesar(char* a) { for (int i=0; i<strlen(buf); i++) { if (c==' ' || c== '.') continue; else if (c=='z') buf[i] = 'a'; else buf[i]++; } } int main() { char buf[81]; for (int k=0; k<20; k++) { fgets(buf, 80, stdin); int ...
a.cc: In function 'void caesar(char*)': a.cc:9:32: error: 'buf' was not declared in this scope 9 | for (int i=0; i<strlen(buf); i++) { | ^~~ a.cc:10:21: error: 'c' was not declared in this scope 10 | if (c==' ' || c== '.') continue; | ...
s341413830
p00017
C++
#include <bits/stdc++.h> using namespace std; int main() { char line[100]; int dist,a,b,h,e,i,s,t,aa; while(gets(line)){ int l=strlen(line); //printf("length %d\n",l); char *token; token=strtok(line," "); while(token!=NULL) {//cout<<token<<" "; int tl=st...
a.cc: In function 'int main()': a.cc:9:11: error: 'gets' was not declared in this scope; did you mean 'getw'? 9 | while(gets(line)){ | ^~~~ | getw
s025888594
p00017
C++
#include<bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define pi acos(-1) #define MIN(a,b) (a < b ? a : b) #define MAX(a,b) (a > b ? a : b) int main() { char s[100],ch; int len,i,j,x,y,z,shift,m,c,shift1,shift2,shift3,shift4,shift5,shift6; while(gets(s)){ len=strlen(s); ...
a.cc: In function 'int main()': a.cc:12:15: error: 'gets' was not declared in this scope; did you mean 'getw'? 12 | while(gets(s)){ | ^~~~ | getw
s107733938
p00017
C++
#include<iostream> #include<stdio.h> #include<string> #include<math.h> #include<iomanip> #include<algorithm> #include<string.h> #include<cctype> #include<map> #include<set> #include<vector> #include<sstream> #include<stack> using namespace std; int main() { string a,b; while(cin>>a) { ...
a.cc: In function 'int main()': a.cc:30:32: error: expected ';' before '}' token 30 | else b+=(a[i]+shift) | ^ | ; 31 | } | ~ a.cc:34:18: error: 'the' was not declared in this scope ...
s471497305
p00017
C++
#include <iostream> #include <stdio.h> #include <string.h> #include <string> #include <algorithm> #include <vector> void q17() { vector<string> hints; hints.push_back("the"); hints.push_back("this"); hints.push_back("that"); vector< vector<string> > shiftHints; for (int i = 0; i < 26; i++) { vector<string> iS...
a.cc: In function 'void q17()': a.cc:9:9: error: 'vector' was not declared in this scope 9 | vector<string> hints; | ^~~~~~ a.cc:9:9: note: suggested alternatives: In file included from /usr/include/c++/14/vector:66, from a.cc:6: /usr/include/c++/14/bits/stl_vector.h:428:11: n...
s398129681
p00017
C++
#include <iostream> #include <stdio.h> #include <string.h> #include <string> #include <algorithm> #include <vector> usinga namespace std; void q17() { vector<string> hints; hints.push_back("the"); hints.push_back("this"); hints.push_back("that"); vector< vector<string> > shiftHints; for (int i = 0; i < 26; i++...
a.cc:8:1: error: 'usinga' does not name a type 8 | usinga namespace std; | ^~~~~~ a.cc: In function 'void q17()': a.cc:11:9: error: 'vector' was not declared in this scope 11 | vector<string> hints; | ^~~~~~ a.cc:11:9: note: suggested alternatives: In file included from /usr/include/c...
s335697730
p00017
C++
#include <bits/stdc++.h> 2.using namespace std; 3.//???????????????????????????????????? 4.void Check(const string& str){ 5. string strparent=str; 6. int gap=1; 7. while(strparent.find("the")==(string::npos)&& 8. strparent.find("this")==(string::npos)&& 9. strparent.find("that")==(string::npos)...
a.cc:3:1: error: expected unqualified-id before numeric constant 3 | 2.using namespace std; | ^~~~~~~ a.cc:5:1: error: expected unqualified-id before numeric constant 5 | 3.//???????????????????????????????????? | ^~ a.cc:37:1: error: expected unqualified-id before numeric constant 37 | 19. ...
s095295561
p00017
C++
#include <bits/stdc++.h> using namespace std; #define FOR(i, j, k) for(int i = j; i < k; ++i) #define rep(i, j) FOR(i, 0, j) #define repr(i, j) for(int i = j; i >= 0; --i) #define INF (1 << 30) #define MOD 1e9 + 7 typedef long long ll; typedef unsigned long long ull; typedef pair<int, int> P; int main() { s...
a.cc: In function 'int main()': a.cc:20:41: error: 'nops' is not a member of 'std::string' {aka 'std::__cxx11::basic_string<char>'} 20 | while(s.find("this") == string::nops && s.find("that") == string::nops && s.find("the") == string::nops) { | ^~~~ a.cc:20:75: ...
s542182501
p00017
C++
#include <cassert> #include <iostream> #include <string> bool IsValid(const std::string& Text) { return Text.find("the") != std::string::npos || Text.find("this") != std::string::npos || Text.find("that") != std::string::npos; } std::string RotateChar(const std::string& Code, int Key) { ...
a.cc: In function 'std::string Decrypt(const std::string&)': a.cc:35:6: error: expected '}' at end of input 35 | } | ^ a.cc:29:1: note: to match this '{' 29 | { | ^ a.cc:35:6: warning: control reaches end of non-void function [-Wreturn-type] 35 | } | ^
s679019264
p00017
C++
#include <cassert> #include <iostream> #include <string> bool IsValid(const std::string& Text) { return Text.find("the") != std::string::npos || Text.find("this") != std::string::npos || Text.find("that") != std::string::npos; } std::string RotateChar(const std::string& Code, int Key) { ...
a.cc: In function 'std::string Decrypt(const std::string&)': a.cc:35:6: error: expected '}' at end of input 35 | } | ^ a.cc:29:1: note: to match this '{' 29 | { | ^ a.cc:35:6: warning: control reaches end of non-void function [-Wreturn-type] 35 | } | ^
s899769718
p00017
C++
#include<bits/stdc++.h> using namespace std; int main(){ string str[80]; vector<int> num; while(cin>>str[i]){ if(str[i].size()==4||str[i].size()==3) num.push_back((str[i].size()*100)+i); } int flag=0,zure=0; for(int i=0;i<num.size();i++){ if(num[i]/100==3){ for(int j=0;j<3;j++){ for(int...
a.cc: In function 'int main()': a.cc:6:18: error: 'i' was not declared in this scope 6 | while(cin>>str[i]){ | ^
s443131186
p00017
C++
//Vol0 0017 #include<stdio.h> #include<string.h> #include<ctype.h> int main() { char s[128]; int i,j,k; int c; while((gets(s))!=NULL){ c=1; for(i=0;i<26;i++){ for(j=0;j<strlen(s);j++){ if(isalpha(s[j])){ if(s[j]=='z'){ s[j]='a'; }else{ s[j]++; } } } for(k=0;k<strlen(s...
a.cc: In function 'int main()': a.cc:10:16: error: 'gets' was not declared in this scope; did you mean 'getw'? 10 | while((gets(s))!=NULL){ | ^~~~ | getw
s043645557
p00017
C++
#include <stdio.h> #include <math.h> #include <string.h> #define JUDGE(x) (strstr(change,x)) int main(){ int i,j; char str[100],change[100]; while (gets(str) != NULL) { for (i=0; i<26; i++) { for (j=0; j<strlen(str); j++) { if(str[j]>='a' && str[j]<='z') ...
a.cc: In function 'int main()': a.cc:12:12: error: 'gets' was not declared in this scope; did you mean 'getw'? 12 | while (gets(str) != NULL) { | ^~~~ | getw
s237242278
p00017
C++
#include <cstdio> #include <string> using namespace std; char str[128] = { 0 }; inline char nxt(char c) { if (c == 'z') { c = 'a'; } else if (c >= 'a' && c < 'z') { c++; } return c; } bool find() { int p = 0; while (str[p] != '\0') { if (str[p] == 't' && str[p + 1] == 'h') { if (str[p + 2] == 'e') { ...
a.cc: In function 'int main()': a.cc:38:21: error: 'strlen' was not declared in this scope 38 | str[strlen(str) - 1] = '\0'; | ^~~~~~ a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>' 2 | #include <string> ...
s984484497
p00017
C++
import java.io.*; public class main{ public static void main(String[] args) throws IOException{ try{ InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String str; String target[]; int checkResult = 99; int ca...
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.*; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class main{ | ^~~~~~
s681401172
p00017
C++
import java.io.*; public class Main{ public static void main(String[] args) throws IOException{ try{ InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String str; String target[]; int checkResult = 99; int ca...
a.cc:1:1: error: 'import' does not name a type 1 | import java.io.*; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Main{ | ^~~~~~
s469059659
p00017
C++
import Control.Applicative import Data.Char (readLitChar) import Data.List import System.IO main = do eof <- isEOF if eof then return () else do dataset <- getLine mapM_ putStrLn $ decodeCaesar (escape dataset) main shiftChar :: Int -> Char -> Char shiftChar n c | ...
a.cc:19:33: error: stray '`' in program 19 | | otherwise = toEnum.(+97).(`mod` 26).(+ n).(subtract 97).fromEnum $ c | ^ a.cc:19:37: error: stray '`' in program 19 | | otherwise = toEnum.(+97).(`mod` 26).(+ n).(subtract 97).fromEnum $ c | ...
s025849205
p00017
C++
a='abcdefghijklmnopqrstuvwxy' b=input() for i in range(26): c=''.join(a[ord(e)-97-i]if e in a else e for e in b) if any(('the 'in c,'this 'in c,'that 'in c)):print(c);break
a.cc:1:3: warning: multi-character literal with 25 characters exceeds 'int' size of 4 bytes 1 | a='abcdefghijklmnopqrstuvwxy' | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ a.cc:4:4: error: empty character constant 4 | c=''.join(a[ord(e)-97-i]if e in a else e for e in b) | ^~ a.cc:5:10: warning: multi-characte...
s387874209
p00017
C++
import java.util.*; import static java.lang.System.*; import java.math.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { String s = sc.nextLine(); for (int i=0; i<26; i++) { StringBuilder sb = new StringBuilder(); char c; for (int j=0; j<s...
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.*; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:2:1: error: 'import' does not name a type 2 | import static java.lang.System.*; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmodule...
s289695066
p00017
C++
#include <iostream> #include <cstdio> using namespace std; int main() { // char c = 'x'; // char d = '|'; // char e = 'm'; // // printf("%d %d %d\n", c, d, e); // // c = 't'; // d = 'h'; // e = 'i'; // // printf("%d %d %d\n", c, d, e); char s[80 + 7]; char ans[80 + 7]; while(...
a.cc: In function 'int main()': a.cc:23:11: error: 'gets' was not declared in this scope; did you mean 'getw'? 23 | while(gets(s)) | ^~~~ | getw
s733030437
p00017
C++
#include <stdio.h> #include<string.h> int main() { char a[200]; int i,b,x,l,c,in; while(gets(a)!=EOF) { l=strlen(a); b=(int)a[0]; x=116-b; for(i=0;i<l;i++) { if(a[i]>=97&&a[i]<=122) { in=(int)a[i]; a[i]=in...
a.cc: In function 'int main()': a.cc:8:11: error: 'gets' was not declared in this scope; did you mean 'getw'? 8 | while(gets(a)!=EOF) | ^~~~ | getw
s826777708
p00017
C++
#include<stdio.h> #include<string.h> #include<math.h> #include<iostream> #include<algorithm> #include<set> #include<queue> #include<string> #include<vector> #include<map> #include<stack> #include<list> using namespace std; #define inf 0x3f3f3f3f char d[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','...
a.cc: In function 'int main()': a.cc:22:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 22 | gets(s); | ^~~~ | getw
s075313299
p00017
C++
#include<stdio.h> #include<string> #include<stdlib.h> int main() { int i,l; char ch[90]; while(1){ getline(cin,ch); l=strlen(ch); for(i=0;i<l;i++){ if(ch[i]>='a'&&ch[i]<='z'){ if(ch[i]=='a'||ch[i]=='b'||ch[i]=='c'||ch[i]=='d'){ if(ch[i]=='a'){ ch[i]='w'; } else if(ch[i]=='b'){ ch[i]='x'; } else if(ch[i]=='c'){ ch[i]...
a.cc: In function 'int main()': a.cc:9:9: error: 'cin' was not declared in this scope 9 | getline(cin,ch); | ^~~ a.cc:10:3: error: 'strlen' was not declared in this scope 10 | l=strlen(ch); | ^~~~~~ a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by addin...
s605480526
p00017
C++
#include<stdio.h> #include<string.h> void Roll(char ch[], int times) { int cnt = 0; while (ch[cnt] != 0) { if (96 < ch[cnt] && 123 > ch[cnt]) ch[cnt] = (ch[cnt] - 97 + times) % 26 + 97; cnt++; } } int main() { char inp[100]; char buff[80]; int pos = 0, bpos = 0; while (1) { if (gets_s(inp, 100) == N...
a.cc: In function 'int main()': a.cc:20:21: error: 'gets_s' was not declared in this scope 20 | if (gets_s(inp, 100) == NULL)break; | ^~~~~~
s519079196
p00017
C++
#include<stdio.h> #include<string.h> int main(){ char s[85]; int i; memset(s,'0',sizeof(s)); while(gets(s)){ while(1){ for(i=0;i<81;i++){ switch(s[i]){ case '.': case ' ': case '0': case '\0': case 10: case 13: continue; } s[i]='a'+(s[i]-'a'+1)%26; } if((NULL!=s...
a.cc: In function 'int main()': a.cc:8:15: error: 'gets' was not declared in this scope; did you mean 'getw'? 8 | while(gets(s)){ | ^~~~ | getw
s765777898
p00017
C++
#include <iostream> #include <cstring> using namespace std; int main(int argc, char **argv) { char a[82], t; int n, p; while(gets(a)!=NULL){ n = strlen(a); for(int i = 0; i < n; i++){ p = (int)(a[i++]-'t'); if(a[i] == ' '){ continue; } t = a[i++]-p; if(t < 'a'){ t += 25; } else if(t...
a.cc: In function 'int main(int, char**)': a.cc:11:15: error: 'gets' was not declared in this scope; did you mean 'getw'? 11 | while(gets(a)!=NULL){ | ^~~~ | getw
s056494399
p00017
C++
#include <iostream> #include <cstring> #include <string> #include <cstdlib> using namespace std; int main(int argc, char **argv) { char a[82], t; int n, p; while(gets(a)!=NULL){ n = strlen(a); for(int i = 0; i < n; i++){ p = (int)(a[i++]-'t'); if(a[i] == ' '){ continue; } t = a[i++]-p; if(...
a.cc: In function 'int main(int, char**)': a.cc:13:15: error: 'gets' was not declared in this scope; did you mean 'getw'? 13 | while(gets(a)!=NULL){ | ^~~~ | getw
s937520879
p00017
C++
#include <iostream> #include <cstring> #include <istream> using namespace std; int main(int argc, char **argv) { char a[82], t; int n, p; while(gets(a)!=NULL){ n = strlen(a); for(int i = 0; i < n; i++){ p = (int)(a[i++]-'t'); if(a[i] == ' '){ continue; } t = a[i++]-p; if(t < 'a'){ t +=...
a.cc: In function 'int main(int, char**)': a.cc:12:15: error: 'gets' was not declared in this scope; did you mean 'getw'? 12 | while(gets(a)!=NULL){ | ^~~~ | getw
s301283803
p00017
C++
#include <iostream> #include <cstring> #include <cstdio> using namespace std; int main(int argc, char **argv) { char a[82], t; int n, p; while(gets(a)!=NULL){ n = strlen(a); for(int i = 0; i < n; i++){ p = (int)(a[i++]-'t'); if(a[i] == ' '){ continue; } t = a[i++]-p; if(t < 'a'){ t += ...
a.cc: In function 'int main(int, char**)': a.cc:12:15: error: 'gets' was not declared in this scope; did you mean 'getw'? 12 | while(gets(a)!=NULL){ | ^~~~ | getw
s805398192
p00017
C++
#include<iostream> #include<string> int main(){std::string s;while(std::getline(std::cin,s)){char b[81],*p,*c;c=b;strcpy(b,s.c_str());int gap=0;do{p=strtok(c," .\n");if(p!=NULL){int l=strlen(p);if(l>=3&&p[0]-p[1]=='t'-'h'){if(l==3){if(p[0]-p[2]=='t'-'e'){gap='t'-p[0];break;}}else if(l==4){if(p[0]-p[2]=='t'-'i'&&p[0]-p[...
a.cc: In function 'int main()': a.cc:3:79: error: 'strcpy' was not declared in this scope 3 | int main(){std::string s;while(std::getline(std::cin,s)){char b[81],*p,*c;c=b;strcpy(b,s.c_str());int gap=0;do{p=strtok(c," .\n");if(p!=NULL){int l=strlen(p);if(l>=3&&p[0]-p[1]=='t'-'h'){if(l==3){if(p[0]-p[2]=='t'-'e'){gap...
s029639724
p00017
C++
#include<iostream> #include<string> #include<cmath> int main(){std::string s;while(std::getline(std::cin,s)){char b[81],*p,*c;c=b;strcpy(b,s.c_str());int gap=0;do{p=strtok(c," .\n");if(p!=NULL){int l=strlen(p);if(l>=3&&p[0]-p[1]=='t'-'h'){if(l==3){if(p[0]-p[2]=='t'-'e'){gap='t'-p[0];break;}}else if(l==4){if(p[0]-p[2]==...
a.cc: In function 'int main()': a.cc:4:79: error: 'strcpy' was not declared in this scope 4 | int main(){std::string s;while(std::getline(std::cin,s)){char b[81],*p,*c;c=b;strcpy(b,s.c_str());int gap=0;do{p=strtok(c," .\n");if(p!=NULL){int l=strlen(p);if(l>=3&&p[0]-p[1]=='t'-'h'){if(l==3){if(p[0]-p[2]=='t'-'e'){gap...
s250722471
p00017
C++
#include<iostream> #include<string> #include<cstdio> int main(){std::string s;while(std::getline(std::cin,s)){char b[81],*p,*c;c=b;strcpy(b,s.c_str());int gap=0;do{p=strtok(c," .\n");if(p!=NULL){int l=strlen(p);if(l>=3&&p[0]-p[1]=='t'-'h'){if(l==3){if(p[0]-p[2]=='t'-'e'){gap='t'-p[0];break;}}else if(l==4){if(p[0]-p[2]=...
a.cc: In function 'int main()': a.cc:4:79: error: 'strcpy' was not declared in this scope 4 | int main(){std::string s;while(std::getline(std::cin,s)){char b[81],*p,*c;c=b;strcpy(b,s.c_str());int gap=0;do{p=strtok(c," .\n");if(p!=NULL){int l=strlen(p);if(l>=3&&p[0]-p[1]=='t'-'h'){if(l==3){if(p[0]-p[2]=='t'-'e'){gap...
s509965279
p00017
C++
#include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<cassert> #include<iostream> #include<sstream> #include<string> #include<vector> #include<queue> #include<set> #include<map> #include<utility> #include<numeric> #include<algorithm> #include<bitset> #include<complex> using namespace std; type...
a.cc: In function 'int main()': a.cc:34:14: error: 'gets' was not declared in this scope; did you mean 'getw'? 34 | for(;gets(chr);){ | ^~~~ | getw
s803695492
p00017
C++
#include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<cassert> #include<iostream> #include<sstream> #include<string> #include<vector> #include<queue> #include<set> #include<map> #include<utility> #include<numeric> #include<algorithm> #include<bitset> #include<complex> using namespace std; type...
a.cc: In function 'int main()': a.cc:34:14: error: 'gets' was not declared in this scope; did you mean 'getw'? 34 | for(;gets(chr);){ | ^~~~ | getw
s584856797
p00017
C++
#include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<cassert> #include<iostream> #include<sstream> #include<string> #include<vector> #include<queue> #include<set> #include<map> #include<utility> #include<numeric> #include<algorithm> #include<bitset> #include<complex> using namespace std; type...
a.cc: In function 'int main()': a.cc:34:14: error: 'gets' was not declared in this scope; did you mean 'getw'? 34 | for(;gets(chr);){ | ^~~~ | getw a.cc: At global scope: a.cc:52:9: error: expected unqualified-id before 'return' 52 | return 0; | ...
s157264146
p00017
C++
#include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<cassert> #include<iostream> #include<sstream> #include<string> #include<vector> #include<queue> #include<set> #include<map> #include<utility> #include<numeric> #include<algorithm> #include<bitset> #include<complex> using namespace std; type...
a.cc: In function 'int main()': a.cc:34:14: error: 'gets' was not declared in this scope; did you mean 'getw'? 34 | for(;gets(chr);){ | ^~~~ | getw
s049459085
p00017
C++
#include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<cassert> #include<iostream> #include<sstream> #include<string> #include<vector> #include<queue> #include<set> #include<map> #include<utility> #include<numeric> #include<algorithm> #include<bitset> #include<complex> using namespace std; type...
a.cc: In function 'int main()': a.cc:33:31: error: 'eofbit' was not declared in this scope 33 | for(;getline(cin,str)&eofbit;){ | ^~~~~~
s007687804
p00017
C++
#include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<cassert> #include<iostream> #include<sstream> #include<string> #include<vector> #include<queue> #include<set> #include<map> #include<utility> #include<numeric> #include<algorithm> #include<bitset> #include<complex> using namespace std; type...
a.cc: In function 'int main()': a.cc:33:31: error: 'eofbit' was not declared in this scope 33 | for(;getline(cin,str)&eofbit;){ | ^~~~~~
s731426579
p00017
C++
#include <cstdio> #include <cstring> #include <algorithm> #include <string> #include <cmath> #include <stack> #include <vector> int main() { char s[81]; while (gets(s) != NULL) { for (int i = 0; i < 26; ++i) { char decoded[81]; for (int j = 0; s[j] != '\0'; ++j) decoded[j] = islower(s[j]) ? 'a'+(s[j]...
a.cc: In function 'int main()': a.cc:13:16: error: 'gets' was not declared in this scope; did you mean 'getw'? 13 | while (gets(s) != NULL) | ^~~~ | getw
s109174208
p00017
C++
// AOJClearQuestion.cpp : ƒƒCƒ“ ƒvƒƒWƒFƒNƒg ƒtƒ@ƒCƒ‹‚Å‚·B #include "stdafx.h" #include <iostream> #include <string> #include <algorithm> #include <map> using namespace std; int main(){ string s,d; while(getline(cin,s)){ for(int j=0;j<26;j++){ for(int i=0;i<s.size();i++){ if(s[i]>='a'&&s[i]<='z'){ s...
a.cc:3:10: fatal error: stdafx.h: No such file or directory 3 | #include "stdafx.h" | ^~~~~~~~~~ compilation terminated.