submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s144389459 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char c(getchar());
while(c>'z'||ch<'a')
c=getchar();
while(c==','||(c<='z'&&c>='a'))
{
if(ch==',')
cout<<" ";
else
cout<<c;
ch=getchar();
}
} | a.cc: In function 'int main()':
a.cc:6:18: error: 'ch' was not declared in this scope; did you mean 'c'?
6 | while(c>'z'||ch<'a')
| ^~
| c
a.cc:10:12: error: 'ch' was not declared in this scope; did you mean 'c'?
10 | if(ch==',')
| ^~
... |
s485897211 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char c[100001],i=0;
while(ch<'a'||ch>'z')
{
cin>>c[i];
i++;
}
while((ch>='a'&&ch<='z')||ch==',')
{
if(ch==',')
cout<<" ";
else
cout<<c[i];
}
} | a.cc: In function 'int main()':
a.cc:6:11: error: 'ch' was not declared in this scope; did you mean 'c'?
6 | while(ch<'a'||ch>'z')
| ^~
| c
a.cc:11:12: error: 'ch' was not declared in this scope; did you mean 'c'?
11 | while((ch>='a'&&ch<='z')||ch==',')
| ... |
s213947501 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str;
for (size_t i = 0;i < str.size();i++)
if (str != ',') cout << str[i];
else cout << ' ';
return 0;
} | a.cc: In function 'int main()':
a.cc:7:17: error: no match for 'operator!=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
7 | if (str != ',') cout << str[i];
| ~~~ ^~ ~~~
| | |
| | char
| ... |
s907940778 | p03834 | C++ | #include <stdio.h>
char c[20]
int main()
{
int i;
while(~scanf("%s",c))
{
c[5]=' ';
c[13]=' ';
printf("%s\n",c);
}
return 0;
} | a.cc:3:1: error: expected initializer before 'int'
3 | int main()
| ^~~
|
s611393597 | p03834 | C++ | #include<stdio.h>
int main()
{
char s[23];
gets(s);
s[5]=' ';
s[13]=' ';
printf("%s",s);
return 0;
} | a.cc: In function 'int main()':
a.cc:5:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
5 | gets(s);
| ^~~~
| getw
|
s051638817 | p03834 | C++ | #include <stdio.h>
int main()
{
char s[19];
gets(s);
s[5]=' ';
s[13]=' ';
printf("%s",s);
return 0;
} | a.cc: In function 'int main()':
a.cc:5:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
5 | gets(s);
| ^~~~
| getw
|
s299602406 | p03834 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
int i;
char ch[20];
gets(ch);
for(i=0;ch[i]!='\0';i++)
{
int j,word=0;
if(ch[i]==',')
{
word=1;
j=i;
ch[j]=' ';
}
}
printf("%s\n",ch);
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(ch);
| ^~~~
| getw
|
s805120520 | p03834 | C++ | #include<stdio.h>
int main()
{
int i;
char ch[20];
gets(ch);
for(i=0;ch[i]!='\0';i++)
{
int j,word=0;
if(ch[i]==',')
{
word=1;
j=i;
ch[j]=' ';
}
}
printf("%s\n",ch);
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(ch);
| ^~~~
| getw
|
s871283045 | p03834 | C++ | #include<cstdio>
#include<cstring>
int main(){
char a[22];
while(gets(a)!=NULL){
int n=strlen(a);
for(int i=0;i<n;i++){
if(a[i]==','){
printf(" ");
}
else
printf("%c",a[i]);
}
puts("");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:5:15: error: 'gets' was not declared in this scope; did you mean 'getw'?
5 | while(gets(a)!=NULL){
| ^~~~
| getw
|
s818305872 | p03834 | C++ | #include<stdio.h>
int main()
{
int i;
char a[23];
gets(a);
for(i=0;i<19;i++)
{
if(a[i]==',')a[i]=' ';
}
for(i=0;i<19;i++)
printf("%c",a[i]);
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:17: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(a);
| ^~~~
| getw
|
s763677385 | p03834 | C++ | #include<stdio.h>
int main()
{
char str[25];
gets(str);
str[5]=' ';
str[13]=' ';
puts(str);
return 0;
} | a.cc: In function 'int main()':
a.cc:5:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
5 | gets(str);
| ^~~~
| getw
|
s915476683 | p03834 | C++ | #include<cstdio>
#include<cstring>
int main(){
char a[25];
gets(a);
a[5]=' ';
a[13]=' ';
puts(a);
return 0;
} | a.cc: In function 'int main()':
a.cc:5:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
5 | gets(a);
| ^~~~
| getw
|
s211331853 | p03834 | C++ | #include<cstdio>
int main(){
char a[25];
gets(a);
a[5]=' ';
a[13]=' ';
puts(a);
return 0;
} | a.cc: In function 'int main()':
a.cc:4:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
4 | gets(a);
| ^~~~
| getw
|
s378693510 | p03834 | C++ | #include<iostream>
#include<string.h>
#include<stdlib.h>
#include<cstdio>
using namespace std;
int main()
{
char s[20];
gets(s);
for(int i=0;i<19;i++)
{
if(s[i]==',')
s[i]=' ';
}
puts(s);
cout<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(s);
| ^~~~
| getw
|
s356928174 | p03834 | C++ | #include<iostream>
#include<string.h>
using namespace std;
int main()
{
char s[20];
gets(s);
for(int i=0;i<19;i++)
{
if(s[i]==',')
s[i]=' ';
}
puts(s);
cout<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(s);
| ^~~~
| getw
|
s169260245 | p03834 | C++ | #include <iostream>
#include <cstdio>
#include <cstring>
char s[100] , b[100];
int main()
{
gets(s);
int l = strlen(s);
for(int i = 0; i < l; i++)
{
if(s[i] == ',')
{
b[i] = ' ';
continue;
}
b[i] = s[i];
}
puts(b);
return 0;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(s);
| ^~~~
| getw
|
s347683171 | p03834 | C++ | #include <iostream>
#include <cstdio>
#include <cstring>
int main()
{
char s[100] , b[100];
gets(s);
int l = strlen(s);
for(int i = 0; i < l; i++)
{
if(s[i] == ',')
{
b[i] = ' ';
continue;
}
b[i] = s[i];
}
puts(b);
return 0;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(s);
| ^~~~
| getw
|
s237731458 | p03834 | C++ | #include<stdio.h>
int main()
{
char a;
while((a = getchar())!='\n'){
if(a >='a' && a <= 'z')
putchar(a);
}
cout << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:9: error: 'cout' was not declared in this scope
10 | cout << endl;
| ^~~~
a.cc:10:17: error: 'endl' was not declared in this scope
10 | cout << endl;
| ^~~~
|
s880805826 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const ll INF = 1LL<<29;
const ll mod = 1e9+7;
#define rep(i, a, b) for(ll (i) = (a); (i) < (b);++i)
ll gcd(ll x, ll y)
{
if (x % y == 0)
{
return y;
... | a.cc: In function 'int main()':
a.cc:27:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
27 | s[5] = " ";
| ^~~
| |
| const char*
a.cc:28:11: error: invalid conversion fro... |
s274362130 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string h;
h.i(5)=' ';
h.i(13)=' ';
cout<<h<<endl;
} | a.cc: In function 'int main()':
a.cc:5:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'i'
5 | h.i(5)=' ';
| ^
a.cc:6:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'i'
6 | h.i(13)=' ';
| ^
|
s091301565 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string s;
cin s;
s[5] = " ", s[13] = " ";
cout << s << end;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 's'
7 | cin s;
| ^~
| ;
a.cc:8:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
8 | s[5] = " ", s[13] = " ";
... |
s780212209 | p03834 | Java | package atc1;
import java.util.*;
public class main {
public static void main(String args) {
int cnt = 0;
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
int S = sc.nextInt();
for(int i = 0; i < K; i++) {
for(int j = 0; j < K; j++) {
for(int k = 0; k < K; k++) {
if(i + j + k... | Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
^
1 error
|
s376839194 | p03834 | Java | import java.util.Scanner;
public class Haiku{
public static void main(String[] args)
{
Scanner sc =new Scanner(System.in);
String op=sc.next();
op=op.replace(","," ");
System.out.println(op);
}
} | Main.java:3: error: class Haiku is public, should be declared in a file named Haiku.java
public class Haiku{
^
1 error
|
s686025379 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char a[100];
gets(a);
for(int i=0;i<=4;i++)
cout<<a[i];
cout<<" ";
for(int i=6;i<=12;i++)
cout<<a[i];
cout<<" ";
for(int i=14;i<=18;i++)
cout<<a[i];
return 0;
} | a.cc: In function 'int main()':
a.cc:7:1: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s221232914 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
char a[100];
gets(a);
for(int i=0;i<=4;i++)
cout<<a[i];
cout<<" ";
for(int i=6;i<=12;i++)
cout<<a[i];
cout<<" ";
for(int i=14;i<=18;i++)
cout<<a[i];
return 0;
} | a.cc: In function 'int main()':
a.cc:7:1: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s706842123 | p03834 | C++ | use std::env;
use std::io::*;
use std::str::*;
fn read<T: FromStr>() -> T {
let stdin = stdin();
let s = stdin.bytes().map(|c| c.unwrap() as char)
.skip_while(|c| c.is_whitespace())
.take_while(|c| !c.is_whitespace())
.collect::<String>();
s.parse::<T>().ok().unwrap()
}
fn main() {... | a.cc:1:1: error: 'use' does not name a type
1 | use std::env;
| ^~~
a.cc:2:1: error: 'use' does not name a type
2 | use std::io::*;
| ^~~
a.cc:3:1: error: 'use' does not name a type
3 | use std::str::*;
| ^~~
a.cc:5:1: error: 'fn' does not name a type
5 | fn read<T: FromStr>() -> T {
... |
s672310104 | p03834 | C++ | #include<bits/stdc++.h>
#include<string>
using namespace std;
int main()
{ char s[100];
gets(s);
s[5]=' ';
s[13]=' ';
cout<<s;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(s);
| ^~~~
| getw
|
s533117091 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{ char s[100];
gets(s);
s[5]=' ';
s[13]=' ';
cout<<s;
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(s);
| ^~~~
| getw
|
s439571080 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{ char s[100];
gets(s);
s[5]=' ';
s[13]=' ';
cout<<s;
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(s);
| ^~~~
| getw
|
s690650612 | p03834 | C++ | #include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
char s[20];
while(gets(s))
{
s[5]=s[13]=' ';
puts(s);
}
return 0;
} | a.cc: In function 'int main()':
a.cc:11:15: error: 'gets' was not declared in this scope; did you mean 'getw'?
11 | while(gets(s))
| ^~~~
| getw
|
s392966764 | p03834 | C++ | #include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
char s[20];
while(gets(s))
{
s[5]=s[13]=' ';
puts(s);
}
return 0;
}
/*
1 2 3 4 5 6*/ | a.cc: In function 'int main()':
a.cc:11:15: error: 'gets' was not declared in this scope; did you mean 'getw'?
11 | while(gets(s))
| ^~~~
| getw
|
s702655176 | p03834 | C++ | #include<iostream>
#include<cstdio>
using namespace std;
int main()
{
char s[20];
gets(s);
s[5]=' ';
s[13]=' ';
puts(s);
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(s);
| ^~~~
| getw
|
s193585564 | p03834 | C++ | #include<cstdio>
#include<cstring>
#include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
const int MOD = 1e9+7;
const int MAX = 1e6+10;
const int INF = 0x3fffffff;
char s[MAX];
int main(){
gets(s);
int len=strlen(s);
for(int i=0;i<len;i++){
if(s[i]==' ') s[i]=',';
}
cout<<s<<endl;
return... | a.cc: In function 'int main()':
a.cc:14:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
14 | gets(s);
| ^~~~
| getw
|
s726469436 | p03834 | Java | import java.util.*;
public static void main(String[] atgs) {
Scanner scan = new Scanner(System.in);
int ans = 0;
int K = scan.nextInt();
int S = scan.nextInt();
for(int x = 0; x <= K; x++){
for(int y = 0; y <= K; y++){
int z = S - x - y;
if(0 <= z && z <= K){
ans = ans + 1;
}
}
}
... | Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] atgs) {
^
(use --enable-preview to enable unnamed classes)
1 error
|
s550266418 | p03834 | C++ | #include <iostream>
using namespace std;
int main()
{
string line;
getline(cin, line);
line.replace(",", " ");
cout << line << endl;
}
| a.cc: In function 'int main()':
a.cc:9:15: error: no matching function for call to 'std::__cxx11::basic_string<char>::replace(const char [2], const char [2])'
9 | line.replace(",", " ");
| ~~~~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++/14... |
s411923173 | p03834 | C++ | #include <iostream>
using namespace std;
int main()
{
string line;
getline(cin, line);
line.replace(',', ' ');
cout << line << endl;
} | a.cc: In function 'int main()':
a.cc:9:15: error: no matching function for call to 'std::__cxx11::basic_string<char>::replace(char, char)'
9 | line.replace(',', ' ');
| ~~~~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bits/locale_classes... |
s979241096 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char arr[25];
int i,n;
gets(arr);
n=strlen(arr);
for(i=0;i<n;i++){
if(arr[i]==',') arr[i]=' ';
}
printf("%s\n",arr);
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(arr);
| ^~~~
| getw
|
s968027999 | p03834 | C++ | #include <string>
#include <iostream>
using namespace std;
int main()
{
string s;
cin >> s;
for(auto itr = s.begin(); itr != s.end(); itr++)
{
if(*itr != ',')
{
cout << *itr;
}
else
{
cout << " ";
}
cout << endl;
} | a.cc: In function 'int main()':
a.cc:22:2: error: expected '}' at end of input
22 | }
| ^
a.cc:7:1: note: to match this '{'
7 | {
| ^
|
s256685716 | p03834 | C++ | s = input().split(',')
s = ' '.join(s)
print(s) | a.cc:1:1: error: 's' does not name a type
1 | s = input().split(',')
| ^
|
s792742040 | p03834 | C++ | s = input()
print(" ".join(s.split(","))) | a.cc:1:1: error: 's' does not name a type
1 | s = input()
| ^
|
s260962187 | p03834 | C++ | s = input()
print(" ".join(s.split(","))) | a.cc:1:1: error: 's' does not name a type
1 | s = input()
| ^
|
s707981818 | p03834 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string s;getline(cin,s);
s[6] = " " ; s[14] = " ";
cout << s << endl;
}
| a.cc: In function 'int main()':
a.cc:7:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
7 | s[6] = " " ; s[14] = " ";
| ^~~
| |
| const char*
a.cc:7:24: error: invalid co... |
s972284151 | p03834 | C++ | #include<cstdio>
#include<iostream>
int main(){
char c;
while(c=getchar()!='\n'){
if(c==',')
cout<<" ";
else
cout<<c;
}
cout<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
7 | cout<<" ";
| ^~~~
| std::cout
In file included from a.cc:2:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ... |
s542571487 | p03834 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(void){
// Your code here!
string s;
cin>>s;
for(int i;i<s.length();i++){
if (s[i] == ",") {
s[i] = " ";
}
}
cout<<s<<endl;
}
| a.cc: In function 'int main()':
a.cc:10:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | if (s[i] == ",") {
a.cc:11:20: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
11 | ... |
s483694966 | p03834 | C++ | happy,newyear,enjoy | a.cc:1:1: error: 'happy' does not name a type
1 | happy,newyear,enjoy
| ^~~~~
|
s373138185 | p03834 | C | #include <stdio.h>
int main(void) {
char d[20];
scanf("%s",&d);
for(int i=0;i<5;i++){
printf("%c",(char)d[i]);
}
printf(" ")
for(int i=0;i<7;i++){
printf("%c",(char)d[i+6]);
}
printf(" ")
for(int i=0;i<5;i++){
printf("%c",(char)d[i+14]);
}
printf("\n")
return 0;
} | main.c: In function 'main':
main.c:9:20: error: expected ';' before 'for'
9 | printf(" ")
| ^
| ;
10 | for(int i=0;i<7;i++){
| ~~~
|
s438046776 | p03834 | Java | import java.util.Scanner;
import java.util.StringTokenizer;
class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
StringTokenizer st = new StringTokenizer(s.next(), ",");
String a = st.nextToken();
String b = st.nextToken();
String c = st.nextToken();
Syste... | Main.java:11: error: ';' expected
System.out.println(a + " " + b + " " + c)
^
1 error
|
s687415079 | p03834 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
string s;
cin>>s;
s[5]='',s[13]='';
cout<<s<<endl;
return 0;
} | a.cc:8:14: error: empty character constant
8 | s[5]='',s[13]='';
| ^~
a.cc:8:23: error: empty character constant
8 | s[5]='',s[13]='';
| ^~
|
s063993200 | p03834 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
string s;
cin>>s;
s[5]='',s[13]=''
cout<<s<<endl;
return 0;
} | a.cc:8:14: error: empty character constant
8 | s[5]='',s[13]=''
| ^~
a.cc:8:23: error: empty character constant
8 | s[5]='',s[13]=''
| ^~
a.cc: In function 'int main()':
a.cc:8:25: error: expected ';' before 'cout'
8 | s[5]='',s[13]=''
... |
s738902329 | p03834 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string s;
cin >> s;
std::replace(s.begin(), s.end(), ',', ' ');
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:7:10: error: 'replace' is not a member of 'std'
7 | std::replace(s.begin(), s.end(), ',', ' ');
| ^~~~~~~
|
s007274315 | p03834 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string s;
cin >> s;
replace(s.begin(), s.end(), ',', ' ');
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'replace' was not declared in this scope
7 | replace(s.begin(), s.end(), ',', ' ');
| ^~~~~~~
|
s005213838 | p03834 | C++ | happy,newyear,enjoy | a.cc:1:1: error: 'happy' does not name a type
1 | happy,newyear,enjoy
| ^~~~~
|
s772956062 | p03834 | C | #include<stdio.h>
int main(void){
char s[17];
int i;
for(i=0;i<4;i++){
printf("%s"s[i]);
putchar(' ');
}
for(i<11;i++){
printf("%s"s[i]);
putchar(' ');
}
for(i<16;i++){
printf("%s"s[i]);
}
re... | main.c: In function 'main':
main.c:6:25: error: expected ')' before 's'
6 | printf("%s"s[i]);
| ~ ^
| )
main.c:9:20: error: expected ';' before ')' token
9 | for(i<11;i++){
| ^
| ;
mai... |
s686132913 | p03834 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string a;
cin>>a;
a[5]=' ';
a[13]=' ';
cout<<a<<endl;
} | a.cc:5:1: error: extended character is not valid in an identifier
5 | string a;
| ^
a.cc:5:1: error: extended character is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000\U00003000string' was not declared in this scope
5 | string a;
| ^~~~~~~~~~
a.cc:6... |
s565513663 | p03834 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
/*int a,b[100],c,d,e,f,max=0,min=100;
cin>>a>>b;
for(int i=0;i<b.size();i++){
if(b[i]==1){
c++;
}
if(b[i]==2){
d++;
}
if(b[i]==3){
e++;
}
if(b[i]==4){
f++;
}
}
if(max<c){
max=c;
}
if(max<d){
max=d;
}
if(max... | a.cc: In function 'int main()':
a.cc:49:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
49 | a[5]=" ";
| ^~~
| |
| const char*
a.cc:50:15: error: invali... |
s823361175 | p03834 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
/*int a,b[100],c,d,e,f,max=0,min=100;
cin>>a>>b;
for(int i=0;i<b.size();i++){
if(b[i]==1){
c++;
}
if(b[i]==2){
d++;
}
if(b[i]==3){
e++;
}
if(b[i]==4){
f++;
}
}
if(max<c){
max=c;
}
if(max<d){
max=d;
}
if(max... | a.cc: In function 'int main()':
a.cc:49:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
49 | a[5]=" ";
| ^~~
| |
| const char*
a.cc:50:15: error: invali... |
s952259570 | p03834 | C++ | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
string s;
int main(){
cin>>s;
s[6]=" ";
s[12]=" ";
cout<<s<<endl;
} | a.cc: In function 'int main()':
a.cc:8:6: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
8 | s[6]=" ";
| ^~~
| |
| const char*
a.cc:9:7: error: invalid conversion from 'const char*' to '... |
s615706483 | p03834 | C++ | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
string s;
int main(){
cin>>s
s[6]=" ";
s[12]=" ";
cout<<s<<endl;
} | a.cc: In function 'int main()':
a.cc:7:7: error: expected ';' before 's'
7 | cin>>s
| ^
| ;
8 | s[6]=" ";
| ~
a.cc:9:7: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
9 | s[12... |
s710494144 | p03834 | C++ | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
string s;
int main(){
cin>>s
string s[6]=" ";
string s[12]=" ";
cout<<s<<endl;
} | a.cc: In function 'int main()':
a.cc:7:7: error: expected ';' before 'string'
7 | cin>>s
| ^
| ;
8 | string s[6]=" ";
| ~~~~~~
a.cc:9:14: error: array must be initialized with a brace-enclosed initializer
9 | string s[12]=" ";
| ^~~
|
s775248334 | p03834 | C++ | #include <iostream>
#include <string>
using namespace std;
int main()
{
string s;
cin >> s;
std::replace(s.begin(), s.end(), ',', ' ');
cout << s << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:10: error: 'replace' is not a member of 'std'
9 | std::replace(s.begin(), s.end(), ',', ' ');
| ^~~~~~~
|
s246536156 | p03834 | C++ | #include <iostream>
#include <string>
using namespace std;
int main()
{
string s;
cin >> s;
replace(s.begin(), s.end(), ',', ' ');
cout << s << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:5: error: 'replace' was not declared in this scope
9 | replace(s.begin(), s.end(), ',', ' ');
| ^~~~~~~
|
s886999854 | p03834 | C++ | #include <iostream>
using namespace std;
int main()
{
string s;
cin >> s;
replace(s.begin(), s.end(), ',', ' ');
cout << s << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:5: error: 'replace' was not declared in this scope
8 | replace(s.begin(), s.end(), ',', ' ');
| ^~~~~~~
|
s912560549 | p03834 | C++ | #include <string>
using namespace std;
int main()
{
string A;
cin >> A;
for (int i = 0; i < 14; i++) {
if (A[i] == ',') {
A[i] = ' ';
}
}
cout << A << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
8 | cin >> A;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include <string>
+++ |+#include <iostream>
2 | using n... |
s619606313 | p03834 | C++ | ,.,.,.,.,.,>++++++[>+++++<-]>++.>,.,.,.,.,.,.,.,<.<,.,.,.,.,.>>>+++[>+++<-]>+. | a.cc:1:1: error: expected unqualified-id before ',' token
1 | ,.,.,.,.,.,>++++++[>+++++<-]>++.>,.,.,.,.,.,.,.,<.<,.,.,.,.,.>>>+++[>+++<-]>+.
| ^
a.cc:1:2: error: expected unqualified-id before '.' token
1 | ,.,.,.,.,.,>++++++[>+++++<-]>++.>,.,.,.,.,.,.,.,<.<,.,.,.,.,.>>>+++[>+++<-]>+.
| ^
|
s984366517 | p03834 | Java | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
//Scanner scan = new Scanner(System.in);
String[] str1 = line.split(",");
System.out.print(str1[0... | Main.java:6: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class BufferedReader
location: class Main
Main.java:6: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
... |
s003773441 | p03834 | Java | import java.util.*;
public class Main {
Scanner sc = new Scanner(System.in);
String[] a = sc.nextLine().split("");
for(int i = 0; i < a.length; i++){
if(",".equals(a[i])) a[i] = " ";
System.out.print(a[i]);
}
} | Main.java:5: error: illegal start of type
for(int i = 0; i < a.length; i++){
^
Main.java:5: error: > or ',' expected
for(int i = 0; i < a.length; i++){
^
Main.java:5: error: <identifier> expected
for(int i = 0; i < a.length; i++){
... |
s216047915 | p03834 | Java | public class Main {
Scanner sc = new Scanner(System.in);
String[] a = sc.nextLine().split("");
for(int i = 0; i < a.length; i++){
if(",".equals(a[i])) a[i] = " ";
System.out.print(a[i]);
}
} | Main.java:4: error: illegal start of type
for(int i = 0; i < a.length; i++){
^
Main.java:4: error: > or ',' expected
for(int i = 0; i < a.length; i++){
^
Main.java:4: error: <identifier> expected
for(int i = 0; i < a.length; i++){
... |
s218829616 | p03834 | Java | Scanner sc = new Scanner(System.in);
String[] a = sc.nextLine().split("");
for(int i = 0; i < a.length; i++){
if(",".equals(a[i])) a[i] = " ";
System.out.print(a[i]);
} | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner sc = new Scanner(System.in);
^
(use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
for(int i = 0; i < a.length; i++){
^
Main.java:3... |
s490952845 | p03834 | Java | Scanner sc = new Scanner("happy,newyear,enjoy");
String[] a = sc.nextLine().split("");
for(int i = 0; i < a.length; i++){
if(",".equals(a[i])) a[i] = " ";
System.out.print(a[i]);
} | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner sc = new Scanner("happy,newyear,enjoy");
^
(use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
for(int i = 0; i < a.length; i++){
^... |
s181619988 | p03834 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String[] a = sc.nextline().split(",");
for(String i : a){
System.out.print(a+" ");
}
}
} | Main.java:5: error: cannot find symbol
String[] a = sc.nextline().split(",");
^
symbol: method nextline()
location: variable sc of type Scanner
1 error
|
s385806501 | p03834 | Java | public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String a = sc.nextline().split(",");
for(String i : a){
System.out.print(a+" ");
}
} | Main.java:1: 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)
1 error
|
s941690556 | p03834 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String[] a = sc.nextline();
for(String i : a){
if(",".equals(a)) a[i] = " ";
System.out.print(a);
}
}
} | Main.java:5: error: cannot find symbol
String[] a = sc.nextline();
^
symbol: method nextline()
location: variable sc of type Scanner
Main.java:7: error: incompatible types: String cannot be converted to int
if(",".equals(a)) a[i] = " ";
^
2 errors
|
s221881274 | p03834 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String[] a = sc.nextline();
for(int i : a){
if(",".euals(a)) a[i] = " ";
System.out.print(a);
}
}
} | Main.java:5: error: cannot find symbol
String[] a = sc.nextline();
^
symbol: method nextline()
location: variable sc of type Scanner
Main.java:6: error: incompatible types: String cannot be converted to int
for(int i : a){
^
Main.java:7: error: cannot find symbol
if(",".euals... |
s060626624 | p03834 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String[] a = sc.nextline();
for(int i : a){
if(",".euals(a)) a[i] = " ";
System.out.print(a);
}
}
} | Main.java:5: error: cannot find symbol
String[] a = sc.nextline();
^
symbol: method nextline()
location: variable sc of type Scanner
Main.java:6: error: incompatible types: String cannot be converted to int
for(int i : a){
^
Main.java:7: error: cannot find symbol
if(",".euals... |
s977808278 | p03834 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String[] a = sc.nextline();
fot(int i : a){
if(",".euals(a)) a[i] = " ";
System.out.print(a);
}
}
} | Main.java:6: error: '.class' expected
fot(int i : a){
^
Main.java:6: error: not a statement
fot(int i : a){
^
Main.java:6: error: ';' expected
fot(int i : a){
^
3 errors
|
s920492407 | p03834 | C | #include <stdio.h>
int main(){
char a[19];
scanf("%s",a[19]);
for(i=0;i<=18;i++)
{
if(i==5||i==13){printf(" ");}
else{printf("%c",str[i]);}
}
return 0;
} | main.c: In function 'main':
main.c:6:7: error: 'i' undeclared (first use in this function)
6 | for(i=0;i<=18;i++)
| ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:23: error: 'str' undeclared (first use in this function)
9 | else{p... |
s354492204 | p03834 | C | #include <stdio.h>
int main(){
char a[19];
scanf("%s",&a[19]);
for(i=0;i<=18;i++)
{
if(i==5||i==13){printf(" ");}
else{printf("%c",str[i]);}
}
return 0;
} | main.c: In function 'main':
main.c:6:7: error: 'i' undeclared (first use in this function)
6 | for(i=0;i<=18;i++)
| ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:23: error: 'str' undeclared (first use in this function)
9 | else{p... |
s051686434 | p03834 | C++ |
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#define REP(i, n) for(int i = 0; i < (int)(n); ++i)
using namespace std;
typedef long long ll;
char buf[100];
int main(void) {
gets(buf);
buf[5] = buf[13] = ' ';
puts(buf);
return 0;
}
| a.cc: In function 'int main()':
a.cc:14:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
14 | gets(buf);
| ^~~~
| getw
|
s933141749 | p03834 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string s;
cin >> s;
for(int i=0;i<19;i++){
if(i==5 || i==13){
cout << ' ' << endl;
}else{
cout << s[i] << endl;
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:8: error: expected ')' before '\U0000ff5c\U0000ff5c'
9 | if(i==5 || i==13){
| ~ ^~~~~
| )
|
s262377011 | p03834 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string s;
cin >> s;
for(int i=0;i<19;i++){
if((i==5) ││ (i==13)){
cout << ' ' << endl;
}else{
cout << s[i] << endl;
}
}
return 0;
} | a.cc:9:11: error: extended character │ is not valid in an identifier
9 | if((i==5) ││ (i==13)){
| ^
a.cc:9:11: error: extended character │ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:10: error: expected ')' before '\U00002502\U00002502'
9 | if((i==5) ││ (i==13)){
|... |
s258771194 | p03834 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string s;
cin >> s;
for(int i=0;i<19;i++){
if(i==5 ┃┃ i==13){
cout << ' ' << endl;
}else{
cout << s[i] << endl;
}
}
return 0;
} | a.cc:9:9: error: extended character ┃ is not valid in an identifier
9 | if(i==5 ┃┃ i==13){
| ^
a.cc:9:9: error: extended character ┃ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:8: error: expected ')' before '\U00002503\U00002503'
9 | if(i==5 ┃┃ i==13){
| ~ ^~~
... |
s672449953 | p03834 | C++ | #include<iostream>
#include<string>
string s;
cin >> s;
for(int i=0;i<19;i++){
if(i==5 ┃┃ i==13){
cout << ' ' << endl;
}else{
cout << s[i] << endl;
}
}
return 0;
} | a.cc:8:9: error: extended character ┃ is not valid in an identifier
8 | if(i==5 ┃┃ i==13){
| ^
a.cc:8:9: error: extended character ┃ is not valid in an identifier
a.cc:4:1: error: 'string' does not name a type; did you mean 'stdin'?
4 | string s;
| ^~~~~~
| stdin
a.cc:5:1: error: 'cin'... |
s579635580 | p03834 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string S;
cin>>S;
S[5]=" ";
S[12]=" ";
cout<<S<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:6: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
8 | S[5]=" ";
| ^~~
| |
| const char*
a.cc:9:7: error: invalid conversion from 'const char*' to '... |
s117405900 | p03834 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string S;
cin>>S;
s[5]=" ";
s[12]=" ";
cout<<S<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:1: error: 's' was not declared in this scope
8 | s[5]=" ";
| ^
|
s860551746 | p03834 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string S;
cin>>S;
s[5]=’ ’;
s[13]=’ ’;
cout<<S<<endl;
return 0;
} | a.cc:8:6: error: extended character ’ is not valid in an identifier
8 | s[5]=’ ’;
| ^
a.cc:8:8: error: extended character ’ is not valid in an identifier
8 | s[5]=’ ’;
| ^
a.cc:9:7: error: extended character ’ is not valid in an identifier
9 | s[13]=’ ’;
| ^
a.cc:9:9: err... |
s773752504 | p03834 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string S;
cin>>S;
s[5]=’ ’,s[13]=’ ’;
cout<<S<<endl;
return 0;
} | a.cc:8:6: error: extended character ’ is not valid in an identifier
8 | s[5]=’ ’,s[13]=’ ’;
| ^
a.cc:8:8: error: extended character ’ is not valid in an identifier
8 | s[5]=’ ’,s[13]=’ ’;
| ^
a.cc:8:16: error: extended character ’ is not valid in an identifier
8 | s[5]=’ ’,s[13]=’ ’;... |
s440953645 | p03834 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string S;
cin>>S;
S[5]=` `;
S[12]=` `;
cout<<S<<endl;
return 0;
} | a.cc:8:6: error: stray '`' in program
8 | S[5]=` `;
| ^
a.cc:8:8: error: stray '`' in program
8 | S[5]=` `;
| ^
a.cc:9:7: error: stray '`' in program
9 | S[12]=` `;
| ^
a.cc:9:9: error: stray '`' in program
9 | S[12]=` `;
| ^
a.cc: In function 'int main(... |
s946912589 | p03834 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string S;
cin>>S;
S[5]=" ";
S[12]=" ";
cout<<S<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:6: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
8 | S[5]=" ";
| ^~~
| |
| const char*
a.cc:9:7: error: invalid conversion from 'const char*' to '... |
s476572134 | p03834 | C++ | #include<string>
#include<iostream>
using namespace std;
int main(){
string S;
cin >>S;
cout<<S.substr(1,5);
cout<<" ";
cout<<S.substr(7,7);
cout<<" ";
cout<<S.subst(15,5);
return 0;
} | a.cc: In function 'int main()':
a.cc:12:9: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'subst'; did you mean 'substr'?
12 | cout<<S.subst(15,5);
| ^~~~~
| substr
|
s517425096 | p03834 | C++ | #include<string>
#include<iostream>
using namespace std;
int main(){
string S;
cin >>S;
cout<<S.substr(1,5)<<;
cout<<" "<<;
cout<<S.substr(7,13)<<;
cout<<S.substr(15,19)<<;
cout<<" "<<;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:22: error: expected primary-expression before ';' token
8 | cout<<S.substr(1,5)<<;
| ^
a.cc:9:12: error: expected primary-expression before ';' token
9 | cout<<" "<<;
| ^
a.cc:10:23: error: expected primary-expression before ';' ... |
s460046370 | p03834 | C++ | #include<string>
#include<iostream>
using namespace std;
int main(){
string S;
cin >>S;
S[6]==" ";
S[14]==" ";
cout<<S<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | S[6]==" ";
a.cc:9:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | S[14]==" ";
|
s939200398 | p03834 | C++ | #include<string>
#include<iostream>
using namespace std;
int main(){
string S;
cin >>S;
S[6]==" ";
S[14]==" ";
cout<<S<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | S[6]==" ";
a.cc:9:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | S[14]==" ";
|
s777976108 | p03834 | C++ | #include<string>
using namespace std;
int main(){
string S;
cin >>S;
S[6]==" ";
S[14]==" ";
cout<<S<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
6 | cin >>S;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include<string>
+++ |+#include <iostream>
2 | using namespace std;
a.cc... |
s846203074 | p03834 | Java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.printlnsc.nextLine().replace(",", " "));
}
} | Main.java:6: error: ';' expected
System.out.printlnsc.nextLine().replace(",", " "));
^
1 error
|
s140255227 | p03834 | C++ | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <string>
#include <string.h>
typedef long long ll;
using namespace std;
const ll INF = 1000000000000000000ll;
const ll MOD = 1000000007ll;
const double EPS = 1e-8;
int ... | a.cc: In function 'int main()':
a.cc:25:25: error: cast from 'char*' to 'char' loses precision [-fpermissive]
25 | cout << (char)A << endl;
| ^~~~~~~
|
s412975215 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) for(int i=0;i<(n);i++)
#define VS vector<string>
#define ll long long int
int main(void) {
string s;
cin >> s;
REP(i,s.size()) {
if(s[i] = ",") cout << " ";
else cout << s[i];
}
... | a.cc: In function 'int main()':
a.cc:11:19: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
11 | if(s[i] = ",") cout << " ";
| ^~~
| |
| cons... |
s008919563 | p03834 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(void){
string s;
cin >> s;
replace(s.begin(), s.end(), ',', ' ' );
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:10:5: error: 'replace' was not declared in this scope
10 | replace(s.begin(), s.end(), ',', ' ' );
| ^~~~~~~
|
s681434260 | p03834 | C++ | #include <iostream>
#include <string>
int main(void){
std::string s;
std::cin >> s;
replace(s.begin(), s.end(), ',', ' ' );
std::cout << s << std::endl;
} | a.cc: In function 'int main()':
a.cc:8:5: error: 'replace' was not declared in this scope
8 | replace(s.begin(), s.end(), ',', ' ' );
| ^~~~~~~
|
s509015879 | p03834 | C++ | #include<stdio.h>
int main(){
char c;
for(int i=0; i < 19; i++ ){
scanf("%c",&c);
if(c == ',')putc(c);
else putc(' ');
}
} | a.cc: In function 'int main()':
a.cc:7:17: error: too few arguments to function 'int putc(int, FILE*)'
7 | if(c == ',')putc(c);
| ~~~~^~~
In file included from a.cc:1:
/usr/include/stdio.h:612:12: note: declared here
612 | extern int putc (int __c, FILE *__stream) __nonnull ((2));
| ... |
s087491987 | p03834 | C++ | #include "stdafx.h"
#include<iostream>
#include<string>
using namespace std;
using string = std::string;
int main()
{
string s;
std::cin >> s;
for(char var : s)
{
if (var == ',') std::cout << " ";
else std::cout << var;
}
std::cout << std::endl;
return 0;
}
| a.cc:1:10: fatal error: stdafx.h: No such file or directory
1 | #include "stdafx.h"
| ^~~~~~~~~~
compilation terminated.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.