submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s348999468
p00019
C++
#include <iostream> #include <cstdlib> #include <windows.h> using namespace std; int main() { long long n; do { cin >> n; }while(n>20); long long x; long long sum=1; for(x=1; x<=n; x++) { sum = sum*x; } cout<< sum << endl; return 0; }
a.cc:3:10: fatal error: windows.h: No such file or directory 3 | #include <windows.h> | ^~~~~~~~~~~ compilation terminated.
s180009296
p00019
C++
#include <iostream.h> #include <conio.h> using namespace std; int main() { int n=0, fact=1; cout<<"Enter a number:"; cin>>n; for(int i=n; i>=1; i--) fact*=i; cout<<"Factorial for the number is: "<<fact<<endl; getchar(); system("pause"); return 0; }
a.cc:1:10: fatal error: iostream.h: No such file or directory 1 | #include <iostream.h> | ^~~~~~~~~~~~ compilation terminated.
s577449744
p00019
C++
#include<stdio.h> #include<string.h> int main() { int n; int f[50]; int i, j, s, c; while (scanf ("%d", &n)??EOF) { memset(f,0,sizeof(f)); f[0]=1; for (i=2; i<=n; i++) { c=0; for (j=0; j<50; j++) { s=f[j]*i+c; ...
a.cc: In function 'int main()': a.cc:8:29: error: expected primary-expression before '?' token 8 | while (scanf ("%d", &n)??EOF) | ^ a.cc:8:33: error: expected ':' before ')' token 8 | while (scanf ("%d", &n)??EOF) | ^ a.cc:8:33: er...
s999179296
p00019
C++
#include<iostream> using namespace std; int Main() { int counter, n, fact = 1; cin>>n; for (int counter = n; counter >= 1; counter--) { fact = fact * counter; } cout<<fact; }
a.cc: In function 'int Main()': a.cc:17:2: warning: no return statement in function returning non-void [-Wreturn-type] 17 | } | ^ /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 e...
s868075677
p00019
C++
#include <iostream> using namespace std; int fact(int number) { long r=0; for(int i=number; i>=1; i--) { r = r*i; } return r; } int Main() { int num=0; long result =0; cin >> num; result = fact(num); cout<<result; }
a.cc: In function 'int Main()': a.cc:25:1: warning: no return statement in function returning non-void [-Wreturn-type] 25 | } | ^ /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exi...
s180638169
p00020
Java
import java.util.*; public Main{ public static viod main(String[] args){ Scanner sc=new Scanner(System.in); System.out.println(sc.nextLine().toUpperCase()); } }
Main.java:3: error: class, interface, enum, or record expected public Main{ ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. public static viod main(String[] args){ ^ (use --enable-preview to enable unnamed classes) Main.java:8: error: class, interface, enu...
s912399133
p00020
Java
import java.util.*; public Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); System.out.println(sc.nextLine().toUpperCase()); } }
Main.java:3: error: class, interface, enum, or record expected public Main{ ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args){ ^ (use --enable-preview to enable unnamed classes) Main.java:8: error: class, interface, enu...
s683251621
p00020
Java
puts gets.upcase
Main.java:1: error: class, interface, enum, or record expected puts gets.upcase ^ 1 error
s476050962
p00020
Java
import java.util.Scanner; public class O { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); String upper_a = a.toUpperCase(); System.out.println(upper_a); } }
Main.java:2: error: class O is public, should be declared in a file named O.java public class O { ^ 1 error
s986520299
p00020
Java
public class StringToUpperCaseEmp { public static void main(String[] args) { String str = "string abc to uppercase "; String strUpper = str.toUpperCase(); System.out.println("Original String: " + str); System.out.println("String changed to upper case: " + strUpper); } }
Main.java:1: error: class StringToUpperCaseEmp is public, should be declared in a file named StringToUpperCaseEmp.java public class StringToUpperCaseEmp { ^ 1 error
s127090341
p00020
Java
#!/usr/bin/ruby # -*- coding: utf-8 -*- =begin Volume0-0020 =end str = STDIN.gets.chomp puts str.tr("a-z","A-Z")
Main.java:1: error: illegal character: '#' #!/usr/bin/ruby ^ Main.java:1: error: class, interface, enum, or record expected #!/usr/bin/ruby ^ Main.java:2: error: illegal character: '#' # -*- coding: utf-8 -*- ^ 3 errors
s283047481
p00020
Java
public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ String line = scan.nextInt(); StringBuffer sb = new StringBuffer(); for(int i = 0; i < line.length(); i++){ char ch = line.charAt(i); if(Character.isLowerCase(ch)){ ch = Character...
Main.java:2: error: cannot find symbol private static final Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:2: error: cannot find symbol private static final Scanner scan = new Scanner(System.in); ^ sy...
s827604939
p00020
Java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ String line = scan.nextInt(); StringBuffer sb = new StringBuffer(); for(int i = 0; i < line.length(); i++){ char ch = line.charAt(i); if(Character.isLowerCase(ch)...
Main.java:8: error: incompatible types: int cannot be converted to String String line = scan.nextInt(); ^ 1 error
s081308819
p00020
Java
public class Capitalize { public static void main(String[] args) { String str = new java.util.Scanner(System.in).nextLinet(); System.out.println (str.toLowerCase()); } }
Main.java:2: error: class Capitalize is public, should be declared in a file named Capitalize.java public class Capitalize { ^ Main.java:5: error: cannot find symbol String str = new java.util.Scanner(System.in).nextLinet(); ^ symbol: method nextLinet() loca...
s492280982
p00020
Java
public class Main { public static void main(String[] args) { String str = new java.util.Scanner(System.in).nextLinet(); System.out.println (str.toLowerCase()); } }
Main.java:5: error: cannot find symbol String str = new java.util.Scanner(System.in).nextLinet(); ^ symbol: method nextLinet() location: class Scanner 1 error
s971383264
p00020
Java
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); System.out.println (str.toLowerCase()); } }
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown String str = br.readLine(); ^ 1 error
s291816639
p00020
Java
public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); System.out.println (str.toLowerCase()); } }
Main.java:3: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:4: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^...
s047079125
p00020
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader str = new BufferedReader(new InputStreamReader(System.in)); System.out.println (str.toLowerCase()); } }
Main.java:10: error: cannot find symbol System.out.println (str.toLowerCase()); ^ symbol: method toLowerCase() location: variable str of type BufferedReader 1 error
s241665535
p00020
Java
import com.sun.tools.javac.util.StringUtils; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Stri...
Main.java:1: error: package com.sun.tools.javac.util is not visible import com.sun.tools.javac.util.StringUtils; ^ (package com.sun.tools.javac.util is declared in module jdk.compiler, which does not export it to the unnamed module) 1 error
s764772665
p00020
Java
import java.util.Scanner; public class AOJ0020 { public static void main(String[] args) { Scanner s = new Scanner(System.in); for(;;){ String a = s.next(); String b = a.toUpperCase(); System.out.print(b); if(s.hasNext()) System.out.print(" "); else break; } } }
Main.java:3: error: class AOJ0020 is public, should be declared in a file named AOJ0020.java public class AOJ0020 { ^ 1 error
s530951459
p00020
Java
import java.io.*; public class A024{ public static void main(String[] args)throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String str=br.readLine(); System.out.println(str.toUpperCase()); br.close(); } }
Main.java:5: error: class A024 is public, should be declared in a file named A024.java public class A024{ ^ 1 error
s647085128
p00020
Java
import java.util.Scanner; public class Test { public static void main(String args[]){ Scanner stdIn = new Scanner(System.in).useDelimiter("\\r\\n"); String s = stdIn.next(); s = s.toUpperCase(); System.out.println(s); } }
Main.java:3: error: class Test is public, should be declared in a file named Test.java public class Test { ^ 1 error
s418608549
p00020
Java
class Main{ public static void main(String[] args){ try{ BufferedReader sc = new BufferedReader(new InputStreamReader(System.in)); String st = sc.readLine(); System.out.println(st.toUpperCase()); }catch(Exception e){ System.out.println("Error"); } } }
Main.java:4: error: cannot find symbol BufferedReader sc = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:4: error: cannot find symbol BufferedReader sc = new BufferedReader(new InputStreamReader(System.in)); ...
s540301075
p00020
Java
import java.io.* class Main{ public static void main(String[] args){ try{ BufferedReader sc = new BufferedReader(new InputStreamReader(System.in)); String st = sc.readLine(); System.out.println(st.toUpperCase()); }catch(Exception e){ System.out.println("Error"); } } }
Main.java:1: error: ';' expected import java.io.* ^ 1 error
s091348403
p00020
Java
import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; public class g { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String s; while((s=br.readLine())!=null){ char[] chars = s...
Main.java:5: error: class g is public, should be declared in a file named g.java public class g ^ 1 error
s621497673
p00020
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Capitalize { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); /* System.out.println(str.t...
Main.java:6: error: class Capitalize is public, should be declared in a file named Capitalize.java public class Capitalize { ^ 1 error
s205422632
p00020
Java
import java.io.*; public class Main0020{ public static void main(String[] args){ BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); try{ String s; while((s=reader.readLine()) != null){ String t=s.toUpperCase(); System.out.println(t); } }catch(IOException e){ System.e...
Main.java:3: error: class Main0020 is public, should be declared in a file named Main0020.java public class Main0020{ ^ 1 error
s312280378
p00020
C
#include<stdio.h> #include<ctype.h> int main() { char str[256]; char *p; fgets(str,256,stdin); for(p=str;*p;p++)*p=upper(*p); return 0; }
main.c: In function 'main': main.c:9:22: error: implicit declaration of function 'upper'; did you mean 'toupper'? [-Wimplicit-function-declaration] 9 | for(p=str;*p;p++)*p=upper(*p); | ^~~~~ | toupper
s826128845
p00020
C
#include<stdio.h> #include<ctype.h> int main() { char str[256]; char *p; fgets(str,256,stdin); for(p=str;*p;p++) *p=upper(*p); return 0; }
main.c: In function 'main': main.c:10:6: error: implicit declaration of function 'upper'; did you mean 'toupper'? [-Wimplicit-function-declaration] 10 | *p=upper(*p); | ^~~~~ | toupper
s860813591
p00020
C
#include <stdio.h> int main(void){ char n[100]; gets(n); for(int i=0;i<100;i++){ if((n[i]>='a')&&(n[i]<='z')){ n[i]=n[i]+'A'-'a'; } } printf("%s\n",n); return 0; }
main.c: In function 'main': main.c:5:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 5 | gets(n); | ^~~~ | fgets
s346409704
p00020
C
#include <stdio.h> int main(void){ char n[100]; gets(n); for(int i=0;i<100;i++){ if((n[i]>='a')&&(n[i]<='z')){ n[i]=n[i]+'A'-'a'; } } printf("%s\n",n); return 0; }
main.c: In function 'main': main.c:5:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 5 | gets(n); | ^~~~ | fgets
s285706042
p00020
C
#include <stdio.h> int main(void){ char n[30]; gets(n); for(int i=0;i<30;i++){ if((n[i]>='a')&&(n[i]<='z')){ n[i]=n[i]+'A'-'a'; } } printf("%s\n",n); return 0; }
main.c: In function 'main': main.c:5:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 5 | gets(n); | ^~~~ | fgets
s406749801
p00020
C
#include <stdio.h> #include <conio.h> int main() { char c; while ((c = getch()) != EOF){ if (c >= 'a' && c <= 'z'){ c -= ('a'-'A'); } printf("%c",c); } return (0); }
main.c:2:10: fatal error: conio.h: No such file or directory 2 | #include <conio.h> | ^~~~~~~~~ compilation terminated.
s441149514
p00020
C
#include <stdio.h> #include <conio.h> int main(void) { char c; while ((c = getch()) != EOF){ if (c >= 'a' && c <= 'z'){ c -= ('a'-'A'); } printf("%c",c); } return (0); }
main.c:2:10: fatal error: conio.h: No such file or directory 2 | #include <conio.h> | ^~~~~~~~~ compilation terminated.
s206481115
p00020
C
#include <stdio.h> int main(){ char s[2056]="\0"; gets(s); for(int i=0;i<2056;i++){ if(s[i]=='\0') break; if('a'<=s[i]&&s[i]<='z'){ s[i]='A'+(s[i]-'a'); } } puts(s); return 0; }
main.c: In function 'main': main.c:4:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 4 | gets(s); | ^~~~ | fgets
s236620468
p00020
C
#include<stdio.h> #include <ctype.h> int main(){ int i; char str[1024] ; scanf("%[a-zA-Z .]", &str); len=strlen(str); for(i=0;str[i] != '\0';i++){ str[i] = toupper(str[i]); } printf( "%s\n", str ); return 0; }
main.c: In function 'main': main.c:10:3: error: 'len' undeclared (first use in this function) 10 | len=strlen(str); | ^~~ main.c:10:3: note: each undeclared identifier is reported only once for each function it appears in main.c:10:7: error: implicit declaration of function 'strlen' [-Wimplicit-function-de...
s492734078
p00020
C
#include<stdio.h> #include<string.h> int main() { char a[200]; gets(a); for(int i=0; a[i]!='\0'; i++) { if(a[i]>=97 && a[i]<=122){ a[i]=a[i]-32; } } printf("%s\n",a); return 0; }
main.c: In function 'main': main.c:7:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 7 | gets(a); | ^~~~ | fgets
s991688880
p00020
C
#include <stdio.h> #include <string.h> int main() { char str[200]; gets(str); printf("%s\n",strlwr(str)); return 0; }
main.c: In function 'main': main.c:7:4: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 7 | gets(str); | ^~~~ | fgets main.c:8:18: error: implicit declaration of function 'strlwr'; did you mean 'strlen'? [-Wimplicit-function-declaration] ...
s885763490
p00020
C
#include<stdio.h> #include<string.h> int main(void) { int i; char c[200]; scanf("%s",c); for(i=0;i<=strlen(c)-1;i++ { if('a'<=c[i] && c[i]<='z') c[i]-=32; printf("%c",c[i]); } return 0; }
main.c: In function 'main': main.c:10:35: error: expected ')' before '{' token 10 | for(i=0;i<=strlen(c)-1;i++ | ~ ^ | ) 11 | { | ~ main.c:16:1: error: expected expression before '...
s920765448
p00020
C
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <math.h> #define U1 unsigned char #define S1 char #define S4 int #define S8 long #define MAX_NUM_CHARACTERS (200) /* 文字数の上限 */ #define DIF_UPPERCACE_LOWERCASE ('a'-'A')/* 大文字と小文字の文字コードの差 */ /* 小文字(a~z)を大文字に変換する関数 */ /...
main.c: In function 'main': main.c:37:15: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration] 37 | (void)gets_s(s1_tp_inputCharacters, sizeof(s1_tp_inputCharacters)); | ^~~~~~
s979003098
p00020
C
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <math.h> #define U1 unsigned char #define S1 char #define S4 int #define S8 long #define MAX_NUM_CHARACTERS (200) /* 文字数の上限 */ #define DIF_UPPERCACE_LOWERCASE ('a'-'A')/* 大文字と小文字の文字コードの差 */ /* 小文字(a~z)を大文字に変換する関数 */ /...
main.c: In function 'main': main.c:37:15: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 37 | (void)gets(s1_tp_inputCharacters, sizeof(s1_tp_inputCharacters)); | ^~~~ | fgets
s999823235
p00020
C
#include<stdio.h> int main() { char a[210]; gets(a); int i=0; char b; while(a[i]!='\0') { if(a[i]>='a'&&a[i]<='z') { b=(char)(a[i]+('A'-'a')); printf("%c",b); } else printf("%c",a[i]); i++; } return 0; }
main.c: In function 'main': main.c:10:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 10 | gets(a); | ^~~~ | fgets
s238841974
p00020
C
#include <stdio.h> int main(void){ char moji; int i; for(i=1;1<=200;i++){ scanf("%c",&moji); if(moji=='a'){ printf("A"); }else if(moji=='b'){ printf("B"); }else if(moji=='c'){ printf("C"); }else if(moji=='d'){ printf("D"); }else if(moji=='e'){ ...
main.c: In function 'main': main.c:65:16: warning: missing terminating " character 65 | printf("\n); | ^ main.c:65:16: error: missing terminating " character 65 | printf("\n); | ^~~~~ main.c:66:9: error: expected expression before 'break' 66 | b...
s637029928
p00020
C
#include<stdio.h> #include<ctype.h> int main(){ char str[100000]; int i=0; gets(str); for(i=0;str[i]!='\0';){ str[i]=toupper(str[i]); i++; } printf("%s\n",str); return 0; }
main.c: In function 'main': main.c:6:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets(str); | ^~~~ | fgets
s015612303
p00020
C
#include<stdio.h> int main(void){ char a[1000]; int i,j; gets(a); for(i=0;a[i]!='\0';i++){ if(a[i]==32 || a[i]==46)continue; a[i]-=32; } printf("%s\n",a); return 0;
main.c: In function 'main': main.c:6:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets(a); | ^~~~ | fgets main.c:14:5: error: expected declaration or statement at end of input 14 | return 0; | ^~~~~~
s278544629
p00020
C
#include <stdio.h> #include <string.h> char str[201]; int main() { scanf("%s", str); int len = strlen(str); for(int i=0; i<len; ++i) { char c = str[i]; if(c >= 'a' && c <= 'z') { //cが英小文字である場合 char upper = (c - 'a') + 'A'; printf("%d", upper) }...
main.c: In function 'main': main.c:13:13: error: stray '\10' in program 13 | <U+0008>//c<U+304C><U+82F1><U+5C0F><U+6587><U+5B57><U+3067><U+3042><U+308B><U+5834><U+5408> | ^~~~~~~~ main.c:15:32: error: expected ';' before '}' token 15 | printf("%d", upper) | ...
s943146474
p00020
C
#include<stdio.h> int main(){ int ch; while((ch=getchar())!=EOF){ if(ch=' '||ch='.') switch(ch){ case 'a':ch='A';break; case 'b':ch='B';break; case 'c':ch='C';break; case 'd':ch='D';break; case 'e':ch='E';break; case 'f':ch='F';break; case 'g':ch='G';break; case 'h':ch='H';break; case 'i':ch='I';break; case 'j':ch='J';...
main.c: In function 'main': main.c:5:14: error: lvalue required as left operand of assignment 5 | if(ch=' '||ch='.') | ^
s231877358
p00020
C
#include<stdio.h> int main(){ int ch; while((ch=getchar())!=EOF){ if(ch=' '||ch='.'){ switch(ch){ case 'a':ch='A';break; case 'b':ch='B';break; case 'c':ch='C';break; case 'd':ch='D';break; case 'e':ch='E';break; case 'f':ch='F';break; case 'g':ch='G';break; case 'h':ch='H';break; case 'i':ch='I';break; case 'j':ch='J'...
main.c: In function 'main': main.c:5:14: error: lvalue required as left operand of assignment 5 | if(ch=' '||ch='.'){ | ^
s333136812
p00020
C
#include<stdio.h> int main(){ int ch; while((ch=getchar())!=EOF){ if(ch='\b'||ch='.'){ switch(ch){ case 'a':ch='A';break; case 'b':ch='B';break; case 'c':ch='C';break; case 'd':ch='D';break; case 'e':ch='E';break; case 'f':ch='F';break; case 'g':ch='G';break; case 'h':ch='H';break; case 'i':ch='I';break; case 'j':ch='J...
main.c: In function 'main': main.c:5:15: error: lvalue required as left operand of assignment 5 | if(ch='\b'||ch='.'){ | ^
s423575499
p00020
C
include<stdio.h> int main(){ char s[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 l[26]={'A' , 'B' , 'C' , 'D' , 'E' , 'F' , 'G' , 'H' , 'I' , 'J' , 'K' , 'L' , 'M' , 'N' , 'O' , 'P' , 'Q' , 'R' , ...
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s913799000
p00020
C
#include<stdio.h> main(){char a[99]; int i=0;gets(a);do{if(a[i]>'`' && a[i]<'{')a[i]-=32;}while(a[++i]!='\0');puts(a);return 0;}
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int] 2 | main(){char a[99]; int i=0;gets(a);do{if(a[i]>'`' && a[i]<'{')a[i]-=32;}while(a[++i]!='\0');puts(a);return 0;} | ^~~~ main.c: In function 'main': main.c:2:28: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit...
s605200135
p00020
C
main(){for(char c;~c;putchar(c))c=getchar();}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(){for(char c;~c;putchar(c))c=getchar();} | ^~~~ main.c: In function 'main': main.c:1:22: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration] 1 | main(){for(char c;~c;putchar(c))c=getchar();} | ...
s841696588
p00020
C
main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;} | ^~~~ main.c: In function 'main': main.c:1:14: error: 'c' undeclared (first use in this function) 1 | main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;} |...
s022904833
p00020
C
main(c){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(c){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int] main.c:1:17: error: implicit declaration of function 'putchar' [-Wimplicit-...
s548714868
p00020
C
main(){int i;char s[99];gets(s);for(i=0;i<strlen(s);i++)putchar(s[i]-32*(96<s[i]&&s[i]<123));puts("");return 0;}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(){int i;char s[99];gets(s);for(i=0;i<strlen(s);i++)putchar(s[i]-32*(96<s[i]&&s[i]<123));puts("");return 0;} | ^~~~ main.c: In function 'main': main.c:1:25: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration...
s193046194
p00020
C
#include<stdio.h> #include<stdlib.h> #include<string.h> int i=0,n; char s[1005]; int main(){ gets(s); for(i=0;i<strlen(s);i++){ if(s[i]>96 && s[i]<123)s[i]=s[i]-32; } printf("%s",s); return 0; }
main.c: In function 'main': main.c:9:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 9 | gets(s); | ^~~~ | fgets
s517744063
p00020
C
#include <stdio.h> #include <string.h> #include <ctype.h> int main() { char s[21]; int i,l; gets(s); l=strlen(s);; for(i=0;i<l;i++) printf("%c",toupper(s[i])); printf("\n"); return 0; }
main.c: In function 'main': main.c:8:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 8 | gets(s); | ^~~~ | fgets
s372263760
p00020
C
#include <stdio.h> #include <string.h> int main(void) { char str[1000]; int i; gets(str); for (i = 0; i < strlen(str); i++){ if (('a' <= str[i]) && (str[i] <= 'z')){ str[i] -= 0x20; } } printf("%s\n", str); return (0); }
main.c: In function 'main': main.c:9:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 9 | gets(str); | ^~~~ | fgets
s546823082
p00020
C
void main(){ char s[9999] int i; for(;~scanf("%s",s);printf("%s ",s)) for(i=0;s[i];i++) s[i]>='a'&&s[i]<='z'?s[i]-=32:0; for(i=0;s[i];i++) s[i]>='a'&&s[i]<='z'?s[i]-=32:0; puts(s); }
main.c: In function 'main': main.c:2:21: error: expected ';' before 'int' 2 | char s[9999] | ^ | ; 3 | int i; | ~~~ main.c:4:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 4 | f...
s962375472
p00020
C
void main(){ char s[999]; int i; for(;gets(s);printf("%s\n",s)) for(i=0;s[i];i++) s[i]>='a'&&s[i]<='z'?s[i]-=32:0; puts(""); }
main.c: In function 'main': main.c:4:14: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 4 | for(;gets(s);printf("%s\n",s)) | ^~~~ main.c:4:22: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 4 | for(;gets(s);...
s244146158
p00020
C
void main(){ char s[999]; int i; for(;fgets(s,999,stdin);printf("%s\n",s)) for(i=0;s[i];i++) s[i]>='a'&&s[i]<='z'?s[i]-=32:0; puts(""); }
main.c: In function 'main': main.c:4:14: error: implicit declaration of function 'fgets' [-Wimplicit-function-declaration] 4 | for(;fgets(s,999,stdin);printf("%s\n",s)) | ^~~~~ main.c:4:26: error: 'stdin' undeclared (first use in this function) 4 | for(;fgets(s,999,stdin);prin...
s491639051
p00020
C
void main(){ int c; for(;(c=getchar())!=EOF;putchar(c)) c>='a'&&c<='z'?c-=32:0; }
main.c: In function 'main': main.c:3:17: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration] 3 | for(;(c=getchar())!=EOF;putchar(c)) | ^~~~~~~ main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <std...
s855736419
p00020
C
main(c){for(;~(c=getchar());putchar(c>96?c-32:c));return 0}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(c){for(;~(c=getchar());putchar(c>96?c-32:c));return 0} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int] main.c:1:18: error: implicit declaration of function 'getchar' [-Wimplicit-func...
s657865010
p00020
C
#include<stdio.h> #include<stdlib.h> #include<string.h> int i=0,n=1; char s[1005]; int main(){ /*while(scanf("%s",s)!=EOF){ //if(n!=1)printf(" ");n=0; for(i=0;i<strlen(s);i++){ if(s[i]>96 && s[i]<123)s[i]=s[i]-32; } printf("%s ",s); } printf("\n");*/ gets(s); for(i=0;i<strlen(s);i++){ if(s[i]>96 && ...
main.c: In function 'main': main.c:17:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 17 | gets(s); | ^~~~ | fgets
s755397754
p00020
C
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader din = new BufferedReader( new InputStreamReader(System.in)); String str = din.readLine(); System.out.println(str.toUpperCase()); } }
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:3:1: error: unknown type name 'public' 3 | public class Main { | ^~~~~~ main.c:3:14...
s819880761
p00020
C
include <stdio.h> int main(void) { char ch[81]; int i; fgets(ch, 80, stdin); for(i = 0; ch[i] != '\0'; ++i) { if('a' <= ch[i] && ch[i] <= 'z') { ch[i] -= 32; } } fputs(ch, stdout); return 0; }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s577391125
p00020
C
include <stdio.h> int main(void) { char ch[81]; int i; fgets(ch, 80, stdin); for(i = 0; ch[i] != '\0'; ++i) { if('a' <= ch[i] && ch[i] <= 'z') { ch[i] -= 32; } } printf("%s", ch); return 0; }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s000130736
p00020
C
#include <stdio.h> int main(void) { char ch[81]; int i; gets(ch); for(i = 0; ch[i] != '\0'; ++i) { if('a' <= ch[i] && ch[i] <= 'z') { ch[i] -= 32; } } puts(ch); return 0; }
main.c: In function 'main': main.c:8:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 8 | gets(ch); | ^~~~ | fgets
s952574393
p00020
C
main(a){for(;~scanf("%c",&c;printf("%c",(c>96&&c<123)?c-32:c);exit(0);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(a){for(;~scanf("%c",&c;printf("%c",(c>96&&c<123)?c-32:c);exit(0);} | ^~~~ 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' [-Wimp...
s819056320
p00020
C
main(a){for(;~scanf("%c",&a);printf("%c",a>96?a-32:a);}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(a){for(;~scanf("%c",&a);printf("%c",a>96?a-32:a);} | ^~~~ 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-d...
s311340448
p00020
C
main(a){for(;~a=getchar();putchar(a>96?a-32:a));}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(a){for(;~a=getchar();putchar(a>96?a-32:a));} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int] main.c:1:17: error: implicit declaration of function 'getchar' [-Wimplicit-function-decla...
s691591224
p00020
C
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #define REP(i,a,b) for(i=a;i<b;i++) #define rep(i,n) REP(i,0,n) int main(){ int i; char str[1000]; gets(str); rep(i,strlen(str)) if('a' <= str[i] && str[i] <= 'z') str[i] += 'A' - 'a'; printf("%s",str); return 0; }
main.c: In function 'main': main.c:13:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 13 | gets(str); | ^~~~ | fgets
s043948014
p00020
C
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #define REP(i,a,b) for(i=a;i<b;i++) #define rep(i,n) REP(i,0,n) int main(){ int i; char str[1000]; gets(str); rep(i,strlen(str)) if('a' <= str[i] && str[i] <= 'z') str[i] += 'A' - 'a'; printf("%s",str); return 0; }
main.c: In function 'main': main.c:13:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 13 | gets(str); | ^~~~ | fgets
s414719991
p00020
C
main(c){for(;~(c=getchar());n=!putchar(isalpha(c)?c^32:c));}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(c){for(;~(c=getchar());n=!putchar(isalpha(c)?c^32:c));} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int] main.c:1:18: error: implicit declaration of function 'getchar' [-Wimplicit-fun...
s245397786
p00020
C
n;main(c){for(;n=~(c=getchar());putchar(toupper(c));}
main.c:1:1: warning: data definition has no type or storage class 1 | n;main(c){for(;n=~(c=getchar());putchar(toupper(c));} | ^ main.c:1:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int] main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int] 1 | n;main(c){for(;n=~(c=getcha...
s651760536
p00020
C
main(c){for(;c=toupper(getchar()),printf(&c));}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(c){for(;c=toupper(getchar()),printf(&c));} | ^~~~ main.c: In function 'main': main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int] main.c:1:16: error: implicit declaration of function 'toupper' [-Wimplicit-function-declara...
s182910200
p00020
C
import java.io.*; import java.util.*; import java.math.*; import java.lang.*; public class Main { public static void main(String[] args) throws java.io.IOException{ Scanner scan = new Scanner(System.in); String str = scan.nextLine(); System.out.println(str.toUpperCase()); } }
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...
s570314028
p00020
C
#include<stdio.h> int main(){ int str[512]; int count=0; int buff=0; while((buff=getchar())!='\n'){ if('a'<=buff&&buff<='z')str[count]=buff-32; else str[count]=buff; count++; printf("%c",str[count-1]); } printf("\n") return 0; }
main.c: In function 'main': main.c:12:21: error: expected ';' before 'return' 12 | printf("\n") | ^ | ; 13 | return 0; | ~~~~~~
s665417835
p00020
C
#include<stdio.h> //#include<conio.h> int main(){ int str[512]; int count=0; int buff=0; setbuf(stdin,NULL); setbuf(stdout,NULL); while((buff=getch())!='\n'){ if('a'<=buff&&buff<='z')str[count]=buff-32; else str[count]=buff; count++; printf("%c",str[count-1]); //system("cls"); } printf("\n"); return...
main.c: In function 'main': main.c:10:21: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration] 10 | while((buff=getch())!='\n'){ | ^~~~~ | getc
s395386465
p00020
C
#include <stdio.h> int main(void) { int i; char buf[1024]; gets (buf); for (i=0; buf[i] != 0; i++) if (buf[i] >= 'a' && buf[i] <= 'z') buf[i] -= ('a' - 'A'); puts (buf); return 0; }
main.c: In function 'main': main.c:6:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets (buf); | ^~~~ | fgets
s458686424
p00020
C
#include <stdio.h> int main(void) { int i; char buf[1024]; gets (buf); for (i=0; buf[i] != 0; i++){ if (buf[i] >= 'a' && buf[i] <= 'z') buf[i] -= ('a' - 'A'); } puts (buf); return 0; }
main.c: In function 'main': main.c:6:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets (buf); | ^~~~ | fgets
s792376347
p00020
C
#include <stdio.h> #include <string.h> const int N = 1000005; char text[N]; int main() { while (gets(text)) { int len = strlen(text); for (int i=0; i<len; ++i) { if (text[i] >= 'a' && text[i] <= 'z') text[i] = text[i] - 'a' + 'A'; } printf ("%s\n", text); } return 0; }
main.c:6:6: error: variably modified 'text' at file scope 6 | char text[N]; | ^~~~ main.c: In function 'main': main.c:9:16: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 9 | while (gets(text)) { | ^~~~ | ...
s632399339
p00020
C
#include <stdio.h> #include <string.h> const int N = 1000005; char text[N]; int main() { while (gets(text)) { int i, len = strlen(text); for (i=0; i<len; ++i) { if (text[i] >= 'a' && text[i] <= 'z') text[i] = text[i] - 'a' + 'A'; } printf ("%s\n", text); } return 0; }
main.c:6:6: error: variably modified 'text' at file scope 6 | char text[N]; | ^~~~ main.c: In function 'main': main.c:9:16: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 9 | while (gets(text)) { | ^~~~ | ...
s014403663
p00020
C
#include<stdio.h> #include<string> int main() { char s; while(scanf("%c",&s)!=EOF) printf("%c",toupper(s)); printf("\n"); }
main.c:2:9: fatal error: string: No such file or directory 2 | #include<string> | ^~~~~~~~ compilation terminated.
s276119844
p00020
C
#include<stdio.h> int main(void) { char c; printf("英文="); scanf("%s",&c); c=(char)getchar(); if(c >= 'A' && c <= 'Z') c += 'a' - 'A'; else c -='a' - 'A'; else c%s'a' - 'A'; printf("変換後は%s\n",c); return 0; }
main.c: In function 'main': main.c:12:9: error: 'else' without a previous 'if' 12 | else | ^~~~ main.c:13:19: error: 's' undeclared (first use in this function) 13 | c%s'a' - 'A'; | ^ main.c:13:19: note: each undeclared identifier is reported only once...
s450265000
p00020
C
void main(n){ char s[999]; gets(s); for(i=0;s[i];i++)putchar(s[i]>='a'&&s[i]<='z'?s[i]+'A'-'a':s[i]); puts(""); }
main.c: In function 'main': main.c:1:6: error: type of 'n' defaults to 'int' [-Wimplicit-int] 1 | void main(n){ | ^~~~ main.c:3:1: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 3 | gets(s); | ^~~~ main.c:4:5: error: 'i' undeclared (first use in this function) ...
s510356924
p00020
C
int main(n){ char s[999]; gets(s); for(i=0;s[i];i++)putchar(s[i]>='a'&&s[i]<='z'?s[i]+'A'-'a':s[i]); puts(""); return 0; }
main.c: In function 'main': main.c:1:5: error: type of 'n' defaults to 'int' [-Wimplicit-int] 1 | int main(n){ | ^~~~ main.c:3:1: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 3 | gets(s); | ^~~~ main.c:4:5: error: 'i' undeclared (first use in this function) ...
s931909175
p00020
C
int main(n){ char s[999]; gets(s); for(i=0;s[i];i++)putchar(s[i]>='a'&&s[i]<='z'?s[i]+'A'-'a':s[i]); puts(""); return 0; }
main.c: In function 'main': main.c:1:5: error: type of 'n' defaults to 'int' [-Wimplicit-int] 1 | int main(n){ | ^~~~ main.c:3:1: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 3 | gets(s); | ^~~~ main.c:4:5: error: 'i' undeclared (first use in this function) ...
s507113742
p00020
C
#include <stdio.h> int main() { char a[65535]; int i; for(i=0;;i++){ if(scanf("%c",a+i)==EOF){ t=i;break; } for(i=0;i<t;i++){ if(a[i]>96&&a[i]<123){ a[i]-=32; } } printf(a); printf("\n"); return 0; }
main.c: In function 'main': main.c:10:23: error: 't' undeclared (first use in this function) 10 | t=i;break; | ^ main.c:10:23: note: each undeclared identifier is reported only once for each function it appears in main.c:20:1: error: expected declaration or statement...
s567249271
p00020
C
#include <stdio.h> int main() { char a[65535]; int i,t; for(i=0;;i++){ if(scanf("%c",a+i)==EOF){ t=i;break; } for(i=0;i<t;i++){ if(a[i]>96&&a[i]<123){ a[i]-=32; } } printf(a); printf("\n"); return 0; }
main.c: In function 'main': main.c:20:1: error: expected declaration or statement at end of input 20 | } | ^
s357386878
p00020
C
main(){ char s; while(scanf("%c" ,&s)!=EOF)printf("%c",toupper(s));return 0;}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(){ char s; while(scanf("%c" ,&s)!=EOF)printf("%c",toupper(s));return 0;} | ^~~~ main.c: In function 'main': main.c:1:23: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | main(){ char s; while(sc...
s859589180
p00020
C
#include<stdio.h> int main(void){ int a; while((a=getchat())!=EOF){ if(a>='a' && a<='z'){ putchar(a-'a'+'A'); }else{ putchar(a); } } printf ("\n"); return 0; }
main.c: In function 'main': main.c:4:14: error: implicit declaration of function 'getchat'; did you mean 'getchar'? [-Wimplicit-function-declaration] 4 | while((a=getchat())!=EOF){ | ^~~~~~~ | getchar
s532767671
p00020
C
#include<stdio.h> int main(){ int i; char str[100]={}; gets(str); for(i=0;i<100;i++){ if(str[i]>=97 && str[i]<=122){ str[i]=str[i]-32; } if(str[i]==0){ str[i]=32; } } puts(str); puts(); return 0; }
main.c: In function 'main': main.c:6:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 6 | gets(str); | ^~~~ | fgets main.c:16:9: error: too few arguments to function 'puts' 16 | puts(); | ^~~~ In f...
s931207407
p00020
C
int main(){ char a; while(scanf("%c",&a)!=EOF) if(a<='a'&&a>='z') printf("%c",a-'a'+'A'); else printf("%c",a); return 0; }
main.c: In function 'main': main.c:4:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 4 | while(scanf("%c",&a)!=EOF) | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main(){ main....
s460453644
p00020
C
File Edit Options Buffers Tools C Help #include <stdio.h> int main(){ char str[100]; int i = 0, j; while (scanf("%c", &str[i]) != EOF){ if (str[i] >= 97 && str[i] <= 122) str[i] -= 32; i++; } for (j = 0;j...
main.c:1:1: error: unknown type name 'File' 1 | File Edit Options Buffers Tools C Help | ^~~~ main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Options' 1 | File Edit Options Buffers Tools C Help | ^~~~~~~ main.c:1:11: error: unknown type name 'Options' In file i...
s556048718
p00020
C
File Edit Options Buffers Tools C Help #include <stdio.h> int main(){ char str[100]; int i = 0, j; while (scanf("%c", &str[i]) != EOF){ if (str[i] >= 97 && str[i] <= 122) str[i] -= 32; i++; } for (j = 0;j...
main.c:1:1: error: unknown type name 'File' 1 | File Edit Options Buffers Tools C Help | ^~~~ main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Options' 1 | File Edit Options Buffers Tools C Help | ^~~~~~~ main.c:1:11: error: unknown type name 'Options' In file i...
s931652707
p00020
C
#include <stdio.h> int main(void) { int a, b; char c; a = 0; while (scanf("%c", &c) != EOF){ scanf("%c", &c); str[a] = c; if (c >= 'a' && c <= 'z') { c -= 0x20; } printf("%c", c); } printf("\n"); return (0); }
main.c: In function 'main': main.c:11:17: error: 'str' undeclared (first use in this function) 11 | str[a] = c; | ^~~ main.c:11:17: note: each undeclared identifier is reported only once for each function it appears in
s009177539
p00020
C
#include <stdio.h> int main(){ char c; while(scanf("%c") != EOF){ if('a'<=c && c <= 'z') putchar(c -= 32); } reutnrn 0; }
main.c: In function 'main': main.c:9:5: error: 'reutnrn' undeclared (first use in this function) 9 | reutnrn 0; | ^~~~~~~ main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in main.c:9:12: error: expected ';' before numeric constant 9 | reutnrn 0; ...
s510784144
p00020
C
main(c){for(;~scanf("%c",&c);c=!printf("%c",c-(c>96)*32);)}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(c){for(;~scanf("%c",&c);c=!printf("%c",c-(c>96)*32);)} | ^~~~ 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...
s220636966
p00020
C
main(c){for(;~scanf("%c",&c);c=!printf("%c",c-(c>96)*32))}
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(c){for(;~scanf("%c",&c);c=!printf("%c",c-(c>96)*32))} | ^~~~ 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-functio...