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==',') | ^~ | c a.cc:14:9: error: 'ch' was not declared in this scope; did you mean 'c'? 14 | ch=getchar(); | ^~ | c
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==',') | ^~ | c
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 | std::string {aka std::__cxx11::basic_string<char>} In file included from /usr/include/c++/14/regex:68, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181, from a.cc:1: /usr/include/c++/14/bits/regex.h:1132:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1132 | operator!=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1132:5: note: template argument deduction/substitution failed: a.cc:7:20: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if (str != ',') cout << str[i]; | ^~~ /usr/include/c++/14/bits/regex.h:1212:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1212 | operator!=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1212:5: note: template argument deduction/substitution failed: a.cc:7:20: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if (str != ',') cout << str[i]; | ^~~ /usr/include/c++/14/bits/regex.h:1305:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1305 | operator!=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1305:5: note: template argument deduction/substitution failed: a.cc:7:20: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if (str != ',') cout << str[i]; | ^~~ /usr/include/c++/14/bits/regex.h:1379:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1379 | operator!=(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1379:5: note: template argument deduction/substitution failed: a.cc:7:20: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if (str != ',') cout << str[i]; | ^~~ /usr/include/c++/14/bits/regex.h:1473:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1473 | operator!=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1473:5: note: template argument deduction/substitution failed: a.cc:7:20: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if (str != ',') cout << str[i]; | ^~~ /usr/include/c++/14/bits/regex.h:1547:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1547 | operator!=(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1547:5: note: template argument deduction/substitution failed: a.cc:7:20: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'char' 7 | if (str != ',') cout << str[i]; | ^~~ /usr/include/c++/14/bits/regex.h:1647:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)' 1647 | operator!=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1647:5: note: template argument deduction/substitution failed: a.cc:7:20: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::sub_match<_BiIter>' 7 | if (str != ',') cout << str[i]; | ^~~ /usr/include/c++/14/bits/regex.h:2213:5: note: candidate: 'template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator!=(const match_results<_BiIter, _Alloc>&, const match_results<_BiIter, _Alloc>&)' 2213 | operator!=(const match_results<_Bi_iter, _Alloc>& __m1, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:2213:5: note: template argument deduction/substitution failed: a.cc:7:20: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>' 7 | if (str != ',') cout << str[i]; | ^~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51: /usr/include/c++/14/bits/stl_pair.h:1052:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator!=(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 1052 | operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/14/bits/stl_pair.h:1052:5: note: template argument deduction/substitution failed: a.cc:7:20: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::pair<_T1, _T2>' 7 | if (str != ',') cout << str[i]; | ^~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:67: /usr/include/c++/14/bits/stl_iterator.h:455:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator!=(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 455 | operator!=(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:455:5: note: template argument deduction/substitution failed: a.cc:7:20: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | if (str != ',') cout << str[i]; | ^~~ /usr/include/c++/14/bits/stl_iterator.h:500:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator!=(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 500 | operator!=(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:500:5: note: template argument deduction/substitution failed: a.cc:7:20: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::reverse_iterator<_Iterator>' 7 | if (str != ',') cout << str[i]; | ^~~ /usr/include/c++/14/bits/stl_iterator.h:1686:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator!=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1686 | operator!=(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1686:5: note: template argument deduction/substitution failed: a.cc:7:20: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | if (str != ',') cout << str[i]; | ^~~ /usr/include/c++/14/bits/stl_iterator.h:1753:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator!=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1753 | operator!=(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/14/bits/stl_iterator.h:1753:5: note: template argument deduction/substitution failed: a.cc:7:20: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::move_iterator<_IteratorL>' 7 | if (str != ',') cout << str[i]; | ^~~ In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/bits/postypes.h:197:5: note: candidate: 'template<class _StateT> bool std::operator!=(const fpos<_StateT>&, const fpos<_StateT>&)' 197 | operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) | ^~~~~~~~ /usr/include/c++/14/bits/postypes.h:197:5: note: template argument deduction/substitution failed: a.cc:7:20: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::fpos<_StateT>' 7 | if (str != ',') cout << str[i]; | ^~~ In file included from /usr/include/c++/14/string:43: /usr/include/c++/14/bits/allocator.h:243:5: note: candidate: 'template<class _T1, class _T2> bool std::operator!=(const allocator<_CharT>&, const allocator<_T2>&)' 243 | operator!=(const allocator<_T1>&, const allocator<_T2>&) | ^~~~~~~~ /usr/include/c++/14/bits/allocator.h:243:5: note: template argument deduction/substitution failed: a.cc:7:20: note: 'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::allocator<_CharT>' 7 | if (str != ',') cout << str[i]; | ^~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54: /usr/include/c++/14/string_view:651:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator!=(basic_string_view<_CharT, _Traits>, basic_string
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; } return gcd(y, x % y); } int main() { string s; cin >> s; s[5] = " "; s[13] = " "; cout << s << endl; return 0; }
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 from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 28 | s[13] = " "; | ^~~ | | | const char*
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] = " "; | ^~~ | | | const char* a.cc:8:25: 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] = " "; | ^~~ | | | const char* a.cc:9:15: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 9 | cout << s << end; | ~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14/sstream:40, from /usr/include/c++/14/complex:45, from /usr/include/c++/14/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127, from a.cc:1: /usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'} 116 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]' 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 125 | operator<<(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ^~~~~~~~ /usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::ios_base& (*)(std::ios_base&)' 135 | operator<<(ios_base& (*__pf) (ios_base&)) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 174 | operator<<(long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long int' 174 | operator<<(long __n) | ~~~~~^~~ /usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 178 | operator<<(unsigned long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long unsigned int' 178 | operator<<(unsigned long __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 182 | operator<<(bool __n) | ^~~~~~~~ /usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'bool' 182 | operator<<(bool __n) | ~~~~~^~~ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]' 96 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short int' 97 | operator<<(short __n) | ~~~~~~^~~ /usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 189 | operator<<(unsigned short __n) | ^~~~~~~~ /usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'short unsigned int' 189 | operator<<(unsigned short __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]' 110 | basic_ostream<_CharT, _Traits>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'int' 111 | operator<<(int __n) | ~~~~^~~ /usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 200 | operator<<(unsigned int __n) | ^~~~~~~~ /usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'unsigned int' 200 | operator<<(unsigned int __n) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 211 | operator<<(long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long int' 211 | operator<<(long long __n) | ~~~~~~~~~~^~~ /usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 215 | operator<<(unsigned long long __n) | ^~~~~~~~ /usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long long unsigned int' 215 | operator<<(unsigned long long __n) | ~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 231 | operator<<(double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'double' 231 | operator<<(double __f) | ~~~~~~~^~~ /usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 235 | operator<<(float __f) | ^~~~~~~~ /usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'float' 235 | operator<<(float __f) | ~~~~~~^~~ /usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]' 243 | operator<<(long double __f) | ^~~~~~~~ /usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'long double' 243 | operator<<(long double __f) | ~~~~~~~~~~~~^~~ /usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::cha
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 == S) { cnt++; } } } } System.out.println(cnt); } }
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() { // main の引数 /* 引数なしのときargs.len() = 1; */ let args: Vec<String> = env::args().collect(); let S: String = read(); println!("{}", &S[..].replace(",", " ") ); }
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 { | ^~ a.cc:14:1: error: 'fn' does not name a type 14 | fn main() { | ^~
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 0; }
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; } } } System.out.println(ans); scan.close(); }
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/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/basic_string.h:2413:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(const_iterator, const_iterator, _InputIterator, _InputIterator) [with <template-parameter-2-2> = _InputIterator; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]' 2413 | replace(const_iterator __i1, const_iterator __i2, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2413:9: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2522:9: note: candidate: 'template<class _Tp> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, const _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]' 2522 | replace(size_type __pos, size_type __n, const _Tp& __svt) | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2522:9: note: candidate expects 3 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2540:9: note: candidate: 'template<class _Tp> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, const _Tp&, size_type, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]' 2540 | replace(size_type __pos1, size_type __n1, const _Tp& __svt, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2540:9: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2562:9: note: candidate: 'template<class _Tp> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(const_iterator, const_iterator, const _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]' 2562 | replace(const_iterator __i1, const_iterator __i2, const _Tp& __svt) | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2562:9: note: candidate expects 3 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2200:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 2200 | replace(size_type __pos, size_type __n, const basic_string& __str) | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2200:7: note: candidate expects 3 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2223:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, size_type, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 2223 | replace(size_type __pos1, size_type __n1, const basic_string& __str, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2223:7: note: candidate expects 5 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2249:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 2249 | replace(size_type __pos, size_type __n1, const _CharT* __s, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2249:7: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2275:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 2275 | replace(size_type __pos, size_type __n1, const _CharT* __s) | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2275:7: note: candidate expects 3 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2300:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, size_type, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 2300 | replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2300:7: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2319:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterator, __const_iterator, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __const_iterator = std::__cxx11::basic_string<char>::const_iterator]' 2319 | replace(__const_iterator __i1, __const_iterator __i2, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2319:7: note: candidate expects 3 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2340:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterator, __const_iterator, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __const_iterator = std::__cxx11::basic_string<char>::const_iterator; size_type = long unsigned int]' 2340 | replace(__const_iterator __i1, __const_iterator __i2, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2340:7: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2363:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterator, __const_iterator, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __const_iterator = std::__cxx11::basic_string<char>::const_iterator]' 2363 | replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s) | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2363:7: note: candidate expects 3 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2385:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterator, __const_iterator, size_type, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __const_iterator = std::__cxx11::basic_string<char>::const_iterator; size_type = long unsigned int]' 2385 | replace(__const_iterator __i1, __const_iterator __i2, size_type __n, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2385:7: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2444:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterator, __const_iterator, _CharT*, _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __const_iterator = std::__cxx11::basic_string<char>::const_iterator]' 2444 | replace(__const_iterator __i1, __const_iterator __i2, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2444:7: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterator, __const_iterator, const _CharT*, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __const_iterator = std::__cxx11::basic_string<char>::const_iterator]' 2456 | replace(__const_iterator __i1, __const_iterator __i2, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2456:7: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2468:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterator, __const_iterator, iterator, iterator) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __const_iterator = std::__cxx11::basic_string<char>::const_iterator; iterator = std::__cxx11::basic_string<char>::iterator]' 2468 | replace(__const_iterator __i1, __const_iterator __i2, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2468:7: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2480:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterat
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.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/basic_string.h:2413:9: note: candidate: 'template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(const_iterator, const_iterator, _InputIterator, _InputIterator) [with <template-parameter-2-2> = _InputIterator; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]' 2413 | replace(const_iterator __i1, const_iterator __i2, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2413:9: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2522:9: note: candidate: 'template<class _Tp> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, const _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]' 2522 | replace(size_type __pos, size_type __n, const _Tp& __svt) | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2522:9: note: candidate expects 3 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2540:9: note: candidate: 'template<class _Tp> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, const _Tp&, size_type, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]' 2540 | replace(size_type __pos1, size_type __n1, const _Tp& __svt, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2540:9: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2562:9: note: candidate: 'template<class _Tp> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_If_sv<_Tp, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(const_iterator, const_iterator, const _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]' 2562 | replace(const_iterator __i1, const_iterator __i2, const _Tp& __svt) | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2562:9: note: candidate expects 3 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2200:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 2200 | replace(size_type __pos, size_type __n, const basic_string& __str) | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2200:7: note: candidate expects 3 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2223:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, size_type, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 2223 | replace(size_type __pos1, size_type __n1, const basic_string& __str, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2223:7: note: candidate expects 5 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2249:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 2249 | replace(size_type __pos, size_type __n1, const _CharT* __s, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2249:7: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2275:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 2275 | replace(size_type __pos, size_type __n1, const _CharT* __s) | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2275:7: note: candidate expects 3 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2300:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(size_type, size_type, size_type, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 2300 | replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2300:7: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2319:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterator, __const_iterator, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __const_iterator = std::__cxx11::basic_string<char>::const_iterator]' 2319 | replace(__const_iterator __i1, __const_iterator __i2, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2319:7: note: candidate expects 3 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2340:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterator, __const_iterator, const _CharT*, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __const_iterator = std::__cxx11::basic_string<char>::const_iterator; size_type = long unsigned int]' 2340 | replace(__const_iterator __i1, __const_iterator __i2, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2340:7: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2363:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterator, __const_iterator, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __const_iterator = std::__cxx11::basic_string<char>::const_iterator]' 2363 | replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s) | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2363:7: note: candidate expects 3 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2385:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterator, __const_iterator, size_type, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __const_iterator = std::__cxx11::basic_string<char>::const_iterator; size_type = long unsigned int]' 2385 | replace(__const_iterator __i1, __const_iterator __i2, size_type __n, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2385:7: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2444:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterator, __const_iterator, _CharT*, _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __const_iterator = std::__cxx11::basic_string<char>::const_iterator]' 2444 | replace(__const_iterator __i1, __const_iterator __i2, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2444:7: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2456:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterator, __const_iterator, const _CharT*, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __const_iterator = std::__cxx11::basic_string<char>::const_iterator]' 2456 | replace(__const_iterator __i1, __const_iterator __i2, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2456:7: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2468:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterator, __const_iterator, iterator, iterator) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; __const_iterator = std::__cxx11::basic_string<char>::const_iterator; iterator = std::__cxx11::basic_string<char>::iterator]' 2468 | replace(__const_iterator __i1, __const_iterator __i2, | ^~~~~~~ /usr/include/c++/14/bits/basic_string.h:2468:7: note: candidate expects 4 arguments, 2 provided /usr/include/c++/14/bits/basic_string.h:2480:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::replace(__const_iterator, __const_iterator
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 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*
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; ///< Linked to standard output | ^~~~ a.cc:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 9 | cout<<c; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 11 | cout<<endl; | ^~~~ | std::cout /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ a.cc:11:9: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 11 | cout<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/iostream:41: /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
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 | s[i] = " "; | ^~~ | | | const char*
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(); System.out.println(a + " " + b + " " + c) } }
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]='' | ^ | ; 9 | cout<<s<<endl; | ~~~~
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]); } return 0; }
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++){ | ^ | ; main.c:10:25: error: expected ')' before 's' 10 | printf("%s"s[i]); | ~ ^ | ) main.c:13:21: error: expected ';' before ')' token 13 | for(i<16;i++){ | ^ | ; main.c:14:25: error: expected ')' before 's' 14 | printf("%s"s[i]); | ~ ^ | )
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:14: error: 'a' was not declared in this scope 6 | cin>>a; | ^
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<e){ max=e; } if(max<f){ max=f; } if(min>c){ min=c; } if(min>d){ min=d; } if(min>e){ min=e; } if(min>f){ min=f; } cout<<max<<min<<endl;*/ string a; cin>>a; a[5]=" "; a[13]=" "; cout<<a<<endl; }
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: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 50 | a[13]=" "; | ^~~ | | | const char*
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<e){ max=e; } if(max<f){ max=f; } if(min>c){ min=c; } if(min>d){ min=d; } if(min>e){ min=e; } if(min>f){ min=f; } cout<<max<<min<<endl;*/ string a; cin>>a; a[5]=" "; a[13]=" "; cout<<a<<endl; }
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: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 50 | a[13]=" "; | ^~~ | | | const char*
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 '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | s[12]=" "; | ^~~ | | | const char*
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]=" "; | ^~~ | | | const char*
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 namespace std; a.cc:14:9: error: 'cout' was not declared in this scope 14 | cout << A << endl; | ^~~~ a.cc:14:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:14:22: error: 'endl' was not declared in this scope 14 | cout << A << endl; | ^~~~ a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' 1 | #include <string> +++ |+#include <ostream> 2 | using namespace std;
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]); System.out.print(" "); System.out.print(str1[1]); System.out.print(" "); System.out.print(str1[2]); } }
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)); ^ symbol: class BufferedReader location: class Main Main.java:6: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class InputStreamReader location: class Main 3 errors
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++){ ^ 3 errors
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++){ ^ 3 errors
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: error: class, interface, enum, or record expected for(int i = 0; i < a.length; i++){ ^ Main.java:3: error: class, interface, enum, or record expected for(int i = 0; i < a.length; i++){ ^ Main.java:5: error: class, interface, enum, or record expected System.out.print(a[i]); ^ Main.java:6: error: class, interface, enum, or record expected } ^ 6 errors
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++){ ^ Main.java:3: error: class, interface, enum, or record expected for(int i = 0; i < a.length; i++){ ^ Main.java:3: error: class, interface, enum, or record expected for(int i = 0; i < a.length; i++){ ^ Main.java:5: error: class, interface, enum, or record expected System.out.print(a[i]); ^ Main.java:6: error: class, interface, enum, or record expected } ^ 6 errors
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(a)) a[i] = " "; ^ symbol: method euals(String[]) location: class String 3 errors
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(a)) a[i] = " "; ^ symbol: method euals(String[]) location: class String 3 errors
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{printf("%c",str[i]);} | ^~~
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{printf("%c",str[i]);} | ^~~
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' does not name a type 5 | cin >> s; | ^~~ a.cc:7:1: error: expected unqualified-id before 'for' 7 | for(int i=0;i<19;i++){ | ^~~ a.cc:7:13: error: 'i' does not name a type 7 | for(int i=0;i<19;i++){ | ^ a.cc:7:18: error: 'i' does not name a type 7 | for(int i=0;i<19;i++){ | ^ a.cc:14:1: error: expected unqualified-id before 'return' 14 | return 0; | ^~~~~~ a.cc:15:1: error: expected declaration before '}' token 15 | } | ^
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 '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | S[12]=" "; | ^~~ | | | const char*
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: error: extended character ’ is not valid in an identifier 9 | s[13]=’ ’; | ^ a.cc: In function 'int main()': a.cc:8:1: error: 's' was not declared in this scope 8 | s[5]=’ ’; | ^ a.cc:8:6: error: '\U00002019' was not declared in this scope 8 | s[5]=’ ’; | ^
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]=’ ’; | ^ a.cc:8:18: error: extended character ’ is not valid in an identifier 8 | s[5]=’ ’,s[13]=’ ’; | ^ a.cc: In function 'int main()': a.cc:8:1: error: 's' was not declared in this scope 8 | s[5]=’ ’,s[13]=’ ’; | ^ a.cc:8:6: error: '\U00002019' was not declared in this scope 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()': a.cc:8:9: error: expected primary-expression before ';' token 8 | S[5]=` `; | ^ a.cc:9:10: error: expected primary-expression before ';' token 9 | S[12]=` `; | ^
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 '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | S[12]=" "; | ^~~ | | | const char*
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 ';' token 10 | cout<<S.substr(7,13)<<; | ^ a.cc:11:24: error: expected primary-expression before ';' token 11 | cout<<S.substr(15,19)<<; | ^ a.cc:12:12: error: expected primary-expression before ';' token 12 | cout<<" "<<; | ^
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:7:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 7 | S[6]==" "; a.cc:8:6: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 8 | S[14]==" "; a.cc:9:1: error: 'cout' was not declared in this scope 9 | cout<<S<<endl; | ^~~~ a.cc:9:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:9:10: error: 'endl' was not declared in this scope 9 | cout<<S<<endl; | ^~~~ a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' 1 | #include<string> +++ |+#include <ostream> 2 | using namespace std;
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 main() { char A[19]; cin >> A ; for(int i=0;i<19;i++){ if(A[i]==','){A[i]=32;} } cout << (char)A << endl; return 0; }
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]; } cout << endl; }
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 << " "; | ^~~ | | | const char*
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)); | ^~~~ a.cc:8:10: error: too few arguments to function 'int putc(int, FILE*)' 8 | else putc(' '); | ~~~~^~~~~ /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.