submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s872805456
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; }
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(), ',', ' '); | ^~~~~~~
s866932095
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; }
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(), ',', ' '); | ^~~~~~~
s593150321
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; }
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(), ',', ' '); | ^~~~~~~
s990852654
p03834
C
#include<iostream> using namespace std; int main(){ char s[20]; cin>>s; s[5]=' ',s[13]=' '; cout<<s; return 0; }
main.c:1:9: fatal error: iostream: No such file or directory 1 | #include<iostream> | ^~~~~~~~~~ compilation terminated.
s231869261
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin>>s; s[5]=" "; s[13]=" "; cout<<s; }
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 | s[5]=" "; | ^~~ | | | const char* a.cc:8:9: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 8 | s[13]=" "; | ^~~ | | | const char*
s013518210
p03834
C++
#include <iostream> #include <cstdlib> #include <cmath> #include <algorithm> using namespace std; #define REP(i,n) for(int i=0;i<(n);i++) int main() { string s; cin >> s; replace(s.begin(), s.end(), ",", " "); cout << s << "\n"; }
In file included from /usr/include/c++/14/algorithm:61, from a.cc:4: /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:11:12: required from here 11 | replace(s.begin(), s.end(), ",", " "); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4293:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 4293 | if (*__first == __old_value) | ~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4294:20: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 4294 | *__first = __new_value; | ~~~~~~~~~^~~~~~~~~~~~~ | | | const char*
s894268613
p03834
C++
happy,newyear,enjoy
a.cc:1:1: error: 'happy' does not name a type 1 | happy,newyear,enjoy | ^~~~~
s022967728
p03834
C++
#include<bits/stdc++.h> using namespace std; int main() { int K,S,X,Y,Z,res=0; cin>>K>>S; for(int i=0;i<=K;i++){ for(int j=0;j<=K;j++){ if(S-i-j<=K&&s-i-j>=0){ res++; } } } cout<<res; }
a.cc: In function 'int main()': a.cc:8:22: error: 's' was not declared in this scope 8 | if(S-i-j<=K&&s-i-j>=0){ | ^
s483865218
p03834
C++
#include<bits/stdc++.h> using namespace std; int main() { int K,S,X,Y,Z,res=0; cin>>K>>S; for(int i=0;i<=K;i++){ for(int j=0;j<=K;j++){ if(s-i-j<=k&&s-i-j>=0){ res++; } } } cout<<res; }
a.cc: In function 'int main()': a.cc:8:12: error: 's' was not declared in this scope 8 | if(s-i-j<=k&&s-i-j>=0){ | ^ a.cc:8:19: error: 'k' was not declared in this scope 8 | if(s-i-j<=k&&s-i-j>=0){ | ^
s760945853
p03834
C
#include<stdio.h> int main(){ int i=0; char str[20]; scanf(%s, str); while(str[i]){ if(str[i] == ",") str[i] = " "; printf("%s", str); i++; } return 0; }
main.c: In function 'main': main.c:5:9: error: expected expression before '%' token 5 | scanf(%s, str); | ^ main.c:7:15: warning: comparison between pointer and integer 7 | if(str[i] == ",") | ^~ main.c:8:14: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion] 8 | str[i] = " "; | ^
s051847655
p03834
C++
#include <bits/stdc++.h> using namespace std; int main(void){ string s; cin >> s; s[5]=’ ’,s[13]=’ ’; cout << s << endl; }
a.cc:7:9: error: extended character ’ is not valid in an identifier 7 | s[5]=’ ’,s[13]=’ ’; | ^ a.cc:7:11: error: extended character ’ is not valid in an identifier 7 | s[5]=’ ’,s[13]=’ ’; | ^ a.cc:7:19: error: extended character ’ is not valid in an identifier 7 | s[5]=’ ’,s[13]=’ ’; | ^ a.cc:7:21: error: extended character ’ is not valid in an identifier 7 | s[5]=’ ’,s[13]=’ ’; | ^ a.cc: In function 'int main()': a.cc:7:9: error: '\U00002019' was not declared in this scope 7 | s[5]=’ ’,s[13]=’ ’; | ^
s787802872
p03834
Java
import java.util.* fun main(args: Array<String>) { val sc = Scanner(System.`in`) val s: String = sc.next() for (i in 0 until s.length) { if (s[i] == ',') { print(' ') } else { print(s[i]) } } println() }
Main.java:1: error: ';' expected import java.util.* ^ Main.java:4: error: illegal character: '`' val sc = Scanner(System.`in`) ^ Main.java:4: error: illegal character: '`' val sc = Scanner(System.`in`) ^ 3 errors
s429104296
p03834
Java
import java.util.*; class Main { public static void main (string args[]){ Scanner sc = new Scanner(System.in); String s = sc.next(); System.out.println(s.replace(","," ")); } }
Main.java:4: error: cannot find symbol public static void main (string args[]){ ^ symbol: class string location: class Main 1 error
s799365750
p03834
C++
#include<iostream> #include<string> using namespace std; int main(){ string S; S[5]=" "; S[13]=" "; cout<<S<<endl; }
a.cc: In function 'int main()': a.cc:9:8: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | S[5]=" "; | ^~~ | | | const char* a.cc:10:9: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 10 | S[13]=" "; | ^~~ | | | const char*
s726071046
p03834
C++
#include <iostream> #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:11:5: error: 'replace' was not declared in this scope 11 | replace(s.begin(),s.end(),',',' '); | ^~~~~~~
s082419087
p03834
Java
import java.util.*; public class Main(){ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int s = sc.nextInt(); int count = 0; for(int x=0; x<=k; x++){ for(int y=0; y<=k-x; y++){ for(int z=0; z<=k-x-y; z++){ if(x+y+z == s){ count++; } } } } System.out.println(count); } }
Main.java:3: error: '{' expected public class Main(){ ^ 1 error
s166382082
p03834
C++
arr = raw_input().split(",") print (" ").join(arr)
a.cc:1:1: error: 'arr' does not name a type 1 | arr = raw_input().split(",") | ^~~
s458404730
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; s[6] = ' '; s[14] = ' '; cout >> s; }
a.cc: In function 'int main()': a.cc:13:8: 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; | ~~~~ ^~ ~ | | | | | std::string {aka std::__cxx11::basic_string<char>} | std::ostream {aka std::basic_ostream<char>} In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41, from a.cc:1: /usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)' 131 | operator>>(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed: a.cc:13:3: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte' 13 | cout >> s; | ^~~~ In file included from /usr/include/c++/14/string:55, 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/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 835 | operator>>(basic_istream<_CharT, _Traits>& __in, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed: a.cc:13:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >> s; | ^ /usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)' 1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x) | ^~~~~~~~ /usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed: a.cc:13:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >> s; | ^ In file included from /usr/include/c++/14/istream:1109, 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: /usr/include/c++/14/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)' 978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) | ^~~~~~~~ /usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed: a.cc:13:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >> s; | ^ /usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)' 849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed: a.cc:13:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout >> s; | ^ /usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)' 854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c) | ^~~~~~~~ /usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed: a.cc:13:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout >> s; | ^ /usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)' 896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed: a.cc:13:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >> s; | ^ /usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)' 939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed: a.cc:13:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout >> s; | ^ /usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)' 945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s) | ^~~~~~~~ /usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed: a.cc:13:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>' 13 | cout >> s; | ^ /usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed: /usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = std::__cxx11::basic_string<char>&]': a.cc:13:11: required from here 13 | cout >> s; | ^ /usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>' 1099 | operator>>(_Istream&& __is, _Tp&& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)' 509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x) | ^~~~~~~~ /usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed: a.cc:13:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >> s; | ^ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143: /usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)' 76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed: a.cc:13:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >> s; | ^ /usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)' 106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed: a.cc:13:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >> s; | ^ /usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)' 137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed: a.cc:13:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >> s; | ^ /usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)' 177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed: a.cc:13:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >> s; | ^ /usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)' 207 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f) | ^~~~~~~~ /usr/include/c++/14/iomanip:207:5: note: template argument deduction/substitution failed: a.cc:13:11: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>' 13 | cout >> s; | ^ /usr/include/c++/14/iomanip:237:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setw)'
s110149460
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:3: error: 'replace' was not declared in this scope 9 | replace(s.begin(), s.end(), ',', ' '); | ^~~~~~~
s715921311
p03834
C++
#include <iostream> #include <string> int main() { string s; cin >> s; s.replace(s.begin(), s.end(), ',', ' '); cout << s << endl; return 0; }
a.cc: In function 'int main()': a.cc:5:3: error: 'string' was not declared in this scope 5 | string s; | ^~~~~~ a.cc:5:3: 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/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string<char> string; | ^~~~~~ In file included 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: /usr/include/c++/14/string:76:11: note: 'std::pmr::string' 76 | using string = basic_string<char>; | ^~~~~~ a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> s; | ^~~ | std::cin /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:6:10: error: 's' was not declared in this scope 6 | cin >> s; | ^ a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 9 | cout << s << 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:9:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 9 | cout << s << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s683823222
p03834
C++
#include <iostream> #include <string> int main() { string s; cin >> s; replace(s.begin(), s.end(), ',', ' '); cout << s << endl; return 0; }
a.cc: In function 'int main()': a.cc:5:3: error: 'string' was not declared in this scope 5 | string s; | ^~~~~~ a.cc:5:3: 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/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:1: /usr/include/c++/14/bits/stringfwd.h:77:33: note: 'std::string' 77 | typedef basic_string<char> string; | ^~~~~~ In file included 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: /usr/include/c++/14/string:76:11: note: 'std::pmr::string' 76 | using string = basic_string<char>; | ^~~~~~ a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> s; | ^~~ | std::cin /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ a.cc:6:10: error: 's' was not declared in this scope 6 | cin >> s; | ^ a.cc:8:3: error: 'replace' was not declared in this scope 8 | replace(s.begin(), s.end(), ',', ' '); | ^~~~~~~ a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 9 | cout << s << 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:9:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 9 | cout << s << endl; | ^~~~ | std::endl /usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here 744 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
s281050581
p03834
C++
#include <bits/stdc++.h> 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:6:43: error: expected ';' before 'cout' 6 | replace(s.begin(), s.end(), ',', ' ' ) | ^ | ; 7 | cout << s << endl; | ~~~~
s221824546
p03834
C++
#include<bits/stdc++.h> #include<string> using namespace std; int main(){ string s, t, u; cin >> s + "," + t + "," + u; cout << s << " " << t << " " << u << endl; }
a.cc: In function 'int main()': a.cc:7:23: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::__cxx11::basic_string<char>') 7 | string s, t, u; cin >> s + "," + t + "," + u; | ~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~ | | | | | std::__cxx11::basic_string<char> | std::istream {aka std::basic_istream<char>} In file included from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52, from a.cc:1: /usr/include/c++/14/bits/basic_string.h:4064:5: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]' (near match) 4064 | operator>>(basic_istream<char>& __is, basic_string<char>& __str); | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:4064:5: note: conversion of argument 2 would be ill-formed: a.cc:7:44: error: cannot bind non-const lvalue reference of type 'std::__cxx11::basic_string<char>&' to an rvalue of type 'std::__cxx11::basic_string<char>' 7 | string s, t, u; cin >> s + "," + t + "," + u; | ~~~~~~~~~~~~~~~~~~^~~ In file included 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: /usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 170 | operator>>(bool& __n) | ^~~~~~~~ /usr/include/c++/14/istream:170:24: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'bool&' 170 | operator>>(bool& __n) | ~~~~~~^~~ /usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' 174 | operator>>(short& __n); | ^~~~~~~~ /usr/include/c++/14/istream:174:25: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'short int&' 174 | operator>>(short& __n); | ~~~~~~~^~~ /usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 177 | operator>>(unsigned short& __n) | ^~~~~~~~ /usr/include/c++/14/istream:177:34: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'short unsigned int&' 177 | operator>>(unsigned short& __n) | ~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' 181 | operator>>(int& __n); | ^~~~~~~~ /usr/include/c++/14/istream:181:23: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'int&' 181 | operator>>(int& __n); | ~~~~~^~~ /usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 184 | operator>>(unsigned int& __n) | ^~~~~~~~ /usr/include/c++/14/istream:184:32: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'unsigned int&' 184 | operator>>(unsigned int& __n) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 188 | operator>>(long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:188:24: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'long int&' 188 | operator>>(long& __n) | ~~~~~~^~~ /usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 192 | operator>>(unsigned long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:192:33: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'long unsigned int&' 192 | operator>>(unsigned long& __n) | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 199 | operator>>(long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:199:29: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'long long int&' 199 | operator>>(long long& __n) | ~~~~~~~~~~~^~~ /usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 203 | operator>>(unsigned long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:203:38: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'long long unsigned int&' 203 | operator>>(unsigned long long& __n) | ~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 219 | operator>>(float& __f) | ^~~~~~~~ /usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'float&' 219 | operator>>(float& __f) | ~~~~~~~^~~ /usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 223 | operator>>(double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'double&' 223 | operator>>(double& __f) | ~~~~~~~~^~~ /usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 227 | operator>>(long double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'long double&' 227 | operator>>(long double& __f) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 328 | operator>>(void*& __p) | ^~~~~~~~ /usr/include/c++/14/istream:328:25: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'void*&' 328 | operator>>(void*& __p) | ~~~~~~~^~~ /usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 122 | operator>>(__istream_type& (*__pf)(__istream_type&)) | ^~~~~~~~ /usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'} 122 | operator>>(__istream_type& (*__pf)(__istream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]' 126 | operator>>(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 126 | operator>>(__ios_type& (*__pf)(__ios_type&)) | ~~~~~
s902983534
p03834
C++
#include<bits/stdc++.h> #include<string> using namespace std; int main(){ string s, t, u; cin >> s >> "," >> t >> "," >> u; cout << s << " " << t << " " << u << endl; }
a.cc: In function 'int main()': a.cc:7:28: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and 'const char [2]') 7 | string s, t, u; cin >> s >> "," >> t >> "," >> u; | ~~~~~~~~ ^~ ~~~ | | | | | const char [2] | std::basic_istream<char> In file included 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/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 170 | operator>>(bool& __n) | ^~~~~~~~ /usr/include/c++/14/istream:170:7: note: conversion of argument 1 would be ill-formed: a.cc:7:31: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'const char*' 7 | string s, t, u; cin >> s >> "," >> t >> "," >> u; | ^~~ /usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match) 174 | operator>>(short& __n); | ^~~~~~~~ /usr/include/c++/14/istream:174:7: note: conversion of argument 1 would be ill-formed: a.cc:7:31: error: invalid conversion from 'const char*' to 'short int' [-fpermissive] 7 | string s, t, u; cin >> s >> "," >> t >> "," >> u; | ^~~ | | | const char* a.cc:7:31: error: cannot bind rvalue '(short int)((const char*)",")' to 'short int&' /usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 177 | operator>>(unsigned short& __n) | ^~~~~~~~ /usr/include/c++/14/istream:177:7: note: conversion of argument 1 would be ill-formed: a.cc:7:31: error: invalid conversion from 'const char*' to 'short unsigned int' [-fpermissive] 7 | string s, t, u; cin >> s >> "," >> t >> "," >> u; | ^~~ | | | const char* a.cc:7:31: error: cannot bind rvalue '(short unsigned int)((const char*)",")' to 'short unsigned int&' /usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match) 181 | operator>>(int& __n); | ^~~~~~~~ /usr/include/c++/14/istream:181:7: note: conversion of argument 1 would be ill-formed: a.cc:7:31: error: invalid conversion from 'const char*' to 'int' [-fpermissive] 7 | string s, t, u; cin >> s >> "," >> t >> "," >> u; | ^~~ | | | const char* a.cc:7:31: error: cannot bind rvalue '(int)((const char*)",")' to 'int&' /usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 184 | operator>>(unsigned int& __n) | ^~~~~~~~ /usr/include/c++/14/istream:184:7: note: conversion of argument 1 would be ill-formed: a.cc:7:31: error: invalid conversion from 'const char*' to 'unsigned int' [-fpermissive] 7 | string s, t, u; cin >> s >> "," >> t >> "," >> u; | ^~~ | | | const char* a.cc:7:31: error: cannot bind rvalue '(unsigned int)((const char*)",")' to 'unsigned int&' /usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 188 | operator>>(long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:188:7: note: conversion of argument 1 would be ill-formed: a.cc:7:31: error: invalid conversion from 'const char*' to 'long int' [-fpermissive] 7 | string s, t, u; cin >> s >> "," >> t >> "," >> u; | ^~~ | | | const char* a.cc:7:31: error: cannot bind rvalue '(long int)((const char*)",")' to 'long int&' /usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 192 | operator>>(unsigned long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:192:7: note: conversion of argument 1 would be ill-formed: a.cc:7:31: error: invalid conversion from 'const char*' to 'long unsigned int' [-fpermissive] 7 | string s, t, u; cin >> s >> "," >> t >> "," >> u; | ^~~ | | | const char* a.cc:7:31: error: cannot bind rvalue '(long unsigned int)((const char*)",")' to 'long unsigned int&' /usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 199 | operator>>(long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:199:7: note: conversion of argument 1 would be ill-formed: a.cc:7:31: error: invalid conversion from 'const char*' to 'long long int' [-fpermissive] 7 | string s, t, u; cin >> s >> "," >> t >> "," >> u; | ^~~ | | | const char* a.cc:7:31: error: cannot bind rvalue '(long long int)((const char*)",")' to 'long long int&' /usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 203 | operator>>(unsigned long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:203:7: note: conversion of argument 1 would be ill-formed: a.cc:7:31: error: invalid conversion from 'const char*' to 'long long unsigned int' [-fpermissive] 7 | string s, t, u; cin >> s >> "," >> t >> "," >> u; | ^~~ | | | const char* a.cc:7:31: error: cannot bind rvalue '(long long unsigned int)((const char*)",")' to 'long long unsigned int&' /usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 328 | operator>>(void*& __p) | ^~~~~~~~ /usr/include/c++/14/istream:328:7: note: conversion of argument 1 would be ill-formed: a.cc:7:31: error: invalid conversion from 'const void*' to 'void*' [-fpermissive] 7 | string s, t, u; cin >> s >> "," >> t >> "," >> u; | ^~~ | | | const void* a.cc:7:31: error: cannot bind rvalue '(void*)((const void*)((const char*)","))' to 'void*&' /usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 219 | operator>>(float& __f) | ^~~~~~~~ /usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from 'const char [2]' to 'float&' 219 | operator>>(float& __f) | ~~~~~~~^~~ /usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 223 | operator>>(double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from 'const char [2]' to 'double&' 223 | operator>>(double& __f) | ~~~~~~~~^~~ /usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 227 | operator>>(long double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from 'const char [2]' to 'long double&' 227 | operator>>(long double& __f) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<
s791674188
p03834
C++
ource code Copy #include<bits/stdc++.h> using namespace std; int main(){ int x,y,z,k,s,ans=0; cin>>k>>s; for(x=0;x<=k;x++){ for(y=0;y<=k;y++){ z=s-x-y; if(x+y+z==s&&z<=k&&z>=0) ans++; } } cout<<ans; return 0; }
a.cc:1:1: error: 'ource' does not name a type 1 | ource code | ^~~~~ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:3: /usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity 164 | __is_null_pointer(std::nullptr_t) | ^ /usr/include/c++/14/ext/type_traits.h:159:5: note: previous declaration 'template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)' 159 | __is_null_pointer(_Type) | ^~~~~~~~~~~~~~~~~ /usr/include/c++/14/ext/type_traits.h:164:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'? 164 | __is_null_pointer(std::nullptr_t) | ^~~~~~~~~ In file included from /usr/include/c++/14/cstddef:50, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41: /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here 443 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:60, from /usr/include/c++/14/bits/stl_algobase.h:64: /usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'? 666 | struct is_null_pointer<std::nullptr_t> | ^~~~~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here 443 | typedef decltype(nullptr) nullptr_t; | ^~~~~~~~~ /usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid 666 | struct is_null_pointer<std::nullptr_t> | ^ /usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid 670 | struct is_null_pointer<const std::nullptr_t> | ^ /usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid 674 | struct is_null_pointer<volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid 678 | struct is_null_pointer<const volatile std::nullptr_t> | ^ /usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid 1429 | : public integral_constant<std::size_t, alignof(_Tp)> | ^ /usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1438 | : public integral_constant<std::size_t, 0> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid 1438 | : public integral_constant<std::size_t, 0> { }; | ^ /usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared 1440 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope 1441 | struct rank<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid 1441 | struct rank<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid 1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid 1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; | ^ /usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter /usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared 2086 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope 2087 | struct remove_extent<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid 2087 | struct remove_extent<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared 2099 | template<typename _Tp, std::size_t _Size> | ^~~ /usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope 2100 | struct remove_all_extents<_Tp[_Size]> | ^~~~~ /usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid 2100 | struct remove_all_extents<_Tp[_Size]> | ^ /usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared 2171 | template<std::size_t _Len> | ^~~ /usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope 2176 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared 2194 | template<std::size_t _Len, std::size_t _Align = | ^~~ /usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^~~~ /usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid 2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)> | ^ /usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope 2202 | unsigned char __data[_Len]; | ^~~~ /usr/include/c++/14/type_traits:2203:44: error: '_Align' was not declared in this scope 2203 | struct __attribute__((__aligned__((_Align)))) { } __align; | ^~~~~~ In file included from /usr/include/c++/14/bits/stl_tempbuf.h:59, from /usr/include/c++/14/bits/stl_algo.h:69, from /usr/include/c++/14/algorithm:61: /usr/include/c++/14/new:131:26: error: declaration of 'operator new' as non-function 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:131:44: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:132:41: error: attributes after parenthesized initializer ignored [-fpermissive] 132 | __attribute__((__externally_visible__)); | ^ /usr/include/c++/14/new:133:26: error: declaration of 'operator new []' as non-function 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/include/c++/14/new:133:46: error: 'size_t' is not a member of 'std'; did you mean 'size_t'? 133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~ /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here 214 | typedef __SIZE_TYPE__ size_t; | ^~~~~~ /usr/include/c++/14/new:134:41: error: attributes after parenthesized initializer ignored [-fpermissive] 134 | __attribute__((__externally_visible__)); | ^ /
s070906664
p03834
C++
#include <bits/stdc++.h> #define repd(i,a,b) for (int i=(a);i<(b);i++) #define rep(i,n) repd(i,0,n) typedef long long ll; using namespace std; const int MOD = 1000000007; const int INF = 1010000000; const double EPS = 1e-10; int h,w,x; char s[1000][1000]; bool visited [1000][1000]; pair<int,int> start,goal; queue<pair<int,pair<int,int>>> q; vector<pair<int,int>> ino; int main(){ string a,b,c,d;cin>>a>>b>>c>>d; /*if(a<1200){ cout << "ABC"; return 0; }else{ result = "ARC"; }*/ replace(a.begin(),a.end(),","," "); cout << a; }
In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /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:25:10: required from here 25 | replace(a.begin(),a.end(),","," "); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4293:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 4293 | if (*__first == __old_value) | ~~~~~~~~~^~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:4294:20: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 4294 | *__first = __new_value; | ~~~~~~~~~^~~~~~~~~~~~~ | | | const char*
s038774169
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; cout << S.at(0) << S.at(1) << S.at(2) << S.at(3) << S.at(4) << " " << S.at(6) << S.at(7) << S.at(8) << S.at(9) << S.at(10) << S.at(11) << S.at(12) << " " << S.at(14) << S.at(15) << S.at(16) << S.at(17) << S.at(18) << S.at(19) << endl; endl;} }
a.cc: In function 'int main()': a.cc:8:5: error: statement cannot resolve address of overloaded function 8 | endl;} | ^ a.cc: At global scope: a.cc:9:1: error: expected declaration before '}' token 9 | } | ^
s815006945
p03834
C++
#include<bits/stdc++.h> using namespace std; int main() { string S; cin >> S; S.replece(5, 1, " "); S.replace(13, 1, " "); cout << S << endl; }
a.cc: In function 'int main()': a.cc:6:11: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'replece'; did you mean 'replace'? 6 | S.replece(5, 1, " "); | ^~~~~~~ | replace
s713688477
p03834
C++
using namespace std; int main(){ string s; cin >> s; s[5] = " ", s[13] = " "; cout << s << endl; }
a.cc: In function 'int main()': a.cc:3:5: error: 'string' was not declared in this scope 3 | string s; | ^~~~~~ a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>' +++ |+#include <string> 1 | using namespace std; a.cc:4:5: error: 'cin' was not declared in this scope 4 | cin >> s; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:4:12: error: 's' was not declared in this scope 4 | cin >> s; | ^ a.cc:6:5: error: 'cout' was not declared in this scope 6 | cout << s << endl; | ^~~~ a.cc:6:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:6:18: error: 'endl' was not declared in this scope 6 | cout << s << endl; | ^~~~ a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' +++ |+#include <ostream> 1 | using namespace std;
s348244536
p03834
C++
using namespace std; int main(){ string s; cin >> s; s[5] = '', s[13] = ''; cout << s << endl; }
a.cc:5:12: error: empty character constant 5 | s[5] = '', s[13] = ''; | ^~ a.cc:5:24: error: empty character constant 5 | s[5] = '', s[13] = ''; | ^~ a.cc: In function 'int main()': a.cc:3:5: error: 'string' was not declared in this scope 3 | string s; | ^~~~~~ a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>' +++ |+#include <string> 1 | using namespace std; a.cc:4:5: error: 'cin' was not declared in this scope 4 | cin >> s; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:4:12: error: 's' was not declared in this scope 4 | cin >> s; | ^ a.cc:6:5: error: 'cout' was not declared in this scope 6 | cout << s << endl; | ^~~~ a.cc:6:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:6:18: error: 'endl' was not declared in this scope 6 | cout << s << endl; | ^~~~ a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>' +++ |+#include <ostream> 1 | using namespace std;
s552768338
p03834
C++
#include<bits/stdc++.h> #include<string> using namespace std; int main(){ string s; cin >> s; s[5] = '', s[13] = ''; cout << s << endl; }
a.cc:7:12: error: empty character constant 7 | s[5] = '', s[13] = ''; | ^~ a.cc:7:24: error: empty character constant 7 | s[5] = '', s[13] = ''; | ^~
s744282550
p03834
C++
#include<bits/stdc++.h> #include<string> using namespace std; int main(){ char s; cin >> s; cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; }
a.cc: In function 'int main()': a.cc:7:14: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:19: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:24: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:29: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:34: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:49: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:54: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:59: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:64: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:69: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:74: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:80: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:96: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:102: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:108: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:114: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^ a.cc:7:120: error: invalid types 'char[int]' for array subscript 7 | cout << s[0]+s[1]+s[2]+s[3]+s[4] << " " << s[5]+s[6]+s[7]+s[8]+s[9]+s[10]+s[11] << " " << s[12]+s[13]+s[14]+s[15]+s[16] << endl; | ^
s009117086
p03834
C++
#include<iostream> #include<string> using namespace std; int main(){ char s; cin >> s; s(5) = " "; s(13) = " "; cout << s << endl; }
a.cc: In function 'int main()': a.cc:6:6: error: 's' cannot be used as a function 6 | s(5) = " "; | ~^~~ a.cc:7:6: error: 's' cannot be used as a function 7 | s(13) = " "; | ~^~~~
s913198620
p03834
C++
#include<iostream> #include<string> using namespace std; int main(){ char s; cin >> s; s(5)) = " "; s(13) = " "; cout << s << endl; }
a.cc: In function 'int main()': a.cc:6:6: error: 's' cannot be used as a function 6 | s(5)) = " "; | ~^~~ a.cc:7:6: error: 's' cannot be used as a function 7 | s(13) = " "; | ~^~~~
s465669385
p03834
C++
#include<iostream> #include<string> using namespace std; int main(){ char s; cin >> s; s[5] = " "; s[13] = " "; cout << s << endl; }
a.cc: In function 'int main()': a.cc:6:6: error: invalid types 'char[int]' for array subscript 6 | s[5] = " "; | ^ a.cc:7:6: error: invalid types 'char[int]' for array subscript 7 | s[13] = " "; | ^
s562906690
p03834
C++
#include<iostream> #include<string> 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:12: 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:13: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 7 | s[13] = " "; | ^~~ | | | const char*
s536327698
p03834
C++
#include<stdio.h> #include<string.h> int main() { char a[25]; scanf("%s",&a); for(int i=0;i&lt;=18;i++) { if(i==5||i==13) { printf(" "); } else printf("%c",a[i] ); } }
a.cc: In function 'int main()': a.cc:7:23: error: 'lt' was not declared in this scope 7 | for(int i=0;i&lt;=18;i++) | ^~ a.cc:7:26: error: expected primary-expression before '=' token 7 | for(int i=0;i&lt;=18;i++) | ^ a.cc:7:29: error: expected ')' before ';' token 7 | for(int i=0;i&lt;=18;i++) | ~ ^ | ) a.cc:7:30: error: 'i' was not declared in this scope 7 | for(int i=0;i&lt;=18;i++) | ^
s421285095
p03834
C++
#include<stdio.h> #include<string.h> int main() { char a[25]; scanf("%s",&a); for(int i=0;i&lt;=18;i++) { if(i==5||i==13) { printf(" "); } else printf("%c",a[i] ); } }
a.cc: In function 'int main()': a.cc:7:23: error: 'lt' was not declared in this scope 7 | for(int i=0;i&lt;=18;i++) | ^~ a.cc:7:26: error: expected primary-expression before '=' token 7 | for(int i=0;i&lt;=18;i++) | ^ a.cc:7:29: error: expected ')' before ';' token 7 | for(int i=0;i&lt;=18;i++) | ~ ^ | ) a.cc:7:30: error: 'i' was not declared in this scope 7 | for(int i=0;i&lt;=18;i++) | ^
s620288002
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:6: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 6 | s[5]=" ",s[13]=" "; | ^~~ | | | const char* a.cc:6:16: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 6 | s[5]=" ",s[13]=" "; | ^~~ | | | const char*
s758970044
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:8: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 6 | s[5]=" ",s[13]=" "; | ^~~ | | | const char* a.cc:6:18: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 6 | s[5]=" ",s[13]=" "; | ^~~ | | | const char*
s966338873
p03834
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; s[5]=" "; s[13]=" "; cout<<s<<endl; }
a.cc: In function 'int main()': a.cc:5:8: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 5 | s[5]=" "; | ^~~ | | | const char* a.cc:6:9: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 6 | s[13]=" "; | ^~~ | | | const char*
s280146987
p03834
Java
import java.util.Scanner; public class MAin { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); sc.close(); S = S.replaceAll(",", " "); System.out.println(S); } }
Main.java:3: error: class MAin is public, should be declared in a file named MAin.java public class MAin { ^ 1 error
s898957351
p03834
C++
#! /usr/bin/python3 # Haiku """ s の長さは 19 である。 s の 6 文字目と 14 文字目は , である。 それら以外の s の文字は英小文字である。 """ # s = input() # s = s.replace(',', ' ') print(input().replace(',', ' '))
a.cc:1:2: error: invalid preprocessing directive #! 1 | #! /usr/bin/python3 | ^ a.cc:2:3: error: invalid preprocessing directive #Haiku 2 | # Haiku | ^~~~~ a.cc:4:3: warning: missing terminating " character 4 | """ | ^ a.cc:4:3: error: missing terminating " character a.cc:5:19: error: extended character 。 is not valid in an identifier 5 | s の長さは 19 である。 | ^ a.cc:6:35: error: extended character 。 is not valid in an identifier 6 | s の 6 文字目と 14 文字目は , である。 | ^ a.cc:7:20: error: extended character 。 is not valid in an identifier 7 | それら以外の s の文字は英小文字である。 | ^ a.cc:8:3: warning: missing terminating " character 8 | """ | ^ a.cc:8:3: error: missing terminating " character a.cc:10:3: error: invalid preprocessing directive #s 10 | # s = input() | ^ a.cc:11:3: error: invalid preprocessing directive #s 11 | # s = s.replace(',', ' ') | ^ a.cc:4:1: error: expected unqualified-id before string constant 4 | """ | ^~
s276677145
p03834
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; for(char &c;s) if(c==',') c=' '; cout<<s<<endl; }
a.cc: In function 'int main()': a.cc:8:17: error: 'c' declared as reference but not initialized 8 | for(char &c;s) if(c==',') c=' '; | ^ a.cc:8:19: error: could not convert 's' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool' 8 | for(char &c;s) if(c==',') c=' '; | ^ | | | std::string {aka std::__cxx11::basic_string<char>} a.cc:8:20: error: expected ';' before ')' token 8 | for(char &c;s) if(c==',') c=' '; | ^ | ;
s281206007
p03834
C++
#include <bits/stdc++.h>; using namespace std; int main(){ string s; cin>>s; for(char &c;s) if(c==',') c=' '; cout<<s<<endl; }
a.cc:1:25: warning: extra tokens at end of #include directive 1 | #include <bits/stdc++.h>; | ^ a.cc: In function 'int main()': a.cc:8:13: error: 'c' declared as reference but not initialized 8 | for(char &c;s) if(c==',') c=' '; | ^ a.cc:8:15: error: could not convert 's' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool' 8 | for(char &c;s) if(c==',') c=' '; | ^ | | | std::string {aka std::__cxx11::basic_string<char>} a.cc:8:16: error: expected ';' before ')' token 8 | for(char &c;s) if(c==',') c=' '; | ^ | ;
s164507707
p03834
C
#include<stdio.h> int main { char s[25]; scanf ("%s",&s); s[5]=''; s[13]=''; printf ("%s\n",s); }
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 3 | { | ^ main.c:6:6: error: empty character constant 6 | s[5]=''; | ^~ main.c:7:7: error: empty character constant 7 | s[13]=''; | ^~
s019230828
p03834
C++
#include <stdio.h> #include <stdlib.h> void main() { int A, B,c,d,e; scanf("%d%d", &A, &B); c = A + B; d = c - 24; e = 0; if (c <24) { printf("%d\n", c); } else { if (c == 46) { printf("%d\n",e); } else printf("%d\n", d); } system("pause"); }
a.cc:3:1: error: '::main' must return 'int' 3 | void main() | ^~~~
s691439407
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:7:3: error: 'replace' was not declared in this scope 7 | replace(S.begin(), S.end(), ',', ' '); | ^~~~~~~
s326136271
p03834
C
include <stdio.h> int main(void) { char s[20]; scanf("%s", s); s[5] = ' '; s[13] = ' '; printf("%s\n", s); return 0; }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s491429151
p03834
C
#include <stdio.h> in main(){char s[20];scanf("%s",s);s[5]=0;s[13]=0;printf("%s",s);}
main.c:2:1: error: unknown type name 'in'; did you mean 'int'? 2 | in main(){char s[20];scanf("%s",s);s[5]=0;s[13]=0;printf("%s",s);} | ^~ | int
s243611387
p03834
C++
#include<bits/stdc++.h> using namespace std; int main(){ string str; cin >> str; int ix=0; while((ix = str.find(",", ix)) >=0){ str.replace(ix, strlen(","), " ") } cout << str << endl; }
a.cc: In function 'int main()': a.cc:10:38: error: expected ';' before '}' token 10 | str.replace(ix, strlen(","), " ") | ^ | ; 11 | } | ~
s150859967
p03834
C++
#include <bits/stdc++.h> 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:6:8: 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:9: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 7 | s[13]=" "; | ^~~ | | | const char*
s140410582
p03834
C++
#include<iostream> #include<string> using namespace std; int main() { char a[19]; cin >> a; a[5] = " "; a[13] = " "; cout << a; return 0; }
a.cc: In function 'int main()': a.cc:9:16: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 9 | a[5] = " "; | ^~~ | | | const char* a.cc:10:17: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 10 | a[13] = " "; | ^~~ | | | const char*
s701370877
p03834
C++
#include <string> using namespace std; int main() { string str; cin >> str; str.insert(str.begin() + 6, ' '); str.insert(str.begin() + 15, ' '); str.erase(str.begin() + 5); str.erase(str.begin() + 13); cout << str << endl; return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope 6 | cin >> str; | ^~~ 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:13:9: error: 'cout' was not declared in this scope 13 | cout << str << endl; | ^~~~ a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' a.cc:13:24: error: 'endl' was not declared in this scope 13 | cout << str << 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;
s501093834
p03834
C++
#include<iostream> using namespace std; int main(){ string str; cin >> str; for(int i=0;i<str.size();i++){ if(str[i] == ","){ str[i] = " "; } } cout << str << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if(str[i] == ","){ a.cc:10:16: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 10 | str[i] = " "; | ^~~ | | | const char*
s177930247
p03834
C++
#include<iostream> using namespace std; int main(){ string str; cin >> str; for(int i=0;i<str..size();i++){ if(str[i] == ','){ str[i] = ' '; } } cout << str << endl; return 0; }
a.cc: In function 'int main()': a.cc:8:21: error: expected unqualified-id before '.' token 8 | for(int i=0;i<str..size();i++){ | ^
s900769319
p03834
C++
/* |\_/| |* *| \_+_/ */ #include<bits/stdc++.h> #define endl '\n' using namespace std; int main(){ cin.tie(0); // cout と cin の同期を切る ios::sync_with_stdio(false); /* cの stdioストリーム (printfとか)と*/ string s; cin>>s; for(int i=0;<s.length();i++){ if(s[i]==','){ cout<<' '; }else{ cout<<s[i]; } } cout<<endl; }
a.cc: In function 'int main()': a.cc:21:15: error: expected primary-expression before '<' token 21 | for(int i=0;<s.length();i++){ | ^
s616090172
p03834
C++
#include <stdio.h> #include <string> #include <iostream> #include <map> using namespace std; int main(void){ string str; cin >> str; str[5]=str[13]=" "; cout << str <<endl; return 0; }
a.cc: In function 'int main()': a.cc:10:20: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 10 | str[5]=str[13]=" "; | ^~~ | | | const char*
s989739453
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { /*int a, s, d; cin >> a >> s >> d ; if(a+s==d || a+d==s || s+d==a) cout << "Yes" << endl; else cout << "No" << endl;*/ string s; cin >> s; s[5] == " "; s[13] == " "; cout << s << endl; }
a.cc: In function 'int main()': a.cc:14:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 14 | s[5] == " "; a.cc:15:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 15 | s[13] == " ";
s341943349
p03834
C++
#include <iostream> #include <string> using namespace std; int main(int argc, char const *argv[]) { string s; cin >> s; replace(s.begin(), s.end(), ',',' '); cout << s << endl; return 0; }
a.cc: In function 'int main(int, const char**)': a.cc:9:3: error: 'replace' was not declared in this scope 9 | replace(s.begin(), s.end(), ',',' '); | ^~~~~~~
s186163140
p03834
C++
#include <iostream> using namespace std; int main(){ int k=0, s=0; cin >> k >> s; int counter=0; int x=0,y=0,z=0; for(int i=0; i<=k; ++i){ for(int j=i; j<=k; ++j){ x = i;s y = j; z = k - x - y; if(z>=0) ++counter; } } cout << counter << endl; }
a.cc: In function 'int main()': a.cc:12:20: error: expected ';' before 'y' 12 | x = i;s | ^ | ; 13 | y = j; | ~
s122705114
p03834
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; s.at(5) = " "; s.at(13) = " "; cout << s << endl; return 0; }
a.cc: In function 'int main()': a.cc:8:13: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 8 | s.at(5) = " "; | ^~~ | | | const char* a.cc:9:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | s.at(13) = " "; | ^~~ | | | const char*
s507493265
p03834
C++
#include <iostream> using namespace std; int main() { string s; cin >> s; for(auto c:s){ if(c == ","){ cout << " "; }else{ cout << c; } } return 0; }
a.cc: In function 'int main()': a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 9 | if(c == ","){ | ~~^~~~~~
s971933023
p03834
C++
#include <iostream> #include <string> using namespace std; int main(){ string a cin>>a; a[5]=' '; a[13]=' '; cout<<a<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: expected initializer before 'cin' 6 | cin>>a; | ^~~ a.cc:7:3: error: 'a' was not declared in this scope 7 | a[5]=' '; | ^
s110315928
p03834
C++
#include <iostream> #include <string> using namespace std; int main(){ string a cin>>a; int a[5]=' ',a[13]=' '; cout<<a<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: expected initializer before 'cin' 6 | cin>>a; | ^~~ a.cc:7:12: error: array must be initialized with a brace-enclosed initializer 7 | int a[5]=' ',a[13]=' '; | ^~~ a.cc:7:16: error: conflicting declaration 'int a [13]' 7 | int a[5]=' ',a[13]=' '; | ^ a.cc:7:7: note: previous declaration as 'int a [5]' 7 | int a[5]=' ',a[13]=' '; | ^
s172534575
p03834
C++
haiku,atcoder,tasks
a.cc:1:1: error: 'haiku' does not name a type 1 | haiku,atcoder,tasks | ^~~~~
s433819961
p03834
C++
#include <iostream> #include<algorithm> #include<math.h> #include<set> #include<vector> using namespace std; int main() { ll K, S; cin >> K >> S; ll cnt = 0; for (ll x = 0; x <= K; ++x) { for (ll y = 0; y <= K; ++y) { ll z = S - x - y; if (z >= 0 && z <= K) ++cnt; } } cout << cnt << endl; }
a.cc: In function 'int main()': a.cc:8:9: error: 'll' was not declared in this scope 8 | ll K, S; | ^~ a.cc:9:16: error: 'K' was not declared in this scope 9 | cin >> K >> S; | ^ a.cc:9:21: error: 'S' was not declared in this scope 9 | cin >> K >> S; | ^ a.cc:10:11: error: expected ';' before 'cnt' 10 | ll cnt = 0; | ^~~~ | ; a.cc:11:16: error: expected ';' before 'x' 11 | for (ll x = 0; x <= K; ++x) { | ^~ | ; a.cc:11:24: error: 'x' was not declared in this scope 11 | for (ll x = 0; x <= K; ++x) { | ^ a.cc:12:24: error: expected ';' before 'y' 12 | for (ll y = 0; y <= K; ++y) { | ^~ | ; a.cc:12:32: error: 'y' was not declared in this scope; did you mean 'yn'? 12 | for (ll y = 0; y <= K; ++y) { | ^ | yn a.cc:13:27: error: expected ';' before 'z' 13 | ll z = S - x - y; | ^~ | ; a.cc:14:29: error: 'z' was not declared in this scope 14 | if (z >= 0 && z <= K) ++cnt; | ^ a.cc:14:49: error: 'cnt' was not declared in this scope; did you mean 'int'? 14 | if (z >= 0 && z <= K) ++cnt; | ^~~ | int a.cc:17:17: error: 'cnt' was not declared in this scope; did you mean 'int'? 17 | cout << cnt << endl; | ^~~ | int
s260559406
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { int string; cin >> s; for(int i=0;i<s.size();i++) { if(s[i] == ',') cout << " "; else cout << s[i]; } }
a.cc: In function 'int main()': a.cc:8:12: error: 's' was not declared in this scope 8 | cin >> s; | ^
s780572036
p03834
C++
int main(void){ string s; cin >> s; s[5]=’ ’,s[13]=’ ’; cout << s << endl; return 0; }
a.cc:4:8: error: extended character ’ is not valid in an identifier 4 | s[5]=’ ’,s[13]=’ ’; | ^ a.cc:4:10: error: extended character ’ is not valid in an identifier 4 | s[5]=’ ’,s[13]=’ ’; | ^ a.cc:4:18: error: extended character ’ is not valid in an identifier 4 | s[5]=’ ’,s[13]=’ ’; | ^ a.cc:4:20: error: extended character ’ is not valid in an identifier 4 | s[5]=’ ’,s[13]=’ ’; | ^ a.cc: In function 'int main()': a.cc:2:3: error: 'string' was not declared in this scope 2 | string s; | ^~~~~~ a.cc:3:3: error: 'cin' was not declared in this scope 3 | cin >> s; | ^~~ a.cc:3:10: error: 's' was not declared in this scope 3 | cin >> s; | ^ a.cc:4:8: error: '\U00002019' was not declared in this scope 4 | s[5]=’ ’,s[13]=’ ’; | ^ a.cc:5:3: error: 'cout' was not declared in this scope 5 | cout << s << endl; | ^~~~ a.cc:5:16: error: 'endl' was not declared in this scope 5 | cout << s << endl; | ^~~~
s411186574
p03834
C++
#include <bits/stdc++.h> using namespace std; int main(void) { 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:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 8 | s[13] = " "; | ^~~ | | | const char*
s967549148
p03834
C++
#include <bits/stdc++.h> using namespace std; int main(void) { string s; cin >> s; s.at(5) = " "; s.at(13) = " "; cout << s << endl;}
a.cc: In function 'int main()': a.cc:7:13: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 7 | s.at(5) = " "; | ^~~ | | | const char* a.cc:8:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 8 | s.at(13) = " "; | ^~~ | | | const char*
s817143665
p03834
C++
#include <bits/stdc++.h> using namespace std; int main(void) { string s,a; cin >> s; a=s; a.at(5) = " "; a.at(13) = " "; cout << a << endl;}
a.cc: In function 'int main()': a.cc:8:13: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 8 | a.at(5) = " "; | ^~~ | | | const char* a.cc:9:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | a.at(13) = " "; | ^~~ | | | const char*
s171093214
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string s,a; cin >> s; a=s; a.at(5) = " "; a.at(13) = " "; cout << a << endl;}
a.cc: In function 'int main()': a.cc:8:13: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 8 | a.at(5) = " "; | ^~~ | | | const char* a.cc:9:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | a.at(13) = " "; | ^~~ | | | const char*
s867226635
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string s,a; cin >> s; a=s; a.at(5)=" "; a.at(13)=" "; cout << a << endl;}
a.cc: In function 'int main()': a.cc:8:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 8 | a.at(5)=" "; | ^~~ | | | const char* a.cc:9:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | a.at(13)=" "; | ^~~ | | | const char*
s891969466
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string s,a; cin >> s; a=s; s.at(5)=" "; s.at(13)=" "; cout << s << endl;}
a.cc: In function 'int main()': a.cc:8:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 8 | s.at(5)=" "; | ^~~ | | | const char* a.cc:9:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | s.at(13)=" "; | ^~~ | | | const char*
s856012960
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string s,a; cin >> s; a=s; a.at(5)=" "; a.at(13)=" "; cout << a << endl;}
a.cc: In function 'int main()': a.cc:8:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 8 | a.at(5)=" "; | ^~~ | | | const char* a.cc:9:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | a.at(13)=" "; | ^~~ | | | const char*
s816491839
p03834
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; string g = s.substr(0,5); string si = s.substr(6,7); string go = s.substr(9,5); cout << g << " " << si << " " << go << endl; return 0; }p
a.cc:12:2: error: 'p' does not name a type 12 | }p | ^
s590318300
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:8:8: 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:9: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | s[13]=" "; | ^~~ | | | const char*
s393019290
p03834
C++
#include<algorithm> #include <iostream> #include<cstdio> #include<cmath> #include<iomanip> #include<string> using namespace std; int main(){ string s; cin>>s; for(int i=0;i<5;i++){ cout<<s[i]; } cout<<" "; for(int i=6;i<13;i++){ cout<<s[i]; } cout<<" "; for(int i=14;i<19;i++){ cour<<s[i]<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:22:9: error: 'cour' was not declared in this scope 22 | cour<<s[i]<<endl; | ^~~~
s583569941
p03834
C++
#include <sstream> #include <iostream> #include <string> #include <cstring> #include <stdio.h> using namespace std; int main(){ string s; cin >> s; s[5] = " "; s[13] = " "; for (int i = 0; i < 19; i++){ cout << s[i] ; } endl; return 0; }
a.cc: In function 'int main()': a.cc:10:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 10 | s[5] = " "; | ^~~ | | | const char* a.cc:11:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 11 | s[13] = " "; | ^~~ | | | const char* a.cc:15:7: error: statement cannot resolve address of overloaded function 15 | endl; | ^
s829423672
p03834
C++
#include <sstream> #include <iostream> #include <string> #include <cstring> #include <stdio.h> using namespace std; int main(){ char s; cin >> s; s[5] = " "; s[13] = " "; for (int i = 0; i < 19; i++){ cout << s[i] ; } endl; return 0; }
a.cc: In function 'int main()': a.cc:10:4: error: invalid types 'char[int]' for array subscript 10 | s[5] = " "; | ^ a.cc:11:4: error: invalid types 'char[int]' for array subscript 11 | s[13] = " "; | ^ a.cc:13:12: error: invalid types 'char[int]' for array subscript 13 | cout << s[i] ; | ^ a.cc:15:7: error: statement cannot resolve address of overloaded function 15 | endl; | ^
s533623314
p03834
C++
#include <sstream> #include <iostream> #include <string> #include <cstring> #include <stdio.h> using namespace std; int main(){ char s[100]; cin >> s; s[5] = " "; s[13] = " "; for (int i = 0; i < 19; i++){ cout << s[i] ; } endl; return 0; }
a.cc: In function 'int main()': a.cc:10:10: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 10 | s[5] = " "; | ^~~ | | | const char* a.cc:11:11: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 11 | s[13] = " "; | ^~~ | | | const char* a.cc:15:7: error: statement cannot resolve address of overloaded function 15 | endl; | ^
s668431280
p03834
C++
#include <sstream> #include <iostream> #include <string> #include <cstring> #include <stdio.h> using namespace std; int main(){ char * s[100]; cin >> s; s[5] = " "; s[13] = " "; for (int i; i < 19; i++){ cout << s[i] ; } endl; return 0; }
a.cc: In function 'int main()': a.cc:9:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'char* [100]') 9 | cin >> s; | ~~~ ^~ ~ | | | | | char* [100] | std::istream {aka std::basic_istream<char>} In file included from /usr/include/c++/14/sstream:40, from a.cc:1: /usr/include/c++/14/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 170 | operator>>(bool& __n) | ^~~~~~~~ /usr/include/c++/14/istream:170:7: note: conversion of argument 1 would be ill-formed: a.cc:9:10: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'char**' 9 | cin >> s; | ^ /usr/include/c++/14/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match) 174 | operator>>(short& __n); | ^~~~~~~~ /usr/include/c++/14/istream:174:7: note: conversion of argument 1 would be ill-formed: a.cc:9:10: error: invalid conversion from 'char**' to 'short int' [-fpermissive] 9 | cin >> s; | ^ | | | char** a.cc:9:10: error: cannot bind rvalue '(short int)((char**)(& s))' to 'short int&' /usr/include/c++/14/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 177 | operator>>(unsigned short& __n) | ^~~~~~~~ /usr/include/c++/14/istream:177:7: note: conversion of argument 1 would be ill-formed: a.cc:9:10: error: invalid conversion from 'char**' to 'short unsigned int' [-fpermissive] 9 | cin >> s; | ^ | | | char** a.cc:9:10: error: cannot bind rvalue '(short unsigned int)((char**)(& s))' to 'short unsigned int&' /usr/include/c++/14/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match) 181 | operator>>(int& __n); | ^~~~~~~~ /usr/include/c++/14/istream:181:7: note: conversion of argument 1 would be ill-formed: a.cc:9:10: error: invalid conversion from 'char**' to 'int' [-fpermissive] 9 | cin >> s; | ^ | | | char** a.cc:9:10: error: cannot bind rvalue '(int)((char**)(& s))' to 'int&' /usr/include/c++/14/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 184 | operator>>(unsigned int& __n) | ^~~~~~~~ /usr/include/c++/14/istream:184:7: note: conversion of argument 1 would be ill-formed: a.cc:9:10: error: invalid conversion from 'char**' to 'unsigned int' [-fpermissive] 9 | cin >> s; | ^ | | | char** a.cc:9:10: error: cannot bind rvalue '(unsigned int)((char**)(& s))' to 'unsigned int&' /usr/include/c++/14/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 188 | operator>>(long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:188:7: note: conversion of argument 1 would be ill-formed: a.cc:9:10: error: invalid conversion from 'char**' to 'long int' [-fpermissive] 9 | cin >> s; | ^ | | | char** a.cc:9:10: error: cannot bind rvalue '(long int)((char**)(& s))' to 'long int&' /usr/include/c++/14/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 192 | operator>>(unsigned long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:192:7: note: conversion of argument 1 would be ill-formed: a.cc:9:10: error: invalid conversion from 'char**' to 'long unsigned int' [-fpermissive] 9 | cin >> s; | ^ | | | char** a.cc:9:10: error: cannot bind rvalue '(long unsigned int)((char**)(& s))' to 'long unsigned int&' /usr/include/c++/14/istream:199:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 199 | operator>>(long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:199:7: note: conversion of argument 1 would be ill-formed: a.cc:9:10: error: invalid conversion from 'char**' to 'long long int' [-fpermissive] 9 | cin >> s; | ^ | | | char** a.cc:9:10: error: cannot bind rvalue '(long long int)((char**)(& s))' to 'long long int&' /usr/include/c++/14/istream:203:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 203 | operator>>(unsigned long long& __n) | ^~~~~~~~ /usr/include/c++/14/istream:203:7: note: conversion of argument 1 would be ill-formed: a.cc:9:10: error: invalid conversion from 'char**' to 'long long unsigned int' [-fpermissive] 9 | cin >> s; | ^ | | | char** a.cc:9:10: error: cannot bind rvalue '(long long unsigned int)((char**)(& s))' to 'long long unsigned int&' /usr/include/c++/14/istream:328:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 328 | operator>>(void*& __p) | ^~~~~~~~ /usr/include/c++/14/istream:328:7: note: conversion of argument 1 would be ill-formed: a.cc:9:10: error: cannot bind non-const lvalue reference of type 'void*&' to an rvalue of type 'void*' 9 | cin >> s; | ^ /usr/include/c++/14/istream:219:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 219 | operator>>(float& __f) | ^~~~~~~~ /usr/include/c++/14/istream:219:25: note: no known conversion for argument 1 from 'char* [100]' to 'float&' 219 | operator>>(float& __f) | ~~~~~~~^~~ /usr/include/c++/14/istream:223:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 223 | operator>>(double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:223:26: note: no known conversion for argument 1 from 'char* [100]' to 'double&' 223 | operator>>(double& __f) | ~~~~~~~~^~~ /usr/include/c++/14/istream:227:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 227 | operator>>(long double& __f) | ^~~~~~~~ /usr/include/c++/14/istream:227:31: note: no known conversion for argument 1 from 'char* [100]' to 'long double&' 227 | operator>>(long double& __f) | ~~~~~~~~~~~~~^~~ /usr/include/c++/14/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' 122 | operator>>(__istream_type& (*__pf)(__istream_type&)) | ^~~~~~~~ /usr/include/c++/14/istream:122:36: note: no known conversion for argument 1 from 'char* [100]' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'} 122 | operator>>(__istream_type& (*__pf)(__istream_type&)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]' 126 | operator>>(__ios_type& (*__pf)(__ios_type&)) | ^~~~~~~~ /usr/include/c++/14/istream:126:32: note: no known conversion for argument 1 from 'char* [100]' to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} 126 | operator>>(__ios_type& (*__pf)(__ios_type&)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/14/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_trai
s967910676
p03834
C++
#include <sstream> #include <iostream> #include <string> #include <cstring> #include <stdio.h> using namespace std; int main(){ char s[100]; cin >> s; s[5] = " "; s[13] = " "; for (int i; i < 19; i++){ cout << s[i] ; } endl; return 0; }
a.cc: In function 'int main()': a.cc:10:10: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 10 | s[5] = " "; | ^~~ | | | const char* a.cc:11:11: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 11 | s[13] = " "; | ^~~ | | | const char* a.cc:15:7: error: statement cannot resolve address of overloaded function 15 | endl; | ^
s647368357
p03834
C++
#include <sstream> #include <iostream> #include <string> #include <ctsring> #include <stdio.h> using namespace std; int main(){ char s[100]; cin >> s; s[5] = " "; s[13] = " "; for (int i; i < 19; i++){ cout << s[i] ; } endl; return 0; }
a.cc:4:10: fatal error: ctsring: No such file or directory 4 | #include <ctsring> | ^~~~~~~~~ compilation terminated.
s765556793
p03834
C++
#include <sstream> #include <iostream> #include <string> #include <ctsring> using namespace std; int main(){ char s[100]; cin >> s; s[5] = " "; s[13] = " "; for (int i; i < 19; i++){ cout << s[i] ; } endl; return 0; }
a.cc:4:10: fatal error: ctsring: No such file or directory 4 | #include <ctsring> | ^~~~~~~~~ compilation terminated.
s303009153
p03834
C++
#include <sstream> #include <iostream> #include <string> using namespace std; int main(){ char s[100]; cin >> s; s[5] = " "; s[13] = " "; for (int i; i < 19; i++){ cout << s[i] ; } endl; return 0; }
a.cc: In function 'int main()': a.cc:8:10: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 8 | s[5] = " "; | ^~~ | | | const char* a.cc:9:11: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 9 | s[13] = " "; | ^~~ | | | const char* a.cc:13:7: error: statement cannot resolve address of overloaded function 13 | endl; | ^
s535545978
p03834
C++
#include <sstream> #include <iostream> #include <string> 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: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 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | s[13] = " "; | ^~~ | | | const char*
s734899596
p03834
C
#include<stdio.h> int main(){ char s[19]; scanf("%s",s); for(int i=0;i<20;i++){ if(s[i]==','){ printf("%c",' '); }else{ printf("%c",s[i]); } } printf("\n); return 0; }
main.c: In function 'main': main.c:12:10: warning: missing terminating " character 12 | printf("\n); | ^ main.c:12:10: error: missing terminating " character 12 | printf("\n); | ^~~~~ main.c:14:2: error: expected expression before 'return' 14 | return 0; | ^~~~~~ main.c:14:11: error: expected ';' before '}' token 14 | return 0; | ^ | ; 15 | } | ~
s000915517
p03834
C++
#include<iostream> #include<algorithm> #include<math.h> #include<set> #include<vector> #include<map> using namespace std; int main(){ string S; cin>>S; S[5]='',S[13]=''; cout<< S <<endl; }
a.cc:11:6: error: empty character constant 11 | S[5]='',S[13]=''; | ^~ a.cc:11:15: error: empty character constant 11 | S[5]='',S[13]=''; | ^~
s087342074
p03834
C++
use std::cmp::*; use std::io::*; fn main() { let a = read(); let b = read(); let c = read(); let d = read(); let d = a * b; let c = c * d; println!("{}", min(c, d)); } fn read() -> u32 { let s = stdin(); let b = s.bytes() .map(|c| c.unwrap() as char) .take_while(|c| !c.is_whitespace()) .collect::<String>(); b.parse::<u32>().unwrap() }
a.cc:1:1: error: 'use' does not name a type 1 | use std::cmp::*; | ^~~ a.cc:2:1: error: 'use' does not name a type 2 | use std::io::*; | ^~~ a.cc:3:1: error: 'fn' does not name a type 3 | fn main() { | ^~ a.cc:14:1: error: 'fn' does not name a type 14 | fn read() -> u32 { | ^~
s535024733
p03834
C++
#include <iostream> using namespace std; int main(){ int K,S; cin>>K>>S; int res=0; for(int x=0; x <= K; ++x){ for(int y=0; y <= K; ++y){ for(int z=0; z <= K; ++z){ int total = x + y + z if (total==X) ++res; } } } cout << res <<endl; }
a.cc: In function 'int main()': a.cc:13:1: error: expected ',' or ';' before 'if' 13 | if (total==X) ++res; | ^~
s436653963
p03834
C++
#include <iostream> 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:8:8: 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:9: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | s[13]=" "; | ^~~ | | | const char*
s789794998
p03834
C++
#include <cstdio> #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:10:5: error: 'replace' was not declared in this scope 10 | replace(s.begin(), s.end(), ',', ' '); | ^~~~~~~
s677207613
p03834
C++
include <iostream> using namespace std; int main() { string s; cin >> s; for (int i = 0; i < 19; i++) cout << (s.substr(i, 1) == "," ? " " : s.substr(i, 1)); cout << endl; }
a.cc:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:5:3: error: 'string' was not declared in this scope 5 | string s; | ^~~~~~ a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin >> s; | ^~~ a.cc:6:10: error: 's' was not declared in this scope 6 | cin >> s; | ^ a.cc:9:5: error: 'cout' was not declared in this scope 9 | cout << (s.substr(i, 1) == "," ? " " : s.substr(i, 1)); | ^~~~ a.cc:10:3: error: 'cout' was not declared in this scope 10 | cout << endl; | ^~~~ a.cc:10:11: error: 'endl' was not declared in this scope 10 | cout << endl; | ^~~~
s002473215
p03834
C++
include <iostream> using namespace std; int main() { string s; cin >> s; for (int i = 0; i < 19; i++) cout << (s.substr(i, 1) == "," ? " " : s.substr(i, 1)); cout << endl; }
a.cc:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:5:3: error: 'string' was not declared in this scope 5 | string s; | ^~~~~~ a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin >> s; | ^~~ a.cc:6:10: error: 's' was not declared in this scope 6 | cin >> s; | ^ a.cc:9:5: error: 'cout' was not declared in this scope 9 | cout << (s.substr(i, 1) == "," ? " " : s.substr(i, 1)); | ^~~~ a.cc:10:3: error: 'cout' was not declared in this scope 10 | cout << endl; | ^~~~ a.cc:10:11: error: 'endl' was not declared in this scope 10 | cout << endl; | ^~~~
s499380646
p03834
C++
include <iostream> using namespace std; int main() { string s; cin >> s; for (int i = 0; i < 19; i++) cout << (s.substr(i, 1) == "," ? " " : s.substr(i, 1)); cout << endl; }
a.cc:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:5:3: error: 'string' was not declared in this scope 5 | string s; | ^~~~~~ a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin >> s; | ^~~ a.cc:6:10: error: 's' was not declared in this scope 6 | cin >> s; | ^ a.cc:9:5: error: 'cout' was not declared in this scope 9 | cout << (s.substr(i, 1) == "," ? " " : s.substr(i, 1)); | ^~~~ a.cc:10:3: error: 'cout' was not declared in this scope 10 | cout << endl; | ^~~~ a.cc:10:11: error: 'endl' was not declared in this scope 10 | cout << endl; | ^~~~
s763219412
p03834
C++
#include<bits/stdc++.h> using namespace std; int main() { char a; while(a!=EOF) { a=getchar(); if(a==',') cout<<' '; else cout<<a; } return 0;
a.cc: In function 'int main()': a.cc:14:18: error: expected '}' at end of input 14 | return 0; | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s962399469
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; s.at(5) = " "; s.at(13) = " "; cout << s << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:15: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 7 | s.at(5) = " "; | ^~~ | | | const char* a.cc:8:16: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 8 | s.at(13) = " "; | ^~~ | | | const char*
s746864153
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin << s; s.at(5) = " "; s.at(13) = " "; cout << s << endl; return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 6 | cin << s; | ~~~ ^~ ~ | | | | | std::string {aka std::__cxx11::basic_string<char>} | std::istream {aka std::basic_istream<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:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)' 1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << s; | ^ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41: /usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)' 125 | operator<<(byte __b, _IntegerType __shift) noexcept | ^~~~~~~~ /usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed: a.cc:6:5: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte' 6 | cin << s; | ^~~ In file included from /usr/include/c++/14/bits/basic_string.h:47, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bitset:52, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52: /usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)' 763 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << s; | ^ /usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' 4077 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << s; | ^ /usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)' 1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << s; | ^ In file included from /usr/include/c++/14/bits/ios_base.h:46, from /usr/include/c++/14/streambuf:43, from /usr/include/c++/14/bits/streambuf_iterator.h:35, from /usr/include/c++/14/iterator:66, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54: /usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)' 339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) | ^~~~~~~~ /usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << s; | ^ In file included from /usr/include/c++/14/memory:80, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56: /usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)' 70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os, | ^~~~~~~~ /usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << s; | ^ 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: /usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)' 563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) | ^~~~~~~~ /usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << s; | ^ /usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)' 573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << s; | ^ /usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)' 579 | operator<<(basic_ostream<char, _Traits>& __out, char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << s; | ^ /usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)' 590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << s; | ^ /usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)' 595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c) | ^~~~~~~~ /usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << s; | ^ /usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)' 654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << s; | ^ In file included from /usr/include/c++/14/ostream:1022: /usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)' 307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>' 6 | cin << s; | ^ /usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)' 671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s) | ^~~~~~~~ /usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed: a.cc:6:12: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>' 6 | cin << s; | ^ /usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)' 684 | operator<<(basic_ostream<char, _Traits>& __