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;
f[j]=s%10;
c=s/10;
}
}
for (i=49; i>=0; i--) if (f[i]!=0) break;
for (j=i; j>=0; j--) printf ("%d", f[j]);
printf ("\n");
}
return 0;
}
|
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: error: expected primary-expression before ')' token
a.cc:8:33: error: expected ':' before ')' token
a.cc:8:33: error: expected primary-expression before ')' token
|
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 exit status
|
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 exit status
|
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, enum, or record expected
}
^
3 errors
|
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, enum, or record expected
}
^
3 errors
|
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.toUpperCase(ch);
}
sb.append(ch);
}
String out = sb.toString();
System.out.printf("%s\n", out);
}
}
|
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);
^
symbol: class Scanner
location: class Main
2 errors
|
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)){
ch = Character.toUpperCase(ch);
}
sb.append(ch);
}
String out = sb.toString();
System.out.printf("%s\n", out);
}
}
|
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()
location: class Scanner
2 errors
|
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));
^
symbol: class BufferedReader
location: class Main
Main.java:4: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class BufferedReader
location: class Main
Main.java:4: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class InputStreamReader
location: class Main
4 errors
|
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));
String line;
while ((line = br.readLine()) != null && !line.isEmpty()) {
System.out.println(StringUtils.toUpperCase(line));
}
}
}
|
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));
^
symbol: class BufferedReader
location: class Main
Main.java:4: error: cannot find symbol
BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class InputStreamReader
location: class Main
3 errors
|
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.toCharArray();
for(char c : chars){
if(c==' ' || c=='.') System.out.print(c);
else System.out.print((char)(c-32));
}
}
}
}
|
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.toUpperCase());
*/
char text[] = str.toCharArray();
for(int i=0; i<text.length; i++){
if('a' <= text[i] && text[i] <= 'z'){
text[i] = (char)(text[i] - 'a' + 'A');
}
}
System.out.println(text);
}
}
|
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.exit(0);
}
}
}
|
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-declaration]
10 | len=strlen(str);
| ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
2 | #include <ctype.h>
+++ |+#include <string.h>
3 |
main.c:10:7: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
10 | len=strlen(str);
| ^~~~~~
main.c:10:7: note: include '<string.h>' or provide a declaration of 'strlen'
|
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]
8 | printf("%s\n",strlwr(str));
| ^~~~~~
| strlen
|
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 '}' token
16 | }
| ^
|
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)を大文字に変換する関数 */
/* 入力文字列の領域を置換する */
void vd_d_toUpperCase(S1* s1_ap_arrCharacters)
{
S1* s1_tp_indexArrCharacters; /* 入力文字列操作用インデックス */
/* a-zなら、A-Zに変換 */
s1_tp_indexArrCharacters = &s1_ap_arrCharacters[0];
while (*s1_tp_indexArrCharacters != (S1)'\0')
{
if ((*s1_tp_indexArrCharacters >= (S1)'a') &&
(*s1_tp_indexArrCharacters <= (S1)'z'))
{
*s1_tp_indexArrCharacters -= (S1)DIF_UPPERCACE_LOWERCASE;
}
s1_tp_indexArrCharacters++;
}
}
S4 main(void)
{
S1 s1_tp_inputCharacters[MAX_NUM_CHARACTERS + 1]; /* 終端文字のために余分に配列を確保 */
(void)gets_s(s1_tp_inputCharacters, sizeof(s1_tp_inputCharacters));
/* 小文字を大文字に変換 */
vd_d_toUpperCase(s1_tp_inputCharacters);
/* 結果を出力 */
printf("%s\n", s1_tp_inputCharacters);
return((S4)0);
}
|
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)を大文字に変換する関数 */
/* 入力文字列の領域を置換する */
void vd_d_toUpperCase(S1* s1_ap_arrCharacters)
{
S1* s1_tp_indexArrCharacters; /* 入力文字列操作用インデックス */
/* a-zなら、A-Zに変換 */
s1_tp_indexArrCharacters = &s1_ap_arrCharacters[0];
while (*s1_tp_indexArrCharacters != (S1)'\0')
{
if ((*s1_tp_indexArrCharacters >= (S1)'a') &&
(*s1_tp_indexArrCharacters <= (S1)'z'))
{
*s1_tp_indexArrCharacters -= (S1)DIF_UPPERCACE_LOWERCASE;
}
s1_tp_indexArrCharacters++;
}
}
S4 main(void)
{
S1 s1_tp_inputCharacters[MAX_NUM_CHARACTERS + 1]; /* 終端文字のために余分に配列を確保 */
(void)gets(s1_tp_inputCharacters, sizeof(s1_tp_inputCharacters));
/* 小文字を大文字に変換 */
vd_d_toUpperCase(s1_tp_inputCharacters);
/* 結果を出力 */
printf("%s\n", s1_tp_inputCharacters);
return((S4)0);
}
|
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'){
printf("E");
}else if(moji=='f'){
printf("F");
}else if(moji=='g'){
printf("G");
}else if(moji=='h'){
printf("H");
}else if(moji=='i'){
printf("I");
}else if(moji=='j'){
printf("J");
}else if(moji=='k'){
printf("K");
}else if(moji=='l'){
printf("L");
}else if(moji=='m'){
printf("M");
}else if(moji=='n'){
printf("N");
}else if(moji=='o'){
printf("O");
}else if(moji=='p'){
printf("P");
}else if(moji=='q'){
printf("Q");
}else if(moji=='r'){
printf("R");
}else if(moji=='s'){
printf("S");
}else if(moji=='t'){
printf("T");
}else if(moji=='u'){
printf("U");
}else if(moji=='v'){
printf("V");
}else if(moji=='v'){
printf("V");
}else if(moji=='x'){
printf("X");
}else if(moji=='y'){
printf("Y");
}else if(moji=='z'){
printf("Z");
}else if(moji==' '){
printf(" ");
}else if(moji=='.'){
printf(".");
}else{
printf("\n);
break;
}
}
return 0;
}
|
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 | break;
| ^~~~~
main.c:66:15: error: expected ';' before '}' token
66 | break;
| ^
| ;
67 | }
| ~
|
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)
} else {
printf("%c", c);
}
}
printf("\n");
}
|
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)
| ^
| ;
16 | } else {
| ~
|
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';break;
case 'k':ch='K';break;
case 'l':ch='L';break;
case 'm':ch='M';break;
case 'n':ch='N';break;
case 'o':ch='O';break;
case 'p':ch='P';break;
case 'q':ch='Q';break;
case 'r':ch='R';break;
case 's':ch='S';break;
case 't':ch='T';break;
case 'u':ch='U';break;
case 'v':ch='V';break;
case 'w':ch='W';break;
case 'x':ch='X';break;
case 'y':ch='Y';break;
case 'z':ch='Z';break;
}
putchar(ch);
}
return 0;
}
|
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';break;
case 'k':ch='K';break;
case 'l':ch='L';break;
case 'm':ch='M';break;
case 'n':ch='N';break;
case 'o':ch='O';break;
case 'p':ch='P';break;
case 'q':ch='Q';break;
case 'r':ch='R';break;
case 's':ch='S';break;
case 't':ch='T';break;
case 'u':ch='U';break;
case 'v':ch='V';break;
case 'w':ch='W';break;
case 'x':ch='X';break;
case 'y':ch='Y';break;
case 'z':ch='Z';break;
}}
putchar(ch);
}
return 0;
}
|
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';break;
case 'k':ch='K';break;
case 'l':ch='L';break;
case 'm':ch='M';break;
case 'n':ch='N';break;
case 'o':ch='O';break;
case 'p':ch='P';break;
case 'q':ch='Q';break;
case 'r':ch='R';break;
case 's':ch='S';break;
case 't':ch='T';break;
case 'u':ch='U';break;
case 'v':ch='V';break;
case 'w':ch='W';break;
case 'x':ch='X';break;
case 'y':ch='Y';break;
case 'z':ch='Z';break;
}}
putchar(ch);
}
return 0;
}
|
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' , 'S' , 'T' , 'U' , 'V' , 'W' , 'X' , 'Y' , 'Z'};
char str[1000];
int c,i,j;
for(c=0;;c++){
scanf("%c",&str[c]);
if(str[c]=='\n')break;
}
for(i=0;i<c;i++){
for(j=0;j<26;j++){
if(str[i]==s[j]){
str[i]=l[j];
}
}
printf("%c",str[i]);
}
printf("\n");
return 0;
}
|
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-function-declaration]
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;}
| ^~~~
| fgets
|
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();}
| ^~~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar'
+++ |+#include <stdio.h>
1 | main(){for(char c;~c;putchar(c))c=getchar();}
main.c:1:35: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
1 | main(){for(char c;~c;putchar(c))c=getchar();}
| ^~~~~~~
main.c:1:35: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
|
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;}
| ^
main.c:1:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:16: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
1 | main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
| ^~~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar'
+++ |+#include <stdio.h>
1 | main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
main.c:1:24: error: implicit declaration of function 'isalpha' [-Wimplicit-function-declaration]
1 | main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
| ^~~~~~~
main.c:1:1: note: include '<ctype.h>' or provide a declaration of 'isalpha'
+++ |+#include <ctype.h>
1 | main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
main.c:1:45: error: 'getchar' undeclared (first use in this function)
1 | main(){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
| ^~~~~~~
main.c:1:45: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
|
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-function-declaration]
1 | main(c){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
| ^~~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar'
+++ |+#include <stdio.h>
1 | main(c){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
main.c:1:25: error: implicit declaration of function 'isalpha' [-Wimplicit-function-declaration]
1 | main(c){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
| ^~~~~~~
main.c:1:1: note: include '<ctype.h>' or provide a declaration of 'isalpha'
+++ |+#include <ctype.h>
1 | main(c){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
main.c:1:46: error: 'getchar' undeclared (first use in this function)
1 | main(c){for(;~c;putchar(isalpha(c)?c^32:c))c=getchar;return 0;}
| ^~~~~~~
main.c:1:46: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:1:46: note: each undeclared identifier is reported only once for each function it appears in
|
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]
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:1:43: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
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:1:1: note: include '<string.h>' or provide a declaration of 'strlen'
+++ |+#include <string.h>
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:1:43: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
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:1:43: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:1:57: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
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:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar'
+++ |+#include <stdio.h>
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:1:94: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
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:1:94: note: include '<stdio.h>' or provide a declaration of 'puts'
|
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 | for(;~scanf("%s",s);printf("%s ",s))
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | void main(){
main.c:4:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
4 | for(;~scanf("%s",s);printf("%s ",s))
| ^~~~~
main.c:4:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:26: error: 's' undeclared (first use in this function)
4 | for(;~scanf("%s",s);printf("%s ",s))
| ^
main.c:4:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:29: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
4 | for(;~scanf("%s",s);printf("%s ",s))
| ^~~~~~
main.c:4:29: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:29: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:29: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:9: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
9 | puts(s);
| ^~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'puts'
|
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);printf("%s\n",s))
| ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
+++ |+#include <stdio.h>
1 | void main(){
main.c:4:22: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
4 | for(;gets(s);printf("%s\n",s))
| ^~~~~~
main.c:4:22: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
7 | puts("");
| ^~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'puts'
|
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);printf("%s\n",s))
| ^~~~~
main.c:1:1: note: 'stdin' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
+++ |+#include <stdio.h>
1 | void main(){
main.c:4:26: note: each undeclared identifier is reported only once for each function it appears in
4 | for(;fgets(s,999,stdin);printf("%s\n",s))
| ^~~~~
main.c:4:33: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
4 | for(;fgets(s,999,stdin);printf("%s\n",s))
| ^~~~~~
main.c:4:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:33: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:9: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
7 | puts("");
| ^~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'puts'
|
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 <stdio.h>'
+++ |+#include <stdio.h>
1 | void main(){
main.c:3:29: error: 'EOF' undeclared (first use in this function)
3 | for(;(c=getchar())!=EOF;putchar(c))
| ^~~
main.c:3:29: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:3:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:33: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
3 | for(;(c=getchar())!=EOF;putchar(c))
| ^~~~~~~
main.c:3:33: note: include '<stdio.h>' or provide a declaration of 'putchar'
|
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-function-declaration]
1 | main(c){for(;~(c=getchar());putchar(c>96?c-32:c));return 0}
| ^~~~~~~
main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
+++ |+#include <stdio.h>
1 | main(c){for(;~(c=getchar());putchar(c>96?c-32:c));return 0}
main.c:1:29: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
1 | main(c){for(;~(c=getchar());putchar(c>96?c-32:c));return 0}
| ^~~~~~~
main.c:1:29: note: include '<stdio.h>' or provide a declaration of 'putchar'
main.c:1:59: error: expected ';' before '}' token
1 | main(c){for(;~(c=getchar());putchar(c>96?c-32:c));return 0}
| ^
| ;
|
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 && s[i]<123)s[i]=s[i]-32;
}
printf("%s\n",s);
return 0;
}
|
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: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
3 | public class Main {
| ^~~~
|
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' [-Wimplicit-function-declaration]
1 | main(a){for(;~scanf("%c",&c;printf("%c",(c>96&&c<123)?c-32:c);exit(0);}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main(a){for(;~scanf("%c",&c;printf("%c",(c>96&&c<123)?c-32:c);exit(0);}
main.c:1:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | main(a){for(;~scanf("%c",&c;printf("%c",(c>96&&c<123)?c-32:c);exit(0);}
| ^~~~~
main.c:1:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:27: error: 'c' undeclared (first use in this function)
1 | main(a){for(;~scanf("%c",&c;printf("%c",(c>96&&c<123)?c-32:c);exit(0);}
| ^
main.c:1:27: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:28: error: expected ')' before ';' token
1 | main(a){for(;~scanf("%c",&c;printf("%c",(c>96&&c<123)?c-32:c);exit(0);}
| ~ ^
| )
main.c:1:71: error: expected ';' before '}' token
1 | main(a){for(;~scanf("%c",&c;printf("%c",(c>96&&c<123)?c-32:c);exit(0);}
| ^
| ;
main.c:1:71: error: expected expression before '}' token
main.c:1:71: error: expected expression before '}' token
|
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-declaration]
1 | main(a){for(;~scanf("%c",&a);printf("%c",a>96?a-32:a);}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main(a){for(;~scanf("%c",&a);printf("%c",a>96?a-32:a);}
main.c:1:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | main(a){for(;~scanf("%c",&a);printf("%c",a>96?a-32:a);}
| ^~~~~
main.c:1:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:30: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | main(a){for(;~scanf("%c",&a);printf("%c",a>96?a-32:a);}
| ^~~~~~
main.c:1:30: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:30: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:30: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:54: error: expected ')' before ';' token
1 | main(a){for(;~scanf("%c",&a);printf("%c",a>96?a-32:a);}
| ~ ^
| )
main.c:1:55: error: expected expression before '}' token
1 | main(a){for(;~scanf("%c",&a);printf("%c",a>96?a-32:a);}
| ^
|
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-declaration]
1 | main(a){for(;~a=getchar();putchar(a>96?a-32:a));}
| ^~~~~~~
main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
+++ |+#include <stdio.h>
1 | main(a){for(;~a=getchar();putchar(a>96?a-32:a));}
main.c:1:16: error: lvalue required as left operand of assignment
1 | main(a){for(;~a=getchar();putchar(a>96?a-32:a));}
| ^
main.c:1:27: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
1 | main(a){for(;~a=getchar();putchar(a>96?a-32:a));}
| ^~~~~~~
main.c:1:27: note: include '<stdio.h>' or provide a declaration of 'putchar'
|
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-function-declaration]
1 | main(c){for(;~(c=getchar());n=!putchar(isalpha(c)?c^32:c));}
| ^~~~~~~
main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
+++ |+#include <stdio.h>
1 | main(c){for(;~(c=getchar());n=!putchar(isalpha(c)?c^32:c));}
main.c:1:29: error: 'n' undeclared (first use in this function)
1 | main(c){for(;~(c=getchar());n=!putchar(isalpha(c)?c^32:c));}
| ^
main.c:1:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:32: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
1 | main(c){for(;~(c=getchar());n=!putchar(isalpha(c)?c^32:c));}
| ^~~~~~~
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'putchar'
main.c:1:40: error: implicit declaration of function 'isalpha' [-Wimplicit-function-declaration]
1 | main(c){for(;~(c=getchar());n=!putchar(isalpha(c)?c^32:c));}
| ^~~~~~~
main.c:1:1: note: include '<ctype.h>' or provide a declaration of 'isalpha'
+++ |+#include <ctype.h>
1 | main(c){for(;~(c=getchar());n=!putchar(isalpha(c)?c^32:c));}
|
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=getchar());putchar(toupper(c));}
| ^~~~
main.c: In function 'main':
main.c:1:3: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:22: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
1 | n;main(c){for(;n=~(c=getchar());putchar(toupper(c));}
| ^~~~~~~
main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
+++ |+#include <stdio.h>
1 | n;main(c){for(;n=~(c=getchar());putchar(toupper(c));}
main.c:1:33: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
1 | n;main(c){for(;n=~(c=getchar());putchar(toupper(c));}
| ^~~~~~~
main.c:1:33: note: include '<stdio.h>' or provide a declaration of 'putchar'
main.c:1:41: error: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
1 | n;main(c){for(;n=~(c=getchar());putchar(toupper(c));}
| ^~~~~~~
main.c:1:1: note: include '<ctype.h>' or provide a declaration of 'toupper'
+++ |+#include <ctype.h>
1 | n;main(c){for(;n=~(c=getchar());putchar(toupper(c));}
main.c:1:52: error: expected ')' before ';' token
1 | n;main(c){for(;n=~(c=getchar());putchar(toupper(c));}
| ~ ^
| )
main.c:1:53: error: expected expression before '}' token
1 | n;main(c){for(;n=~(c=getchar());putchar(toupper(c));}
| ^
|
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-declaration]
1 | main(c){for(;c=toupper(getchar()),printf(&c));}
| ^~~~~~~
main.c:1:1: note: include '<ctype.h>' or provide a declaration of 'toupper'
+++ |+#include <ctype.h>
1 | main(c){for(;c=toupper(getchar()),printf(&c));}
main.c:1:24: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
1 | main(c){for(;c=toupper(getchar()),printf(&c));}
| ^~~~~~~
main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
+++ |+#include <stdio.h>
1 | main(c){for(;c=toupper(getchar()),printf(&c));}
main.c:1:35: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | main(c){for(;c=toupper(getchar()),printf(&c));}
| ^~~~~~
main.c:1:35: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:35: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:35: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:42: error: passing argument 1 of 'printf' from incompatible pointer type [-Wincompatible-pointer-types]
1 | main(c){for(;c=toupper(getchar()),printf(&c));}
| ^~
| |
| int *
main.c:1:42: note: expected 'const char *' but argument is of type 'int *'
main.c:1:45: error: expected ';' before ')' token
1 | main(c){for(;c=toupper(getchar()),printf(&c));}
| ^
| ;
|
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: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
2 | import java.util.*;
| ^
main.c:3:1: error: unknown type name 'import'
3 | import java.math.*;
| ^~~~~~
main.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
3 | import java.math.*;
| ^
main.c:4:1: error: unknown type name 'import'
4 | import java.lang.*;
| ^~~~~~
main.c:4:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
4 | import java.lang.*;
| ^
main.c:5:1: error: unknown type name 'public'
5 | public class Main {
| ^~~~~~
main.c:5:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
5 | public class Main {
| ^~~~
|
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 0;
}
|
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)) {
| ^~~~
| fgets
|
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)) {
| ^~~~
| fgets
|
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 for each function it appears in
main.c:13:20: error: expected ';' before 'a'
13 | c%s'a' - 'A';
| ^~~
| ;
|
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)
4 | for(i=0;s[i];i++)putchar(s[i]>='a'&&s[i]<='z'?s[i]+'A'-'a':s[i]);
| ^
main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:18: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
4 | for(i=0;s[i];i++)putchar(s[i]>='a'&&s[i]<='z'?s[i]+'A'-'a':s[i]);
| ^~~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar'
+++ |+#include <stdio.h>
1 | void main(n){
main.c:5:1: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
5 | puts("");
| ^~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'puts'
|
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)
4 | for(i=0;s[i];i++)putchar(s[i]>='a'&&s[i]<='z'?s[i]+'A'-'a':s[i]);
| ^
main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:18: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
4 | for(i=0;s[i];i++)putchar(s[i]>='a'&&s[i]<='z'?s[i]+'A'-'a':s[i]);
| ^~~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar'
+++ |+#include <stdio.h>
1 | int main(n){
main.c:5:1: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
5 | puts("");
| ^~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'puts'
|
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)
4 | for(i=0;s[i];i++)putchar(s[i]>='a'&&s[i]<='z'?s[i]+'A'-'a':s[i]);
| ^
main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:18: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
4 | for(i=0;s[i];i++)putchar(s[i]>='a'&&s[i]<='z'?s[i]+'A'-'a':s[i]);
| ^~~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar'
+++ |+#include <stdio.h>
1 | int main(n){
main.c:5:1: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
5 | puts("");
| ^~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'puts'
|
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 at end of input
20 | }
| ^
|
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(scanf("%c" ,&s)!=EOF)printf("%c",toupper(s));return 0;}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main(){ char s; while(scanf("%c" ,&s)!=EOF)printf("%c",toupper(s));return 0;}
main.c:1:23: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | main(){ char s; while(scanf("%c" ,&s)!=EOF)printf("%c",toupper(s));return 0;}
| ^~~~~
main.c:1:23: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:40: error: 'EOF' undeclared (first use in this function)
1 | main(){ char s; while(scanf("%c" ,&s)!=EOF)printf("%c",toupper(s));return 0;}
| ^~~
main.c:1:40: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:1:40: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:44: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | main(){ char s; while(scanf("%c" ,&s)!=EOF)printf("%c",toupper(s));return 0;}
| ^~~~~~
main.c:1:44: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:44: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:44: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:56: error: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
1 | main(){ char s; while(scanf("%c" ,&s)!=EOF)printf("%c",toupper(s));return 0;}
| ^~~~~~~
main.c:1:1: note: include '<ctype.h>' or provide a declaration of 'toupper'
+++ |+#include <ctype.h>
1 | main(){ char s; while(scanf("%c" ,&s)!=EOF)printf("%c",toupper(s));return 0;}
|
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 file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
714 | extern int puts (const char *__s);
| ^~~~
|
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.c:4:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
4 | while(scanf("%c",&a)!=EOF)
| ^~~~~
main.c:4:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:31: error: 'EOF' undeclared (first use in this function)
4 | while(scanf("%c",&a)!=EOF)
| ^~~
main.c:4:31: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:4:31: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:25: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
6 | printf("%c",a-'a'+'A');
| ^~~~~~
main.c:6:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
8 | printf("%c",a);
| ^~~~~~
main.c:8:25: note: include '<stdio.h>' or provide a declaration of 'printf'
|
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 <= i;j++)printf("%c", str[j]);
printf("\n");
return 0;
}
|
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 included from /usr/include/stdio.h:47,
from main.c:2:
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:28:43: error: unknown type name 'size_t'
28 | size_t __nbytes);
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:1:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
+++ |+#include <stddef.h>
1 | /* Copyright (C) 1991-2025 Free Software Foundation, Inc.
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:37:44: error: unknown type name 'size_t'
37 | size_t __nbytes);
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:37:44: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:57:3: error: unknown type name 'cookie_read_function_t'; did you mean 'cookie_seek_function_t'?
57 | cookie_read_function_t *read; /* Read bytes. */
| ^~~~~~~~~~~~~~~~~~~~~~
| cookie_seek_function_t
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:58:3: error: unknown type name 'cookie_write_function_t'; did you mean 'cookie_close_function_t'?
58 | cookie_write_function_t *write; /* Write bytes. */
| ^~~~~~~~~~~~~~~~~~~~~~~
| cookie_close_function_t
/usr/include/stdio.h:314:35: error: unknown type name 'size_t'
314 | extern FILE *fmemopen (void *__s, size_t __len, const char *__modes)
| ^~~~~~
/usr/include/stdio.h:130:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
129 | #include <bits/stdio_lim.h>
+++ |+#include <stddef.h>
130 |
/usr/include/stdio.h:320:47: error: unknown type name 'size_t'
320 | extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW
| ^~~~~~
/usr/include/stdio.h:320:47: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:340:34: error: unknown type name 'size_t'
340 | int __modes, size_t __n) __THROW __nonnull ((1));
| ^~~~~~
/usr/include/stdio.h:340:34: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:346:24: error: unknown type name 'size_t'
346 | size_t __size) __THROW __nonnull ((1));
| ^~~~~~
/usr/include/stdio.h:346:24: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:385:44: error: unknown type name 'size_t'
385 | extern int snprintf (char *__restrict __s, size_t __maxlen,
| ^~~~~~
/usr/include/stdio.h:385:44: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:389:45: error: unknown type name 'size_t'
389 | extern int vsnprintf (char *__restrict __s, size_t __maxlen,
| ^~~~~~
/usr/include/stdio.h:389:45: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:690:30: error: unknown type name 'size_t'
690 | size_t *__restrict __n, int __delimiter,
| ^~~~~~
/usr/include/stdio.h:690:30: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:693:28: error: unknown type name 'size_t'
693 | size_t *__restrict __n, int __delimiter,
| ^~~~~~
/usr/include/stdio.h:693:28: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:698:27: error: unknown type name 'size_t'
698 | size_t *__restrict __n,
| ^~~~~~
/usr/include/stdio.h:698:27: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:728:8: error: unknown type name 'size_t'
728 | extern size_t fread (void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:728:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:728:46: error: unknown type name 'size_t'
728 | extern size_t fread (void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:728:46: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:729:22: error: unknown type name 'size_t'
729 | size_t __n, FILE *__restrict __stream) __wur
| ^~~~~~
/usr/include/stdio.h:729:22: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:735:8: error: unknown type name 'size_t'
735 | extern size_t fwrite (const void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:735:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:735:53: error: unknown type name 'size_t'
735 | extern size_t fwrite (const void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:735:53: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:736:23: error: unknown type name 'size_t'
736 | size_t __n, FILE *__restrict __s) __nonnull((4));
| ^~~~~~
/usr/include/stdio.h:736:23: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:756:8: error: unknown type name 'size_t'
756 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:756:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:756:55: error: unknown type name 'size_t'
756 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:756:55: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:757:31: error: unknown type name 'size_t'
757 | size_t __n, FILE *__restrict __stream) __wur
| ^~~~~~
/usr/include/stdio.h:757:31: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:759:8: error: unknown type name 'size_t'
759 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:759:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:759:62: error: unknown type name 'size_t'
759 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:759:62: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:760:32: error: unknown type name 'size_t'
760 | size_t __n, FILE *__restrict __stream)
| ^~~~~~
/usr/include/stdio.h:760:32: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
|
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 <= i;j++)printf("%c", str[j]);
printf("\n");
return 0;
}
|
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 included from /usr/include/stdio.h:47,
from main.c:2:
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:28:43: error: unknown type name 'size_t'
28 | size_t __nbytes);
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:1:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
+++ |+#include <stddef.h>
1 | /* Copyright (C) 1991-2025 Free Software Foundation, Inc.
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:37:44: error: unknown type name 'size_t'
37 | size_t __nbytes);
| ^~~~~~
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:37:44: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:57:3: error: unknown type name 'cookie_read_function_t'; did you mean 'cookie_seek_function_t'?
57 | cookie_read_function_t *read; /* Read bytes. */
| ^~~~~~~~~~~~~~~~~~~~~~
| cookie_seek_function_t
/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:58:3: error: unknown type name 'cookie_write_function_t'; did you mean 'cookie_close_function_t'?
58 | cookie_write_function_t *write; /* Write bytes. */
| ^~~~~~~~~~~~~~~~~~~~~~~
| cookie_close_function_t
/usr/include/stdio.h:314:35: error: unknown type name 'size_t'
314 | extern FILE *fmemopen (void *__s, size_t __len, const char *__modes)
| ^~~~~~
/usr/include/stdio.h:130:1: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
129 | #include <bits/stdio_lim.h>
+++ |+#include <stddef.h>
130 |
/usr/include/stdio.h:320:47: error: unknown type name 'size_t'
320 | extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW
| ^~~~~~
/usr/include/stdio.h:320:47: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:340:34: error: unknown type name 'size_t'
340 | int __modes, size_t __n) __THROW __nonnull ((1));
| ^~~~~~
/usr/include/stdio.h:340:34: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:346:24: error: unknown type name 'size_t'
346 | size_t __size) __THROW __nonnull ((1));
| ^~~~~~
/usr/include/stdio.h:346:24: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:385:44: error: unknown type name 'size_t'
385 | extern int snprintf (char *__restrict __s, size_t __maxlen,
| ^~~~~~
/usr/include/stdio.h:385:44: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:389:45: error: unknown type name 'size_t'
389 | extern int vsnprintf (char *__restrict __s, size_t __maxlen,
| ^~~~~~
/usr/include/stdio.h:389:45: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:690:30: error: unknown type name 'size_t'
690 | size_t *__restrict __n, int __delimiter,
| ^~~~~~
/usr/include/stdio.h:690:30: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:693:28: error: unknown type name 'size_t'
693 | size_t *__restrict __n, int __delimiter,
| ^~~~~~
/usr/include/stdio.h:693:28: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:698:27: error: unknown type name 'size_t'
698 | size_t *__restrict __n,
| ^~~~~~
/usr/include/stdio.h:698:27: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:728:8: error: unknown type name 'size_t'
728 | extern size_t fread (void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:728:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:728:46: error: unknown type name 'size_t'
728 | extern size_t fread (void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:728:46: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:729:22: error: unknown type name 'size_t'
729 | size_t __n, FILE *__restrict __stream) __wur
| ^~~~~~
/usr/include/stdio.h:729:22: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:735:8: error: unknown type name 'size_t'
735 | extern size_t fwrite (const void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:735:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:735:53: error: unknown type name 'size_t'
735 | extern size_t fwrite (const void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:735:53: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:736:23: error: unknown type name 'size_t'
736 | size_t __n, FILE *__restrict __s) __nonnull((4));
| ^~~~~~
/usr/include/stdio.h:736:23: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:756:8: error: unknown type name 'size_t'
756 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:756:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:756:55: error: unknown type name 'size_t'
756 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:756:55: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:757:31: error: unknown type name 'size_t'
757 | size_t __n, FILE *__restrict __stream) __wur
| ^~~~~~
/usr/include/stdio.h:757:31: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:759:8: error: unknown type name 'size_t'
759 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:759:8: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:759:62: error: unknown type name 'size_t'
759 | extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size,
| ^~~~~~
/usr/include/stdio.h:759:62: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
/usr/include/stdio.h:760:32: error: unknown type name 'size_t'
760 | size_t __n, FILE *__restrict __stream)
| ^~~~~~
/usr/include/stdio.h:760:32: note: 'size_t' is defined in header '<stddef.h>'; this is probably fixable by adding '#include <stddef.h>'
|
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-function-declaration]
1 | main(c){for(;~scanf("%c",&c);c=!printf("%c",c-(c>96)*32);)}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main(c){for(;~scanf("%c",&c);c=!printf("%c",c-(c>96)*32);)}
main.c:1:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | main(c){for(;~scanf("%c",&c);c=!printf("%c",c-(c>96)*32);)}
| ^~~~~
main.c:1:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:33: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | main(c){for(;~scanf("%c",&c);c=!printf("%c",c-(c>96)*32);)}
| ^~~~~~
main.c:1:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:33: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:57: error: expected ')' before ';' token
1 | main(c){for(;~scanf("%c",&c);c=!printf("%c",c-(c>96)*32);)}
| ~ ^
| )
main.c:1:59: error: expected expression before '}' token
1 | main(c){for(;~scanf("%c",&c);c=!printf("%c",c-(c>96)*32);)}
| ^
|
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-function-declaration]
1 | main(c){for(;~scanf("%c",&c);c=!printf("%c",c-(c>96)*32))}
| ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 | main(c){for(;~scanf("%c",&c);c=!printf("%c",c-(c>96)*32))}
main.c:1:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | main(c){for(;~scanf("%c",&c);c=!printf("%c",c-(c>96)*32))}
| ^~~~~
main.c:1:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:33: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | main(c){for(;~scanf("%c",&c);c=!printf("%c",c-(c>96)*32))}
| ^~~~~~
main.c:1:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:33: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:33: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:58: error: expected expression before '}' token
1 | main(c){for(;~scanf("%c",&c);c=!printf("%c",c-(c>96)*32))}
| ^
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.