submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s706375841 | p03834 | C++ | happy,newyear,enjoy | a.cc:1:1: error: 'happy' does not name a type
1 | happy,newyear,enjoy
| ^~~~~
|
s469341218 | p03834 | C++ | happy,newyear,enjoy | a.cc:1:1: error: 'happy' does not name a type
1 | happy,newyear,enjoy
| ^~~~~
|
s222519730 | p03834 | C++ | #include <bits/stdc++.h>
int main () {
string s; cin >> s;
for (int i = 0; i < s.size(); ++i) {
if (s[i] == ‘,’) {
s[i] = “ “;
}
}
cout << s << endl;
return 0;
} | a.cc:6:18: error: extended character ‘ is not valid in an identifier
6 | if (s[i] == ‘,’) {
| ^
a.cc:6:20: error: extended character ’ is not valid in an identifier
6 | if (s[i] == ‘,’) {
| ^
a.cc:7:16: error: extended character “ is not valid in an iden... |
s790383804 | p03834 | C++ | #include <bits/stdc++.h>
int main () {
for (int i = 0; i < 19; ++i) {
char c;
cin >> c;
if (c == ‘,’) {
cout << “ “;
} else {
cout << c;
}
cout << endl;
}
return 0;
} | a.cc:7:15: error: extended character ‘ is not valid in an identifier
7 | if (c == ‘,’) {
| ^
a.cc:7:17: error: extended character ’ is not valid in an identifier
7 | if (c == ‘,’) {
| ^
a.cc:8:17: error: extended character “ is not valid in an identifier
8... |
s777086221 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = (int)(0); i < (int)(n); ++i)
#define reps(i, n) for (int i = (int)(1); i <= (int)(n); ++i)
#define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--)
#define rreps(i, n) for (int i = ((int)(n)); i > 0; i--)
#define irep(i, m, n) for (int i =... | a.cc: In function 'int main()':
a.cc:131:12: error: 'a' was not declared in this scope
131 | replaces(a,',',' ');
| ^
a.cc:19:35: note: in definition of macro 'replaces'
19 | #define replaces(s, b, a) replace(s.begin(),s.end(), b, a);
| ^
|
s625763931 | p03834 | C++ | #include <bitss/stdc++.h>
using namespace std;
vector<string> split(string str, char del) {
int first = 0;
int last = str.find_first_of(del);
vector<string> result;
while (first < str.size()) {
string subStr(str, first, last - first);
result.push_back(subStr);
first = la... | a.cc:1:10: fatal error: bitss/stdc++.h: No such file or directory
1 | #include <bitss/stdc++.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
|
s537187189 | p03834 | C++ | #include <iostream >
#include <string >
using namespace std;
int main() {
string a;
string b;
cin >> a >> b;
int i = a.size();
int j = b.size();
if (i > j)
cout << "GREATER";
else if (i < j)
cout << "LESS";
else if (i = j)
for (int t = 0; t<i; t++){
if ((a.at(t)) > (b.at(t))) {
cout << "GREATER";
break... | a.cc:1:10: fatal error: iostream : No such file or directory
1 | #include <iostream >
| ^~~~~~~~~~~
compilation terminated.
|
s104098434 | p03834 | C++ |
#include<iostream>
using namespace std;
int main(){
string s[19];
for(int i=0;i<19;i++)
{cin>>s[i];
}
s[5]=' ';
s[13]=' ';
for(int i=0;i<19;i++)
{
if(s[i]!=,)
cout<<s[i];
}
return 0;
} | a.cc: In function 'int main()':
a.cc:14:18: error: expected primary-expression before ',' token
14 | if(s[i]!=,)
| ^
a.cc:14:19: error: expected primary-expression before ')' token
14 | if(s[i]!=,)
| ^
|
s750441170 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
chars[20];
cin>>s;
s[5]=' ';
s[13]=' ';
cout << s <<endl;
} | a.cc: In function 'int main()':
a.cc:4:4: error: 'chars' was not declared in this scope; did you mean 'char'?
4 | chars[20];
| ^~~~~
| char
a.cc:5:8: error: 's' was not declared in this scope
5 | cin>>s;
| ^
|
s502837952 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
vector<char>s(20);
cin>>s;
s.at(5)=" ";
s.at(13)=" ";
cout << s <<endl;
} | a.cc: In function 'int main()':
a.cc:5:6: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::vector<char>')
5 | cin>>s;
| ~~~^~~
| | |
| | std::vector<char>
| std::istream {aka std::basic_istream<char>}
In file includ... |
s617907038 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
s.at(5)=" ";
s.at(13)=" ";
cout << s <<endl;
} | a.cc: In function 'int main()':
a.cc:6:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
6 | s.at(5)=" ";
| ^~~
| |
| const char*
a.cc:7:12: error: invalid conversion f... |
s444663827 | p03834 | C++ | #include<iostream>
using namespace std;
int main(){
string x;
cin>>x;
s[5]=' ';
s[13]=' ';
cout<<x;
} | a.cc:7:6: warning: multi-character character constant [-Wmultichar]
7 | s[5]=' ';
| ^~~~
a.cc:8:7: warning: multi-character character constant [-Wmultichar]
8 | s[13]=' ';
| ^~~~
a.cc: In function 'int main()':
a.cc:7:1: error: 's' was not declared in this scope
7 | s[5]=' ';
... |
s714984362 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> s;
string.at(6) = ' ';
string.at(14) = ' ';
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:8:11: error: expected unqualified-id before '.' token
8 | string.at(6) = ' ';
| ^
a.cc:9:11: error: expected unqualified-id before '.' token
9 | string.at(14) = ' ';
| ^
|
s099495750 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
//long long
using ll = long long;
//出力系
#define print(x) cout << x << endl
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
// begin() end()
#define all(x) (x... | a.cc: In function 'int main()':
a.cc:35:8: error: conflicting declaration 'std::string S'
35 | string S;
| ^
a.cc:34:5: note: previous declaration as 'int S'
34 | int S;
| ^
a.cc:36:3: error: request for member 'at' in 'S', which is of non-class type 'int'
36 | S.at(5) = ' ';
| ^... |
s189120641 | p03834 | Java | mport java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String a = sc.nextLine();
String b = a.replaceAll(",", " ");
System.out.println(b);
}
}
| Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
|
s413683439 | p03834 | C++ | package E-Haiku;
import java.util.StringTokenizer;
import java.util.Scanner;
public class E-Haiku{
public static void main(String []args){
Scanner scan=new Scanner(System.in);
String s = scan.nextLine();
StringTokenizer s1= new StringTokenizer(s,",");
System.out.print(s1.nextToken()+" ");
System.out.prin... | a.cc:1:1: error: 'package' does not name a type
1 | package E-Haiku;
| ^~~~~~~
a.cc:2:1: error: 'import' does not name a type
2 | import java.util.StringTokenizer;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
3 | import... |
s866307949 | p03834 | C++ | #include <iostream >
using namespace std;
int main() {
char a[20];
cin >> a;
for (int i = 0; i < 20; i++) {
if (i == 5|| i == 13)
cout << " ";
else
cout << a[i];
}
} | a.cc:1:10: fatal error: iostream : No such file or directory
1 | #include <iostream >
| ^~~~~~~~~~~
compilation terminated.
|
s529992423 | p03834 | Java |
package E-Haiku;
import java.util.StringTokenizer;
import java.util.Scanner;
public class E-Haiku{
public static void main(String []args){
Scanner scan=new Scanner(System.in);
String s = scan.nextLine();
StringTokenizer s1= new StringTokenizer(s,",");
System.out.print(s1.nextToken()+" ");
System... | Main.java:2: error: ';' expected
package E-Haiku;
^
Main.java:6: error: '{' expected
public class E-Haiku{
^
2 errors
|
s277261595 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char x[7];
char y[5];
char z[7];
char s[1];
cin>>x>>s>>y>>s>>z;
cout<<x<<" "<<y<<" "<<z;
| a.cc: In function 'int main()':
a.cc:9:29: error: expected '}' at end of input
9 | cout<<x<<" "<<y<<" "<<z;
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s518878123 | p03834 | Java | import java.util.StringTokenizer;
import java.util.Scanner;
//import java.util.StringTokenizer;
//import javax.swing.JOptionPane;
public class E - Haiku{
public static void main(String []args){
Scanner scan=new Scanner(System.in);
String s = scan.nextLine();
StringTokenizer s1= new StringTokenizer(s,... | Main.java:7: error: '{' expected
public class E - Haiku{
^
1 error
|
s120571203 | p03834 | C++ |
import java.util.StringTokenizer;
import java.util.Scanner;
//import java.util.StringTokenizer;
//import javax.swing.JOptionPane;
public class E - Haiku{
public static void main(String []args){
Scanner scan=new Scanner(System.in);
String s = scan.nextLine();
StringTokenizer s1= new StringTokenizer(... | a.cc:3:1: error: 'import' does not name a type
3 | import java.util.StringTokenizer;
| ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
4 | import java.util.Scanner;
| ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-f... |
s167536281 | p03834 | Java |
import java.util.StringTokenizer;
import java.util.Scanner;
//import java.util.StringTokenizer;
//import javax.swing.JOptionPane;
public class Eman{
public static void main(String []args){
Scanner scan=new Scanner(System.in);
String s = scan.nextLine();
StringTokenizer s1= new StringTokenizer(s,",... | Main.java:10: error: class Eman is public, should be declared in a file named Eman.java
public class Eman{
^
1 error
|
s916614632 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{string s;cin>>s;
s[5]=" ";s[13]=" ";
cout<<s;
return 0;} | a.cc: In function 'int main()':
a.cc:5:6: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
5 | s[5]=" ";s[13]=" ";
| ^~~
| |
| const char*
a.cc:5:16: error: invalid conversion from 'const ... |
s362086907 | p03834 | C++ | #include<bits/stdc++>
using namespace std;
int main()
{string s;cin>>s;
s[5]=" ";s[13]=" ";
cout<<s;
return 0;} | a.cc:1:9: fatal error: bits/stdc++: No such file or directory
1 | #include<bits/stdc++>
| ^~~~~~~~~~~~~
compilation terminated.
|
s988717679 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{string s[19];cin>>s;
s[5]=" ";s[13]=" ";
cout<<s;
return 0;} | a.cc: In function 'int main()':
a.cc:4:18: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string [19]' {aka 'std::__cxx11::basic_string<char> [19]'})
4 | {string s[19];cin>>s;
| ~~~^~~
| | |
| ... |
s461692571 | p03834 | C++ | #include<bits/stdc++>
using namespace std;
int main()
{string s[19];cin>>s;
s[5]=" ";s[13]=" ";
cout<<s;
return 0;} | a.cc:1:9: fatal error: bits/stdc++: No such file or directory
1 | #include<bits/stdc++>
| ^~~~~~~~~~~~~
compilation terminated.
|
s537757127 | p03834 | C++ | #include<iostream>
using namespace std;
int main(){
string s[19];
cin>>s;
s[5]=' ';
s[13]=' ';
cout<<s<<"\n";
}
| a.cc: In function 'int main()':
a.cc:5:12: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string [19]' {aka 'std::__cxx11::basic_string<char> [19]'})
5 | cin>>s;
| ~~~^~~
| | |
| | std::string [19]... |
s356053299 | p03834 | C++ | #include<iostream>
using namespace std;
int main(){
string s[19];
s[5]=',';
s[13]=','
cin>>s;
cout<<s<<"\n";
} | a.cc: In function 'int main()':
a.cc:6:18: error: expected ';' before 'cin'
6 | s[13]=','
| ^
| ;
7 | cin>>s;
| ~~~
|
s617777661 | p03834 | C++ | #include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<cmath>
#include<cstdlib>
#include<tuple>
#define int long
using namespace std;
signed main() {
stirng S;
cin >> S;
S.at(5) = ' ';
S.at(13) = ' ';
cout << S << endl;
} | a.cc: In function 'int main()':
a.cc:12:9: error: 'stirng' was not declared in this scope
12 | stirng S;
| ^~~~~~
a.cc:13:16: error: 'S' was not declared in this scope
13 | cin >> S;
| ^
|
s204478543 | p03834 | C++ | #include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<cmath>
#include<cstdlib>
#include<tuple>
#define int long
using namespace std;
signed main() {
stirng S;
cin >> S;
S.at(5) = ' ';
S.at(13) = ' ';
cout << S << endl;
} | a.cc: In function 'int main()':
a.cc:12:9: error: 'stirng' was not declared in this scope
12 | stirng S;
| ^~~~~~
a.cc:13:16: error: 'S' was not declared in this scope
13 | cin >> S;
| ^
|
s112010798 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
s[5]=s[13]=" ";
cout<<s<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:16: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
7 | s[5]=s[13]=" ";
| ^~~
| |
| const char*
|
s887948952 | p03834 | C++ | #include<stdio.h>
#include<string.h>
int main(void)
{
char s[20];
int k,i;
scanf("%s",s);
k=strlen(s)-1;
i=0;
for(i=0;i<=k;i++) {
if(s[i]==','){
' '=',';
}
}
printf("%s\n",s);
return 0;
}
| a.cc: In function 'int main()':
a.cc:12:25: error: lvalue required as left operand of assignment
12 | ' '=',';
| ^~~
|
s135160658 | p03834 | Java | public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String haiku = scan.next();
System.out.println(haiku.replace(","," "));
scan.close();
}
} | Main.java:3: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s563545378 | p03834 | C++ | #include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
#include <cmath>
#include <vector>
#define rep(i, n) for(int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
int main() {
string s;
cin >> s;
s[5] = s[15] = " ";
cout << s;
cout << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:14:20: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
14 | s[5] = s[15] = " ";
| ^~~
| |
| const char*
|
s973593530 | p03834 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string s;
cin >> s;
cout << substr(0,5) << " " << substr(6,7) << " " << substr(14,5) << endl;
} | a.cc: In function 'int main()':
a.cc:11:11: error: 'substr' was not declared in this scope
11 | cout << substr(0,5) << " " << substr(6,7) << " " << substr(14,5) << endl;
| ^~~~~~
|
s837321366 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
cout<<regex_replace(s,regex(",")," ")<<endl; | a.cc: In function 'int main()':
a.cc:6:47: error: expected '}' at end of input
6 | cout<<regex_replace(s,regex(",")," ")<<endl;
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s595662173 | p03834 | C++ | use std::io::*;
fn main(){
let mut s : String = input();
s = s.replace(",", " ");
println!("{}", s);
}
fn input<T>() -> T
where
T: std::str::FromStr,
{
let stdin = std::io::stdin();
let token: String = stdin
.lock()
.bytes()
.map(|c| c.unwrap() as char)
.skip_wh... | a.cc:1:1: error: 'use' does not name a type
1 | use std::io::*;
| ^~~
a.cc:3:1: error: 'fn' does not name a type
3 | fn main(){
| ^~
a.cc:9:1: error: 'fn' does not name a type
9 | fn input<T>() -> T
| ^~
|
s859539176 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mp make_pair
#define pll pair<ll,ll>
#define INF LLONG_MAX
#define PI acos(-1)
#define MOD 1e9 + 7
#define fir first
#define sec second
#define all(x) x.begin(),x.end()
#define mem(a,b) memset(a,b,sizeof(a))
#define rep(... | a.cc: In function 'int main()':
a.cc:28:2: error: expected '}' at end of input
28 | }
| ^
a.cc:17:1: note: to match this '{'
17 | {
| ^
|
s034765681 | p03834 | Java | s = input()
print(s.replace(',', ' ')) | Main.java:1: error: class, interface, enum, or record expected
s = input()
^
1 error
|
s993363298 | p03834 | C | #include<stdio.h>
int main(){
int s,k,a,b,c,cnt=0;
scanf("%d%d", &s, &k);
for(a=0; a<=k; a++){
for(b=0; b<=k; b++){
c=s-a-b;
if(c<=k && c>=0){
cnt+=1;
}
}
}
}
}
printf("%d\n",cnt);
} | main.c:14:3: error: expected identifier or '(' before '}' token
14 | }
| ^
main.c:15:10: error: expected declaration specifiers or '...' before string constant
15 | printf("%d\n",cnt);
| ^~~~~~
main.c:15:17: error: unknown type name 'cnt'; did you mean 'int'?
15 | printf("%d\n",cnt... |
s098561636 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin >> s;
s[5] = " ";
s[13]= " ";
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[5] = " ";
| ^~~
| |
| const char*
a.cc:8:10: error: invalid conversion from ... |
s943469357 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c;
cin >>a>>','>>b>>','>>c;
cout<<a<<b<<c;
} | a.cc: In function 'int main()':
a.cc:6:12: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and 'char')
6 | cin >>a>>','>>b>>','>>c;
| ~~~~~~~^~~~~
| | |
| | char
| std::basic_istream<char>
In file included from /usr/include... |
s311265096 | p03834 | C | #include <stdio.h>
#include <string.h>
int main(){
char s[20],a[6],b[8],c[6];
scanf("%s",s);
strncpy(a,s,5);
a[5]='\0'
strncpy(b,&s[7],7);
b[7]='\0';
strncpy(c,&s[15],5);
c[5]='\0';
printf("%s %s %s",a,b,c);
return 0;
} | main.c: In function 'main':
main.c:7:12: error: expected ';' before 'strncpy'
7 | a[5]='\0'
| ^
| ;
8 | strncpy(b,&s[7],7);
| ~~~~~~~
|
s575634155 | p03834 | C++ | #include <iostream>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <array>
#include <cfloat>
using namespace std;
int main (){
string a;
cin >> a;
a[6]=' ';
a[14]' ';
cout << a;
} | a.cc: In function 'int main()':
a.cc:12:6: error: expected ';' before '\x20'
12 | a[14]' ';
| ^~~
| ;
a.cc:12:5: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](size_type) [with _Ch... |
s013939665 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s[19];
cin >> s;
for (int i=0;i<19;i++){
if (s[i]==','){
s[i]=' ';
}
}
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:5:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string [19]' {aka 'std::__cxx11::basic_string<char> [19]'})
5 | cin >> s;
| ~~~ ^~ ~
| | |
| | std::string [19] {aka std::__cxx1... |
s756900176 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s[19];
for (int i=0;i<19;i++){
if (s[i]==','){
s[i]=' ';
}
}
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:6:13: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
6 | if (s[i]==','){
| ~~~~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::bas... |
s150756532 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)
int main() {
string x;
cin >> x;
cout << x.substr(0, 5) <<" "<<x.substr(6, 7)<<" "<<x.substr(14, 5) endl;
} | a.cc: In function 'int main()':
a.cc:12:73: error: expected ';' before 'endl'
12 | cout << x.substr(0, 5) <<" "<<x.substr(6, 7)<<" "<<x.substr(14, 5) endl;
| ^~~~~
| ... |
s417850148 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
for(int i=0;i<s.size();i++){
if(i==5||i==12||i==19){
cout<<" "<<endl;
}
else{
cout<<s.at(i)<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:15:4: error: expected '}' at end of input
15 | }
| ^
a.cc:3:11: note: to match this '{'
3 | int main(){
| ^
|
s101420788 | p03834 | C++ | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main() {
char c[100];
scanf("%s", c);
for(int i = 0; i < strlen(c), i++) {
if(c[i] == ',') {
c[i] = ' ';
}
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:38: error: expected ';' before ')' token
10 | for(int i = 0; i < strlen(c), i++) {
| ^
| ;
|
s717470573 | p03834 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string input_str;
cin >> input_str;
input_str[5] = ' ', input_str[13] = '';
cout << input_str << endl;
return 0;
}
| a.cc:10:41: error: empty character constant
10 | input_str[5] = ' ', input_str[13] = '';
| ^~
|
s494137650 | p03834 | C++ | int main(){
string input_str;
cin >> input_str;
input_str[5] = ' ', input_str[13] = '';
cout << input_str << endl;
return 0;
}
| a.cc:6:41: error: empty character constant
6 | input_str[5] = ' ', input_str[13] = '';
| ^~
a.cc: In function 'int main()':
a.cc:2:5: error: 'string' was not declared in this scope
2 | string input_str;
| ^~~~~~
a.cc:4:5: error: 'cin' was not decla... |
s217033684 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s; cin>>s;
s[5] = " ";
s[13] = " ";
cout<<s<<endl;
} | a.cc: In function 'int main()':
a.cc:6:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
6 | s[5] = " ";
| ^~~
| |
| const char*
a.cc:7:11: error: invalid conversion from ... |
s283370082 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int n,s,ct=0;
int main()
{
cin>>n>>s;
for(int i=0;i<=n;i++) {
for(int j=0;j<=n;j++) {
int p = s-i-j;
if(p >= 0 && p <= n) {
ct++;
}
cout<<ct<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:15:2: error: expected '}' at end of input
15 | }
| ^
a.cc:7:27: note: to match this '{'
7 | for(int i=0;i<=n;i++) {
| ^
a.cc:15:2: error: expected '}' at end of input
15 | }
| ^
a.cc:5:1: note: to match this '{'
5 | {
... |
s485044723 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
stirng s;
cin>>s;
for(int i=0;s[i];i++){
if(s[i]==',')s[i]=' ';
cout<<s[i];
}
cout<<endl;
} | a.cc: In function 'int main()':
a.cc:4:1: error: 'stirng' was not declared in this scope
4 | stirng s;
| ^~~~~~
a.cc:5:6: error: 's' was not declared in this scope
5 | cin>>s;
| ^
|
s904120497 | p03834 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(void){
string s;
cin >> s;
s[5] = " ";
s[13] = " ";
cout << s << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:10: 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:11: error: invalid conversion from ... |
s906171239 | p03834 | C | #include<stdio.h>
int main()
{
char s[19];
gets(s);
int a;
s5]=' ';
s[13]=' ';
for(a=0;a<19;a++)
{
printf("%c",s[a]);
}
return 0;
} | main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
5 | gets(s);
| ^~~~
| fgets
main.c:7:5: error: 's5' undeclared (first use in this function); did you mean 's'?
7 | s5]=' ';
| ^~
... |
s965958478 | p03834 | C++ | #include<cstdio>
#include<string.h>
using namespace std;
int main()
{
int i;
char word[1000];
while(gets(word))
{
int len=strlen(word);
for(i=0;i<len;i++)
{
if(word[i]==',')
{
printf("%c",32);
}
else
{
... | a.cc: In function 'int main()':
a.cc:8:11: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | while(gets(word))
| ^~~~
| getw
|
s673422619 | p03834 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
char a[25];
gets(a);
a[5]=32;
a[13]=32;
printf("%s\n",a);
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(a);
| ^~~~
| getw
|
s662946478 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> s;
for(int i:s){
if(i==',')
i = " ";
}
cout << s << endl;
}
| a.cc: In function 'int main()':
a.cc:9:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
9 | i = " ";
| ^~~
| |
| const char*
|
s339005740 | p03834 | C++ | #include <iostream>
#include <string>
using namespace std;
int main()
{
string T;
cin >> T;
for(int i=0; i<19; i++)
{
if(T[i]==',')
T[i] = ' ';
cout << T[i];
}
| a.cc: In function 'int main()':
a.cc:17:4: error: expected '}' at end of input
17 | }
| ^
a.cc:7:1: note: to match this '{'
7 | {
| ^
|
s815651347 | p03834 | C++ | #include <iostream>
#include <string>
using namespace std;
int main()
{
string T;
cin >> T;
for(int i=0; i<19; i++)
if(T[i]==",")
T[i]==" ";
cout << T;
}
| a.cc: In function 'int main()':
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if(T[i]==",")
a.cc:12:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | T[i]==" ";
|
s049077313 | p03834 | C++ | using System;
using System.Linq;
class Program
{
static void Main(string[] args) {
string[] s = Console.ReadLine().Split('.').ToArray();
foreach(string i in s) Console.Write(i + " ");
Console.WriteLine();
}
} | a.cc:1:7: error: expected nested-name-specifier before 'System'
1 | using System;
| ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
2 | using System.Linq;
| ^~~~~~
a.cc:6:22: error: 'string' has not been declared
6 | static void Main(string[] args) {
... |
s892355667 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
string s(19);
for(int i=0;i<s.size();i++){
s.at(5)=' ';
s.at(13)=' ';
}
cout>>s>>endl;
} | a.cc: In function 'int main()':
a.cc:6:14: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(int)'
6 | string s(19);
| ^
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/inc... |
s187317687 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
string s;
char *str=&s.at(6);
char *str2=&s.at(14);
for(int i=0;i<s.size();i++){
*str=' ';
*str2=' ';
}
cout>>s>>endl;
} | a.cc: In function 'int main()':
a.cc:13:7: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
13 | cout>>s>>endl;
| ~~~~^~~
| | |
| | std::string {aka std::__cxx11::basic_str... |
s152113827 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
string s;
string *str=&s.at(6);
string *str2=&s.at(14);
for(int i=0;i<s.size();i++){
*str=' ';
*str2=' ';
}
cout>>s>>endl;
} | a.cc: In function 'int main()':
a.cc:7:15: error: cannot convert '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type*' {aka 'char*'} to 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} in initialization
7 | string *str=&s.at(6);
| ^~~~~~~~
| |
|... |
s630957179 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
string s;
char &str=s.at(6),%str2=s.at(14);
for(int i=0;i<s.size();i++){
str=' '; str2=' ';
}
cout>>s>>endl;
} | a.cc: In function 'int main()':
a.cc:7:21: error: expected unqualified-id before '%' token
7 | char &str=s.at(6),%str2=s.at(14);
| ^
a.cc:9:14: error: 'str2' was not declared in this scope; did you mean 'str'?
9 | str=' '; str2=' ';
| ^~~~
| ... |
s249472405 | p03834 | C++ | tr ',' ' ' | a.cc:1:1: error: 'tr' does not name a type
1 | tr ',' ' '
| ^~
|
s558418619 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s;
std::cin >> s;
s[5]=' ';
s[13]happy,newyear,enjoy=' ';
std::cout << s << std::endl;
} | a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before 'happy'
8 | s[13]happy,newyear,enjoy=' ';
| ^~~~~
| ;
a.cc:8:9: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc... |
s540401727 | p03834 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
char haiku[19];
cin >> haiku;
for (int i=0;i<19;i++){
if (haiku[i]==','){
haiku[i] = ' ';
}
cout << haiku[i];
}
endl;
} | a.cc: In function 'int main()':
a.cc:13:7: error: statement cannot resolve address of overloaded function
13 | endl;
| ^
|
s833719017 | p03834 | C++ | #include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
s.at(5) = " ";
s.at(13) = " ";
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:6:15: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
6 | s.at(5) = " ";
| ^~~
| |
| const char*
a.cc:7:16: error: inva... |
s806547700 | p03834 | C++ | #include<iostream>
#include<string>
using namespace std;
int main(){
string a,b,c;
cin>>a;
cout<<a[0:5]<<" "<<a[6:13]<<" "<<a[14:19]<<endl;
} | a.cc: In function 'int main()':
a.cc:7:12: error: expected ']' before ':' token
7 | cout<<a[0:5]<<" "<<a[6:13]<<" "<<a[14:19]<<endl;
| ^
| ]
a.cc:7:12: error: expected ';' before ':' token
7 | cout<<a[0:5]<<" "<<a[6:13]<<" "<<a[14:19]<<endl;
| ^
| ... |
s726717425 | p03834 | C++ | #include<iostream>
#include<string>
#include <algorithm>
using namespace std;
int main()
{
string s;
cin >> s ;
replace(s.begin(), s.end(),","," ");
cout << s << endl;
} | In file included from /usr/include/c++/14/algorithm:61,
from a.cc:3:
/usr/include/c++/14/bits/stl_algo.h: In instantiation of 'void std::replace(_FIter, _FIter, const _Tp&, const _Tp&) [with _FIter = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >; _Tp = char [2]]':
a.cc:10:12: requ... |
s189605481 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<char> vec(19);
for (int i = 0; i < 19; i++) {
cin >> vec.at(i);
}
vec.at(5)=' ';
vec.at(13)=' ';
for (int i = 0; i < 19; i++) {
cout << vec(i);}
cout << endl;
}
| a.cc: In function 'int main()':
a.cc:13:14: error: no match for call to '(std::vector<char>) (int&)'
13 | cout << vec(i);}
| ~~~^~~
|
s797809314 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<char> vec(19);
for (int i = 0; i < 19; i++) {
cin >> vec.at(i);
}
vec.at(6)=' ';
vec.at(14)=' ';
for (int i = 0; i < 19; i++) {
cout << vec(19);}
cout << endl;
}
| a.cc: In function 'int main()':
a.cc:13:14: error: no match for call to '(std::vector<char>) (int)'
13 | cout << vec(19);}
| ~~~^~~~
|
s620187296 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<char> vec(19);
for (int i = 0; i < 19; i++) {
cin >> vec.at(i);
}
vec.at(6)=' ';
vec.at(14)=' ';
cout << vec(19)<<endl;
}
| a.cc: In function 'int main()':
a.cc:13:14: error: no match for call to '(std::vector<char>) (int)'
13 | cout << vec(19)<<endl;
| ~~~^~~~
|
s738645231 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<char> vec(19);
for (int i = 0; i < 19; i++) {
cin >> vec.at(i);
}
vec.at(6)=' '
vec.at(14)=' '
cout << vec(19)<<endl;
}
| a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before 'vec'
9 | vec.at(6)=' '
| ^
| ;
10 | vec.at(14)=' '
| ~~~
|
s493839443 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> s;
s.at(5) == " ";
s.at(13) == " ";
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:7:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
7 | s.at(5) == " ";
| ~~~~~~~~^~~~~~
a.cc:8:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | s.at(13) == " ";
| ~~~~~~~~~^~~~~~
|
s319748156 | p03834 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <stack>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <math.h>
#include <stdio.h>
#include <ctype.h>
#include <ios>
#include <iomanip>
using namespace std;
#define N_MAX (100000)
#define LL_MAX_NUM (1LL<<60)
#define IN... | a.cc: In function 'int main()':
a.cc:26:25: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
26 | S[5] = S[13] = " ";
| ^~~
| |
| ... |
s749974547 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string A;
cin>>A;
A[5]="";
A[13]="";
cout <<A;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:8: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
7 | A[5]="";
| ^~
| |
| const char*
a.cc:8:9: error: invalid conversion from 'const char*... |
s124801277 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string A;
cin>>A;
A[5]='';
A[13]='';
cout <<A;
return 0;
}
| a.cc:7:8: error: empty character constant
7 | A[5]='';
| ^~
a.cc:8:9: error: empty character constant
8 | A[13]='';
| ^~
|
s145771188 | p03834 | C++ | #include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <bitset>
#include <deque>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <vector>
#include <algorithm>
#include <iterator>
#include <string>
#include <cctype>
#include <stdio.h... | a.cc: In function 'int main()':
a.cc:23:10: error: expected identifier before numeric constant
23 | string[5]=" ";string[13]=" ";
| ^
a.cc:23:10: error: expected ']' before numeric constant
23 | string[5]=" ";string[13]=" ";
| ^
| ]
a.cc:23:9: error: structured bin... |
s910983185 | p03834 | C++ | #include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <bitset>
#include <deque>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <vector>
#include <algorithm>
#include <iterator>
#include <string>
#include <cctype>
#include <stdio.h... | a.cc: In function 'int main()':
a.cc:22:12: error: expected unqualified-id before '=' token
22 | string = S;cin>>S;
| ^
a.cc:22:21: error: 'S' was not declared in this scope
22 | string = S;cin>>S;
| ^
a.cc:23:10: error: expected identifier before numeric constan... |
s077813597 | p03834 | C++ | #include <iostream>
using namespace std;
int main(){
string s;
cin>>s;
for(int i=0;i<s.size();i++){
if(s.at(i)==',')s.at(i)==' '<<endl;
}
cout<<s<<endl;
}
| a.cc: In function 'int main()':
a.cc:7:33: error: invalid operands of types 'char' and '<unresolved overloaded function type>' to binary 'operator<<'
7 | if(s.at(i)==',')s.at(i)==' '<<endl;
| ~~~^~~~~~
|
s262639566 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string S;
cin >> S;
char kami[6];
char naka[8];
char simo[6];
for (int i = 0; i < 5; ++i)
{
kami[i] = S[i];
}
for (int i = 6; i < 7 + 6 + ; ++i)
{
naka[i - 6] = S[i];
}
for (int i = 14; i < 5 + 14; ++i)
{
simo[i - 14] = S[i];
}
cout << kami <... | a.cc: In function 'int main()':
a.cc:13:37: error: expected primary-expression before ';' token
13 | for (int i = 6; i < 7 + 6 + ; ++i)
| ^
|
s312840899 | p03834 | C++ | #include<iostream>
#include<string>
#include <algorithm>
using namespace std;
int main()
{
string s;
cin >> s;
s.replace(",", " ");
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:12: error: no matching function for call to 'std::__cxx11::basic_string<char>::replace(const char [2], const char [2])'
9 | s.replace(",", " ");
| ~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bits/... |
s790867293 | p03834 | C++ | #include<iostream>
#include<string>
#include <algorithm>
using namespace std;
int main()
{
string s;
cin >> s;
s.replace(',', ' ');
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:12: error: no matching function for call to 'std::__cxx11::basic_string<char>::replace(char, char)'
9 | s.replace(',', ' ');
| ~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bits/locale_classes.h:40,... |
s802677813 | p03834 | C++ | #include<iostream>
#include<string>
#include <algorithm>
using namespace std;
int main()
{
string s;
cin >> s;
s.replace(',', ' ')
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:12: error: no matching function for call to 'std::__cxx11::basic_string<char>::replace(char, char)'
9 | s.replace(',', ' ')
| ~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bits/locale_classes.h:40,
... |
s640327657 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> s;
s[6]=s[14]=' '
cout << s << endl;
}
| a.cc: In function 'int main()':
a.cc:7:17: error: expected ';' before 'cout'
7 | s[6]=s[14]=' '
| ^
| ;
8 | cout << s << endl;
| ~~~~
|
s750185209 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> s;
s[5] = s[14] = ' ';
cout >> s;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
8 | cout >> s;
| ~~~~ ^~ ~
| | |
| | std::string {aka std::__cxx11:... |
s598403977 | p03834 | C++ | #include <iostream>
#include <string>
using namespace std;
int main() {
string s1;
cin >> s1;
s1.replace(1,5,' ');
s1.replace(5,7,' ');
cout << s1;
} | a.cc: In function 'int main()':
a.cc:7:15: error: no matching function for call to 'std::__cxx11::basic_string<char>::replace(int, int, char)'
7 | s1.replace(1,5,' ');
| ~~~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bits/locale_class... |
s274467958 | p03834 | C++ | #include <iostream>
int main() {
string s1;
cin >> s1;
s1.replace(1,5,' ');
s1.replace(5,7,' ');
cout << s1;
} | a.cc: In function 'int main()':
a.cc:3:5: error: 'string' was not declared in this scope
3 | string s1;
| ^~~~~~
a.cc:3:5: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostr... |
s020582350 | p03834 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
char s[128];
cin>>s;
s[5]=" ";
s[13]=" ";
cout<<s<<endl;
} | a.cc: In function 'int main()':
a.cc:6:8: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
6 | s[5]=" ";
| ^~~
| |
| const char*
a.cc:7:9: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
7 | s[13]=" ";
| ^~~
... |
s389783654 | p03834 | C++ | #include <bits/stdc++.h>
#define FOR(i, a, b) for(int i=(a); i<(b); i++)
#define REP(i, n) FOR(i, 0, n)
#define all(x) (x).begin(), (x).end()
#define bit(x) (1L << (x))
using ll = long long;
using namespace std;
template<typename T>
vector<T> make_v(size_t a){return vector<T>(a);}
template<typename T,typename... Ts>
... | a.cc: In function 'int main()':
a.cc:29:10: error: 'n' was not declared in this scope
29 | REP(i, n)if(s[i] == ',') s[i] = ' ';
| ^
a.cc:2:40: note: in definition of macro 'FOR'
2 | #define FOR(i, a, b) for(int i=(a); i<(b); i++)
| ^
a.cc:29:3: note: ... |
s890916825 | p03834 | C++ | #include <iostream>
using namespace std;
int main(){
strihg s;
cin >> s;
for(int i=0;i<s.size();i++){
if(s.at(i)==','){
s.at(i)=' ';
}
}
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'strihg' was not declared in this scope
5 | strihg s;
| ^~~~~~
a.cc:6:10: error: 's' was not declared in this scope
6 | cin >> s;
| ^
|
s269637422 | p03834 | C | #include <stdio.h>
int main(void){
char a[100];
int count;
scanf("%s",&a);
for(count=0;a[count]='\0';count++){
if(a[count]==','){a[count]=' ';}
}
printf("%s",s);
return 0;
} | main.c: In function 'main':
main.c:9:15: error: 's' undeclared (first use in this function)
9 | printf("%s",s);
| ^
main.c:9:15: note: each undeclared identifier is reported only once for each function it appears in
|
s984495396 | p03834 | C | #include <stdio.h>
int main(void){
char a[100];
int count;
scanf("%s",&a);
for(count=0;a[count]='\0';count++){
if(a[count]==","){a[count]=" ";}
}
printf("%s",s);
return 0;
} | main.c: In function 'main':
main.c:7:14: warning: comparison between pointer and integer
7 | if(a[count]==","){a[count]=" ";}
| ^~
main.c:7:29: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
7 | if(a[count]==","){a[count]=" ";}
... |
s520937975 | p03834 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a;
cin >> a;
a[5]=" ";
a[13]=" ";
cout << a << endl;
} | a.cc: In function 'int main()':
a.cc:7:8: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
7 | a[5]=" ";
| ^~~
| |
| const char*
a.cc:8:9: error: invalid conversion from 'const cha... |
s717517199 | p03834 | C++ | #include <iostream>
#include <vector>
#include <string>
using namespace std;
int main(void){
string s;
cin >> s;
replace(s.begin(), s.end(), ',', ' ');
cout << s << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:3: error: 'replace' was not declared in this scope
9 | replace(s.begin(), s.end(), ',', ' ');
| ^~~~~~~
|
s401996847 | p03834 | C | #include <iostream>
#include <string>
int main () {
std::string s;
std::cin >> s;
std::replace(s.begin(), s.end(), ',', ' ');
std::cout << s << std::endl;
return 0;
} | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s925463378 | p03834 | C | #include <iostream>
#include <string>
int main () {
std::string s;
std::cin >> s;
std::replace(s.begin(), s.end(), ',', ' ');
std::cout << s << std::endl;
return 0;
} | main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.