submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3 values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s581467194 | p03860 | C++ | #include<iostream>
using namespace std;
int main(){
vector<string> win;
cin >> win;
cout << "A" << win.at(8) << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'vector' was not declared in this scope
5 | vector<string> win;
| ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
1 | #include<iostream>
+++ |+#include <vector>
2 | using namespace std;
a.cc:5:16: error: expected primary-expression before '>' token
5 | vector<string> win;
| ^
a.cc:5:18: error: 'win' was not declared in this scope
5 | vector<string> win;
| ^~~
|
s907734391 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
stirng a, b, c; cin >> a >> b >> c;
cout << a.at(0) << b.at(0) << c.at(0) << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
5 | stirng a, b, c; cin >> a >> b >> c;
| ^~~~~~
a.cc:5:26: error: 'a' was not declared in this scope
5 | stirng a, b, c; cin >> a >> b >> c;
| ^
a.cc:5:31: error: 'b' was not declared in this scope
5 | stirng a, b, c; cin >> a >> b >> c;
| ^
a.cc:5:36: error: 'c' was not declared in this scope
5 | stirng a, b, c; cin >> a >> b >> c;
| ^
|
s065031097 | p03860 | C++ | #include<cstdio>
int main(){
char a, x, c;
scanf("%s %s %s", a, x, c);
printf("%s%s%s", a[0], x[0], c[0]);
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:21: error: invalid types 'char[int]' for array subscript
6 | printf("%s%s%s", a[0], x[0], c[0]);
| ^
a.cc:6:27: error: invalid types 'char[int]' for array subscript
6 | printf("%s%s%s", a[0], x[0], c[0]);
| ^
a.cc:6:33: error: invalid types 'char[int]' for array subscript
6 | printf("%s%s%s", a[0], x[0], c[0]);
| ^
|
s872662072 | p03860 | C++ | #include<cstdio>
int main(){
char s[100];
scanf("%s", s[]);
printf("A%sC", s[8]);
return 0;
}
| a.cc: In function 'int main()':
a.cc:4:17: error: expected primary-expression before ']' token
4 | scanf("%s", s[]);
| ^
|
s204290122 | p03860 | C++ | #include<cstdio>
int main(){
char x;
scanf("%s", x);
printf("A%sC", x[7]);
return 0;
} | a.cc: In function 'int main()':
a.cc:6:19: error: invalid types 'char[int]' for array subscript
6 | printf("A%sC", x[7]);
| ^
|
s309201131 | p03860 | C++ | #include <iostream>
using namespace std;
int main(){
long long a, b, x;
cin >> a >> b >> x;
a += (1 - a%x);
b -= b%x;
long long res=0;
if(a==b)
res =0;
else{
res = b/x - a/x +1;}
cout << res << endl;
}
| a.cc:8:1: error: extended character is not valid in an identifier
8 | b -= b%x;
| ^
a.cc: In function 'int main()':
a.cc:8:1: error: '\U00003000b' was not declared in this scope
8 | b -= b%x;
| ^~~
|
s882653857 | p03860 | C++ | #include <iostream>
using namespace std;
int main(){
long long a, b, x;
cin >> a >> b >> x;
a += 1 - a%x;
b -= b%x;
long long res=0;
if(a==b)
res =0;
else{
res = b/x - a/x +1;}
cout << res << endl;
}
| a.cc:8:1: error: extended character is not valid in an identifier
8 | b -= b%x;
| ^
a.cc: In function 'int main()':
a.cc:8:1: error: '\U00003000b' was not declared in this scope
8 | b -= b%x;
| ^~~
|
s641788239 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S,A,C;
cin >> S;
char X;
A="A";
C="C";
X=S.at(0);
string A2 = A + X;
cout << A2 + c << endl;
}
| a.cc: In function 'int main()':
a.cc:16:14: error: 'c' was not declared in this scope
16 | cout << A2 + c << endl;
| ^
|
s479529095 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S,A,C;
cin >> S;
char X;
A="A";
C="C";
X=S.at(0);
cout << "A"+X+"C" << endl;
}
| a.cc: In function 'int main()':
a.cc:14:14: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
14 | cout << "A"+X+"C" << endl;
| ~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s239076096 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S,A,C;
cin >> S;
char X;
A="A";
C="C";
X=S.at(0);
cout << AXC << endl;
}
| a.cc: In function 'int main()':
a.cc:14:9: error: 'AXC' was not declared in this scope
14 | cout << AXC << endl;
| ^~~
|
s309292155 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c;
cin >>a>>b>>c;
cout <<'A'<<s.at(0)<<'C';
}
| a.cc: In function 'int main()':
a.cc:7:15: error: 's' was not declared in this scope
7 | cout <<'A'<<s.at(0)<<'C';
| ^
|
s972524448 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> "AtCoder " >> s >> " Contest";
cout <<'A'<<s.at(0)<<'C';
}
| a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [9]')
6 | cin >> "AtCoder " >> s >> " Contest";
| ~~~ ^~ ~~~~~~~~~~
| | |
| | const char [9]
| std::istream {aka 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:6:10: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'const char*'
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
/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:6:10: error: invalid conversion from 'const char*' to 'short int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(short int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'short unsigned int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(short unsigned int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'unsigned int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(unsigned int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'long int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'long unsigned int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long unsigned int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'long long int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long long int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'long long unsigned int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long long unsigned int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const void*
a.cc:6:10: error: cannot bind rvalue '(void*)((const void*)((const char*)"AtCoder "))' 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 [9]' 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 [9]' 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 [9]' 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 'const char [9]' 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>:: |
s032610090 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> "AtCoder " >> s >> " Contest";
cout <<'A'<<s.at(0)<<'C';
}
| a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [9]')
6 | cin >> "AtCoder " >> s >> " Contest";
| ~~~ ^~ ~~~~~~~~~~
| | |
| | const char [9]
| std::istream {aka 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:6:10: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'const char*'
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
/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:6:10: error: invalid conversion from 'const char*' to 'short int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(short int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'short unsigned int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(short unsigned int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'unsigned int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(unsigned int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'long int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'long unsigned int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long unsigned int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'long long int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long long int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'long long unsigned int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long long unsigned int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const void*
a.cc:6:10: error: cannot bind rvalue '(void*)((const void*)((const char*)"AtCoder "))' 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 [9]' 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 [9]' 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 [9]' 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 'const char [9]' 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>:: |
s233711233 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s ;
cin >> "AtCoder " >> s >> " Contest";
cout <<'A'<<s.at(0)<<'c';
}
| a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [9]')
6 | cin >> "AtCoder " >> s >> " Contest";
| ~~~ ^~ ~~~~~~~~~~
| | |
| | const char [9]
| std::istream {aka 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:6:10: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'const char*'
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
/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:6:10: error: invalid conversion from 'const char*' to 'short int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(short int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'short unsigned int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(short unsigned int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'unsigned int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(unsigned int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'long int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'long unsigned int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long unsigned int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'long long int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long long int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const char*' to 'long long unsigned int' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long long unsigned int)((const char*)"AtCoder ")' 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:6:10: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
6 | cin >> "AtCoder " >> s >> " Contest";
| ^~~~~~~~~~
| |
| const void*
a.cc:6:10: error: cannot bind rvalue '(void*)((const void*)((const char*)"AtCoder "))' 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 [9]' 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 [9]' 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 [9]' 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 'const char [9]' 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>:: |
s007967333 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s ;
cin >> "AtCoder" >> s >> "Contest";
cout <<'A'<<s.at(0)<<'c';
}
| a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
6 | cin >> "AtCoder" >> s >> "Contest";
| ~~~ ^~ ~~~~~~~~~
| | |
| | const char [8]
| std::istream {aka 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:6:10: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'const char*'
6 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
/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:6:10: error: invalid conversion from 'const char*' to 'short int' [-fpermissive]
6 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(short int)((const char*)"AtCoder")' 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:6:10: error: invalid conversion from 'const char*' to 'short unsigned int' [-fpermissive]
6 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(short unsigned int)((const char*)"AtCoder")' 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:6:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
6 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(int)((const char*)"AtCoder")' 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:6:10: error: invalid conversion from 'const char*' to 'unsigned int' [-fpermissive]
6 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(unsigned int)((const char*)"AtCoder")' 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:6:10: error: invalid conversion from 'const char*' to 'long int' [-fpermissive]
6 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long int)((const char*)"AtCoder")' 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:6:10: error: invalid conversion from 'const char*' to 'long unsigned int' [-fpermissive]
6 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long unsigned int)((const char*)"AtCoder")' 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:6:10: error: invalid conversion from 'const char*' to 'long long int' [-fpermissive]
6 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long long int)((const char*)"AtCoder")' 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:6:10: error: invalid conversion from 'const char*' to 'long long unsigned int' [-fpermissive]
6 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:10: error: cannot bind rvalue '(long long unsigned int)((const char*)"AtCoder")' 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:6:10: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
6 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const void*
a.cc:6:10: error: cannot bind rvalue '(void*)((const void*)((const char*)"AtCoder"))' 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 [8]' 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 [8]' 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 [8]' 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 'const char [8]' 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, |
s916322070 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s ;
cin >>"AtCoder">> s>> "Contest";
cout <<'A'<<s.at(0)<<'c';
}
| a.cc: In function 'int main()':
a.cc:6:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
6 | cin >>"AtCoder">> s>> "Contest";
| ~~~ ^~~~~~~~~~~
| | |
| | const char [8]
| std::istream {aka 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:6:9: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'const char*'
6 | cin >>"AtCoder">> s>> "Contest";
| ^~~~~~~~~
/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:6:9: error: invalid conversion from 'const char*' to 'short int' [-fpermissive]
6 | cin >>"AtCoder">> s>> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:9: error: cannot bind rvalue '(short int)((const char*)"AtCoder")' 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:6:9: error: invalid conversion from 'const char*' to 'short unsigned int' [-fpermissive]
6 | cin >>"AtCoder">> s>> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:9: error: cannot bind rvalue '(short unsigned int)((const char*)"AtCoder")' 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:6:9: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
6 | cin >>"AtCoder">> s>> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:9: error: cannot bind rvalue '(int)((const char*)"AtCoder")' 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:6:9: error: invalid conversion from 'const char*' to 'unsigned int' [-fpermissive]
6 | cin >>"AtCoder">> s>> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:9: error: cannot bind rvalue '(unsigned int)((const char*)"AtCoder")' 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:6:9: error: invalid conversion from 'const char*' to 'long int' [-fpermissive]
6 | cin >>"AtCoder">> s>> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:9: error: cannot bind rvalue '(long int)((const char*)"AtCoder")' 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:6:9: error: invalid conversion from 'const char*' to 'long unsigned int' [-fpermissive]
6 | cin >>"AtCoder">> s>> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:9: error: cannot bind rvalue '(long unsigned int)((const char*)"AtCoder")' 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:6:9: error: invalid conversion from 'const char*' to 'long long int' [-fpermissive]
6 | cin >>"AtCoder">> s>> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:9: error: cannot bind rvalue '(long long int)((const char*)"AtCoder")' 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:6:9: error: invalid conversion from 'const char*' to 'long long unsigned int' [-fpermissive]
6 | cin >>"AtCoder">> s>> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:6:9: error: cannot bind rvalue '(long long unsigned int)((const char*)"AtCoder")' 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:6:9: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
6 | cin >>"AtCoder">> s>> "Contest";
| ^~~~~~~~~
| |
| const void*
a.cc:6:9: error: cannot bind rvalue '(void*)((const void*)((const char*)"AtCoder"))' 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 [8]' 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 [8]' 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 [8]' 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 'const char [8]' 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 = |
s721519066 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s
cin >>s
cout <<'A'<<s.at(0)<<'c';
} | a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
6 | cin >>s
| ^~~
|
s022478548 | p03860 | C | #include <stdio.h>
int main(){
char s[];
gets("%s",s);
printf("A%sC",&s[9]);
return 0;
} | main.c: In function 'main':
main.c:3:8: error: array size missing in 's'
3 | char s[];
| ^
main.c:4:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
4 | gets("%s",s);
| ^~~~
| fgets
|
s664240403 | p03860 | C | #include <stdio.h>
int main(){
char s[];
scanf("%s",s);
printf("A%sC",&s[9]);
return 0;
} | main.c: In function 'main':
main.c:3:8: error: array size missing in 's'
3 | char s[];
| ^
|
s352299471 | p03860 | C | #include <stdio.h>
int main(){
char s[101];
scanf("%s",s);
S[1] ='\0';
printf("A%sC",s);
return 0;
} | main.c: In function 'main':
main.c:5:3: error: 'S' undeclared (first use in this function)
5 | S[1] ='\0';
| ^
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
|
s403373855 | p03860 | C | #include <stdio.h>
int main(){
char s[101];
scanf("%s",s);
S[1] = \0;
printf("A%sC",s);
return 0;
} | main.c: In function 'main':
main.c:5:3: error: 'S' undeclared (first use in this function)
5 | S[1] = \0;
| ^
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:10: error: stray '\' in program
5 | S[1] = \0;
| ^
|
s025188168 | p03860 | C | #include <stdio.h>
int main(){
char s[101];
scandf("%s",s);
printf("A%sC",s[0]);
return 0;
} | main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scandf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
4 | scandf("%s",s);
| ^~~~~~
| scanf
|
s318908806 | p03860 | C | #include <stdio.h>
int main(){
char s[];
scan("%s",s);
printf("A%sC",s[0]);
return 0;
} | main.c: In function 'main':
main.c:3:8: error: array size missing in 's'
3 | char s[];
| ^
main.c:4:3: error: implicit declaration of function 'scan'; did you mean 'scanf'? [-Wimplicit-function-declaration]
4 | scan("%s",s);
| ^~~~
| scanf
|
s354782732 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int Atcoder, s, Contest ;
cin >> Atcoder >> s >> Contest;
string sat = Atcoder ;
string str = s ;
string con = Contest ;
cout << sat.at(0) << str.at(0) << con.at(0)
}
}
| a.cc: In function 'int main()':
a.cc:8:16: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
8 | string sat = Atcoder ;
| ^~~~~~~
a.cc:10:16: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
10 | string str = s ;
| ^
a.cc:12:16: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
12 | string con = Contest ;
| ^~~~~~~
a.cc:14:48: error: expected ';' before '}' token
14 | cout << sat.at(0) << str.at(0) << con.at(0)
| ^
| ;
15 | }
| ~
a.cc: At global scope:
a.cc:20:1: error: expected declaration before '}' token
20 | }
| ^
|
s731164756 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
char d=a.at(0);
cout << "A"+d+"C" << endl;
} | a.cc: In function 'int main()':
a.cc:8:15: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | cout << "A"+d+"C" << endl;
| ~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s709295444 | p03860 | C++ | #include "/etc/passwd" | a.cc:1:10: fatal error: /etc/passwd: No such file or directory
1 | #include "/etc/passwd"
| ^~~~~~~~~~~~~
compilation terminated.
|
s940229564 | p03860 | C++ | print( "A{}C".format((input().split()[1])[0]))
| a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token
1 | print( "A{}C".format((input().split()[1])[0]))
| ^
|
s411598870 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>"AtCoder">>s>>"Contest"
cout<<'A'<<s.at(0)<<'C'<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:6: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
6 | cin>>"AtCoder">>s>>"Contest"
| ~~~^~~~~~~~~~~
| | |
| | const char [8]
| std::istream {aka 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:6:8: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'const char*'
6 | cin>>"AtCoder">>s>>"Contest"
| ^~~~~~~~~
/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:6:8: error: invalid conversion from 'const char*' to 'short int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contest"
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(short int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'short unsigned int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contest"
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(short unsigned int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contest"
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'unsigned int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contest"
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(unsigned int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'long int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contest"
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'long unsigned int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contest"
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long unsigned int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'long long int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contest"
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long long int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'long long unsigned int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contest"
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long long unsigned int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contest"
| ^~~~~~~~~
| |
| const void*
a.cc:6:8: error: cannot bind rvalue '(void*)((const void*)((const char*)"AtCoder"))' 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 [8]' 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 [8]' 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 [8]' 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 'const char [8]' 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_ty |
s607147526 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cins>>s;
cout<<'A'<<s.at(0)<<'C'<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:3: error: 'cins' was not declared in this scope
6 | cins>>s;
| ^~~~
|
s743602164 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cins>>s;
cout<<'A'<<S.at(0)<<'C'<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:3: error: 'cins' was not declared in this scope
6 | cins>>s;
| ^~~~
a.cc:8:14: error: 'S' was not declared in this scope
8 | cout<<'A'<<S.at(0)<<'C'<<endl;
| ^
|
s346592962 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>"AtCoder>>s>>""Contes";
cout<<'A'<<S.at(0)<<'C'<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:6: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [19]')
6 | cin>>"AtCoder>>s>>""Contes";
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | const char [19]
| std::istream {aka 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:6:8: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'const char*'
6 | cin>>"AtCoder>>s>>""Contes";
| ^~~~~~~~~~~~~~~~~~~~~~
/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:6:8: error: invalid conversion from 'const char*' to 'short int' [-fpermissive]
6 | cin>>"AtCoder>>s>>""Contes";
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(short int)((const char*)"AtCoder>>s>>Contes")' 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:6:8: error: invalid conversion from 'const char*' to 'short unsigned int' [-fpermissive]
6 | cin>>"AtCoder>>s>>""Contes";
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(short unsigned int)((const char*)"AtCoder>>s>>Contes")' 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:6:8: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
6 | cin>>"AtCoder>>s>>""Contes";
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(int)((const char*)"AtCoder>>s>>Contes")' 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:6:8: error: invalid conversion from 'const char*' to 'unsigned int' [-fpermissive]
6 | cin>>"AtCoder>>s>>""Contes";
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(unsigned int)((const char*)"AtCoder>>s>>Contes")' 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:6:8: error: invalid conversion from 'const char*' to 'long int' [-fpermissive]
6 | cin>>"AtCoder>>s>>""Contes";
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long int)((const char*)"AtCoder>>s>>Contes")' 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:6:8: error: invalid conversion from 'const char*' to 'long unsigned int' [-fpermissive]
6 | cin>>"AtCoder>>s>>""Contes";
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long unsigned int)((const char*)"AtCoder>>s>>Contes")' 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:6:8: error: invalid conversion from 'const char*' to 'long long int' [-fpermissive]
6 | cin>>"AtCoder>>s>>""Contes";
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long long int)((const char*)"AtCoder>>s>>Contes")' 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:6:8: error: invalid conversion from 'const char*' to 'long long unsigned int' [-fpermissive]
6 | cin>>"AtCoder>>s>>""Contes";
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long long unsigned int)((const char*)"AtCoder>>s>>Contes")' 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:6:8: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
6 | cin>>"AtCoder>>s>>""Contes";
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| const void*
a.cc:6:8: error: cannot bind rvalue '(void*)((const void*)((const char*)"AtCoder>>s>>Contes"))' 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 [19]' 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 [19]' 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 [19]' 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 'const char [19]' 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: c |
s607245037 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>"AtCoder">>s>>"Contes"t;
cout<<'A'<<S.at(0)<<'C'<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:6: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
6 | cin>>"AtCoder">>s>>"Contes"t;
| ~~~^~~~~~~~~~~
| | |
| | const char [8]
| std::istream {aka 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:6:8: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'const char*'
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
/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:6:8: error: invalid conversion from 'const char*' to 'short int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(short int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'short unsigned int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(short unsigned int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'unsigned int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(unsigned int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'long int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'long unsigned int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long unsigned int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'long long int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long long int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'long long unsigned int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long long unsigned int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const void*
a.cc:6:8: error: cannot bind rvalue '(void*)((const void*)((const char*)"AtCoder"))' 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 [8]' 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 [8]' 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 [8]' 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 'const char [8]' 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 |
s826251672 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
strings s;
cin>>"AtCoder">>s>>"Contes"t;
cout<<'A'<<S.at(0)<<'C'<<endl;
}
| a.cc: In function 'int main()':
a.cc:4:3: error: 'strings' was not declared in this scope; did you mean 'stdin'?
4 | strings s;
| ^~~~~~~
| stdin
a.cc:6:6: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
6 | cin>>"AtCoder">>s>>"Contes"t;
| ~~~^~~~~~~~~~~
| | |
| | const char [8]
| std::istream {aka 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:6:8: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'const char*'
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
/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:6:8: error: invalid conversion from 'const char*' to 'short int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(short int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'short unsigned int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(short unsigned int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'unsigned int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(unsigned int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'long int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'long unsigned int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long unsigned int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'long long int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long long int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const char*' to 'long long unsigned int' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const char*
a.cc:6:8: error: cannot bind rvalue '(long long unsigned int)((const char*)"AtCoder")' 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:6:8: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
6 | cin>>"AtCoder">>s>>"Contes"t;
| ^~~~~~~~~
| |
| const void*
a.cc:6:8: error: cannot bind rvalue '(void*)((const void*)((const char*)"AtCoder"))' 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 [8]' 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 [8]' 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 [8]' 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 'const char [8]' 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>:: |
s455308423 | p03860 | C++ | #include<iostream>
#include<algorithm>
using namespace std;
int main(){
string a,b,c;
cin>>a>>b>>c;
transform(b.begin(),b.end(),b.begin(), toupper);
cout<<a<<b<<c<<endl;
}
| a.cc: In function 'int main()':
a.cc:7:14: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
7 | transform(b.begin(),b.end(),b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:7:14: note: couldn't deduce template parameter '_UnaryOperation'
7 | transform(b.begin(),b.end(),b.begin(), toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
s812632902 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string str;
cin >> str;
char c = str.at(7)
cout << "A" << c << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'cout'
8 | cout << "A" << c << "C" << endl;
| ^~~~
|
s467996142 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
char s;
cin >> s;
cout << "A" << s.at(0) << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:20: error: request for member 'at' in 's', which is of non-class type 'char'
7 | cout << "A" << s.at(0) << "C" << endl;
| ^~
|
s845521513 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string s;
cin >> s;
cout << "A" << s.st(0) << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:20: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'st'; did you mean 'at'?
7 | cout << "A" << s.st(0) << "C" << endl;
| ^~
| at
|
s489285516 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string AtCoder s Contest;
cin >> AtCoder s Contest;
char x = AtCoder s Contest.at(8);
cout << "A" << x << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:5:19: error: expected initializer before 's'
5 | string AtCoder s Contest;
| ^
a.cc:6:10: error: 'AtCoder' was not declared in this scope
6 | cin >> AtCoder s Contest;
| ^~~~~~~
|
s532177361 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string AtCoder s Contest;
cin >> AtCoder s Contest;
string x = AtCoder s Contest.at(8)
cout << "A" << x << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:5:19: error: expected initializer before 's'
5 | string AtCoder s Contest;
| ^
a.cc:6:10: error: 'AtCoder' was not declared in this scope
6 | cin >> AtCoder s Contest;
| ^~~~~~~
a.cc:7:22: error: expected ',' or ';' before 's'
7 | string x = AtCoder s Contest.at(8)
| ^
|
s347928296 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string AtCoder s Contest;
cin >> AtCoder s Contest;
cout << "A" << AtCoder s Contest.at(8) << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:5:19: error: expected initializer before 's'
5 | string AtCoder s Contest;
| ^
a.cc:6:10: error: 'AtCoder' was not declared in this scope
6 | cin >> AtCoder s Contest;
| ^~~~~~~
|
s537926081 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string x;
cin >> x;
string s = x.at(8);
cout << "A" << 's' << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:18: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
7 | string s = x.at(8);
| ~~~~^~~
|
s105409150 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string x;
cin >> x;
string s = x.at(8);
cout << "A" << s << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:18: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
7 | string s = x.at(8);
| ~~~~^~~
|
s639495153 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string s;
cin >> s;
cout << "A" << s.at(8) << "C" endl;
}
| a.cc: In function 'int main()':
a.cc:8:32: error: expected ';' before 'endl'
8 | cout << "A" << s.at(8) << "C" endl;
| ^~~~~
| ;
|
s731360430 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
string s;
cin >> s;
cout << "A" << " s.at(8)" << "C" endl;
}
| a.cc: In function 'int main()':
a.cc:8:35: error: expected ';' before 'endl'
8 | cout << "A" << " s.at(8)" << "C" endl;
| ^~~~~
| ;
|
s668279292 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> "AtCoder" >> s >> "Contest";
cout << "A"<< s.at(0) << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
7 | cin >> "AtCoder" >> s >> "Contest";
| ~~~ ^~ ~~~~~~~~~
| | |
| | const char [8]
| std::istream {aka 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:11: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'const char*'
7 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
/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:11: error: invalid conversion from 'const char*' to 'short int' [-fpermissive]
7 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:7:11: error: cannot bind rvalue '(short int)((const char*)"AtCoder")' 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:11: error: invalid conversion from 'const char*' to 'short unsigned int' [-fpermissive]
7 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:7:11: error: cannot bind rvalue '(short unsigned int)((const char*)"AtCoder")' 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:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
7 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:7:11: error: cannot bind rvalue '(int)((const char*)"AtCoder")' 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:11: error: invalid conversion from 'const char*' to 'unsigned int' [-fpermissive]
7 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:7:11: error: cannot bind rvalue '(unsigned int)((const char*)"AtCoder")' 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:11: error: invalid conversion from 'const char*' to 'long int' [-fpermissive]
7 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:7:11: error: cannot bind rvalue '(long int)((const char*)"AtCoder")' 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:11: error: invalid conversion from 'const char*' to 'long unsigned int' [-fpermissive]
7 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:7:11: error: cannot bind rvalue '(long unsigned int)((const char*)"AtCoder")' 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:11: error: invalid conversion from 'const char*' to 'long long int' [-fpermissive]
7 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:7:11: error: cannot bind rvalue '(long long int)((const char*)"AtCoder")' 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:11: error: invalid conversion from 'const char*' to 'long long unsigned int' [-fpermissive]
7 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:7:11: error: cannot bind rvalue '(long long unsigned int)((const char*)"AtCoder")' 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:11: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
7 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const void*
a.cc:7:11: error: cannot bind rvalue '(void*)((const void*)((const char*)"AtCoder"))' 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 [8]' 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 [8]' 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 [8]' 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 'const char [8]' 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>:: |
s486829428 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string c;
cin >> “AtCoder” >> c >> “Contest”;
cout << “AtCoder”s.at(0) << c.at(0) << “Contest”s.at(0) << endl;
}
| a.cc:6:10: error: extended character “ is not valid in an identifier
6 | cin >> “AtCoder” >> c >> “Contest”;
| ^
a.cc:6:10: error: extended character ” is not valid in an identifier
a.cc:6:28: error: extended character “ is not valid in an identifier
6 | cin >> “AtCoder” >> c >> “Contest”;
| ^
a.cc:6:28: error: extended character ” is not valid in an identifier
a.cc:8:11: error: extended character “ is not valid in an identifier
8 | cout << “AtCoder”s.at(0) << c.at(0) << “Contest”s.at(0) << endl;
| ^
a.cc:8:11: error: extended character ” is not valid in an identifier
a.cc:8:42: error: extended character “ is not valid in an identifier
8 | cout << “AtCoder”s.at(0) << c.at(0) << “Contest”s.at(0) << endl;
| ^
a.cc:8:42: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:6:10: error: '\U0000201cAtCoder\U0000201d' was not declared in this scope
6 | cin >> “AtCoder” >> c >> “Contest”;
| ^~~~~~~~~
a.cc:6:28: error: '\U0000201cContest\U0000201d' was not declared in this scope
6 | cin >> “AtCoder” >> c >> “Contest”;
| ^~~~~~~~~
a.cc:8:11: error: '\U0000201cAtCoder\U0000201ds' was not declared in this scope
8 | cout << “AtCoder”s.at(0) << c.at(0) << “Contest”s.at(0) << endl;
| ^~~~~~~~~~
a.cc:8:42: error: '\U0000201cContest\U0000201ds' was not declared in this scope
8 | cout << “AtCoder”s.at(0) << c.at(0) << “Contest”s.at(0) << endl;
| ^~~~~~~~~~
|
s350541097 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std+
int main() {
string A, s, C;
cin >> A >> s >> C;
string a = "A", c = "C";
cout << a + s.at(0) + c << endl;
} | a.cc:2:20: error: expected ';' before '+' token
2 | using namespace std+
| ^
| ;
a.cc:2:20: error: expected unqualified-id before '+' token
|
s949841538 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a,b;
cin << a << b;
cout << "A" << b.at(0) << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:6:7: 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 << a << b;
| ~~~ ^~ ~
| | |
| | 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:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b;
| ^
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:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
6 | cin << a << b;
| ^~~
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:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b;
| ^
/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:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b;
| ^
/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:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b;
| ^
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:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b;
| ^
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:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b;
| ^
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:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b;
| ^
/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:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b;
| ^
/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:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << a << b;
| ^
/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:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << a << b;
| ^
/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:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << a << b;
| ^
/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:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b;
| ^
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:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << a << b;
| ^
/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:10: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << a << b;
| ^
/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, _T |
s313003190 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
String a,b;
cin << a << b;
cout << "A" << b.at(0) << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'String' was not declared in this scope
5 | String a,b;
| ^~~~~~
a.cc:6:10: error: 'a' was not declared in this scope
6 | cin << a << b;
| ^
a.cc:6:15: error: 'b' was not declared in this scope
6 | cin << a << b;
| ^
|
s273462064 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
String a,b;
cin << a << b;
cout << "A" << b.at(0) << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'String' was not declared in this scope
5 | String a,b;
| ^~~~~~
a.cc:6:10: error: 'a' was not declared in this scope
6 | cin << a << b;
| ^
a.cc:6:15: error: 'b' was not declared in this scope
6 | cin << a << b;
| ^
|
s328080103 | p03860 | C++ | #include<iostream>
using namespace std;
int main(){
char a , b , c;
cin >> a >> b >> c;
cout << a[0] << b [0] << c[0] << endl;
} | a.cc: In function 'int main()':
a.cc:6:12: error: invalid types 'char[int]' for array subscript
6 | cout << a[0] << b [0] << c[0] << endl;
| ^
a.cc:6:21: error: invalid types 'char[int]' for array subscript
6 | cout << a[0] << b [0] << c[0] << endl;
| ^
a.cc:6:29: error: invalid types 'char[int]' for array subscript
6 | cout << a[0] << b [0] << c[0] << endl;
| ^
|
s850658436 | p03860 | C++ | #include <iostream>
#include <cstdlib>
#include <string>
#include <algorithm>
using namespace std;
int comp(const void* a, const void* b){
return *(int*)a - *(int*)b;
}
int main() {
string s;
cin >> "AtCoder" >> s >> "Contest";
cout << s[0] << endl;
} | a.cc: In function 'int main()':
a.cc:13:13: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'const char [8]')
13 | cin >> "AtCoder" >> s >> "Contest";
| ~~~ ^~ ~~~~~~~~~
| | |
| | const char [8]
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/14/iostream:42,
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:13:16: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'const char*'
13 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
/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:13:16: error: invalid conversion from 'const char*' to 'short int' [-fpermissive]
13 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:13:16: error: cannot bind rvalue '(short int)((const char*)"AtCoder")' 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:13:16: error: invalid conversion from 'const char*' to 'short unsigned int' [-fpermissive]
13 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:13:16: error: cannot bind rvalue '(short unsigned int)((const char*)"AtCoder")' 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:13:16: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
13 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:13:16: error: cannot bind rvalue '(int)((const char*)"AtCoder")' 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:13:16: error: invalid conversion from 'const char*' to 'unsigned int' [-fpermissive]
13 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:13:16: error: cannot bind rvalue '(unsigned int)((const char*)"AtCoder")' 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:13:16: error: invalid conversion from 'const char*' to 'long int' [-fpermissive]
13 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:13:16: error: cannot bind rvalue '(long int)((const char*)"AtCoder")' 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:13:16: error: invalid conversion from 'const char*' to 'long unsigned int' [-fpermissive]
13 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:13:16: error: cannot bind rvalue '(long unsigned int)((const char*)"AtCoder")' 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:13:16: error: invalid conversion from 'const char*' to 'long long int' [-fpermissive]
13 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:13:16: error: cannot bind rvalue '(long long int)((const char*)"AtCoder")' 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:13:16: error: invalid conversion from 'const char*' to 'long long unsigned int' [-fpermissive]
13 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const char*
a.cc:13:16: error: cannot bind rvalue '(long long unsigned int)((const char*)"AtCoder")' 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:13:16: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
13 | cin >> "AtCoder" >> s >> "Contest";
| ^~~~~~~~~
| |
| const void*
a.cc:13:16: error: cannot bind rvalue '(void*)((const void*)((const char*)"AtCoder"))' 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 [8]' 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 [8]' 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 [8]' 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 'const char [8]' 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 |
s045511455 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string text[3];
cin << text[0] << text[1] << text[2];
cout >> text[0].at(0) >> text[1].at(0) >> text[2].at(0) >> endl;
}
| a.cc: In function 'int main()':
a.cc:6:7: 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 << text[0] << text[1] << text[2];
| ~~~ ^~ ~~~~~~~
| | |
| | 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:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << text[0] << text[1] << text[2];
| ^
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:3: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
6 | cin << text[0] << text[1] << text[2];
| ^~~
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:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << text[0] << text[1] << text[2];
| ^
/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:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << text[0] << text[1] << text[2];
| ^
/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:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << text[0] << text[1] << text[2];
| ^
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:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << text[0] << text[1] << text[2];
| ^
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:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << text[0] << text[1] << text[2];
| ^
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:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << text[0] << text[1] << text[2];
| ^
/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:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << text[0] << text[1] << text[2];
| ^
/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:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << text[0] << text[1] << text[2];
| ^
/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:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << text[0] << text[1] << text[2];
| ^
/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:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << text[0] << text[1] << text[2];
| ^
/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:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << text[0] << text[1] << text[2];
| ^
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:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << text[0] << text[1] << text[2];
| ^
/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: |
s732460954 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << a[0]<< b[0] << c[0] endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:30: error: expected ';' before 'endl'
9 | cout << a[0]<< b[0] << c[0] endl;
| ^~~~~
| ;
|
s048222280 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s,t,u;
cin>>s;
cout<<"A"<<t.st(0)<<"C"<<endl;
} | a.cc: In function 'int main()':
a.cc:8:14: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'st'; did you mean 'at'?
8 | cout<<"A"<<t.st(0)<<"C"<<endl;
| ^~
| at
|
s058062009 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char s ;
cin>>s;
cout<<"A"<<s.at(0)<<"C"<<endl;
} | a.cc: In function 'int main()':
a.cc:8:14: error: request for member 'at' in 's', which is of non-class type 'char'
8 | cout<<"A"<<s.at(0)<<"C"<<endl;
| ^~
|
s586707869 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string AtCoder s Contest ;
cin>>AtCoder s Contest;
cout<<"A"<<AtCoder s Contest.at(0)<<"C"<<endl;
} | a.cc: In function 'int main()':
a.cc:5:16: error: expected initializer before 's'
5 | string AtCoder s Contest ;
| ^
a.cc:6:6: error: 'AtCoder' was not declared in this scope
6 | cin>>AtCoder s Contest;
| ^~~~~~~
|
s231571790 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string AtCoder s Contest ;
cin>>AtCoder s Contest;
cout<<"A"<<s.at(0)<<"C"<<endl;
} | a.cc: In function 'int main()':
a.cc:5:16: error: expected initializer before 's'
5 | string AtCoder s Contest ;
| ^
a.cc:6:6: error: 'AtCoder' was not declared in this scope
6 | cin>>AtCoder s Contest;
| ^~~~~~~
a.cc:8:12: error: 's' was not declared in this scope
8 | cout<<"A"<<s.at(0)<<"C"<<endl;
| ^
|
s264907697 | p03860 | C++ | #include<stdio.h>
int main(void)
{
char a[8];
char s[101];
char c[8];
scanf("%s",&a);
scanf("%s",&s);
scanf("%s",&c);
printf("%s\n",a[0]s[0]c[0]);
return 0;
} | a.cc: In function 'int main()':
a.cc:10:27: error: expected ')' before 's'
10 | printf("%s\n",a[0]s[0]c[0]);
| ~ ^
| )
|
s353226195 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string S;
cin >> S;
cout << A << S.at(0) << C << endl;
} | a.cc: In function 'int main()':
a.cc:6:9: error: 'A' was not declared in this scope
6 | cout << A << S.at(0) << C << endl;
| ^
a.cc:6:25: error: 'C' was not declared in this scope
6 | cout << A << S.at(0) << C << endl;
| ^
|
s117193359 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
string s;
cin>>s;
string ans=s[0];
cout<<'A'<<ans<<'C'<<endl;
} | a.cc: In function 'int main()':
a.cc:8:17: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
8 | string ans=s[0];
| ^
|
s441099644 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
string s;
cin>>s;
string ans=s.front();
cout<<'A'<<ans<<'C'<<endl;
} | a.cc: In function 'int main()':
a.cc:8:21: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
8 | string ans=s.front();
| ~~~~~~~^~
|
s845242797 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c;
cin >> a>.b>>c;
char d,e,f;
d=a.at(0);
e=b.at(0);
f=c.at(0);
cout<<d<<e<<f<<endl;
} | a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before '.' token
6 | cin >> a>.b>>c;
| ^
|
s566145754 | p03860 | C++ | #!/usr/bin/env python
print("A%sC" % list(map(str,input().split()))[1][0])
| a.cc:1:2: error: invalid preprocessing directive #!
1 | #!/usr/bin/env python
| ^
a.cc:2:6: error: expected constructor, destructor, or type conversion before '(' token
2 | print("A%sC" % list(map(str,input().split()))[1][0])
| ^
|
s499332246 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
str a,b,c;
cin >> a >> b >> c;
char B = b.at(0);
cout << "ABC" << endl:
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'str' was not declared in this scope; did you mean 'std'?
6 | str a,b,c;
| ^~~
| std
a.cc:7:10: error: 'a' was not declared in this scope
7 | cin >> a >> b >> c;
| ^
a.cc:7:15: error: 'b' was not declared in this scope
7 | cin >> a >> b >> c;
| ^
a.cc:7:20: error: 'c' was not declared in this scope
7 | cin >> a >> b >> c;
| ^
a.cc:10:24: error: expected ';' before ':' token
10 | cout << "ABC" << endl:
| ^
| ;
|
s742346079 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
char x;
x = b.at(0);
cout << "A" + x + "C" << endl;
} | a.cc: In function 'int main()':
a.cc:9:17: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
9 | cout << "A" + x + "C" << endl;
| ~~~~~~~ ^ ~~~
| | |
| | const char [2]
| const char*
|
s433072013 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string A,S,C;
cin >> A;
cin >> S;
cin >> C;
char s;
s = S.at(0);
cout << "A"+s+"C" << endl;
} | a.cc: In function 'int main()':
a.cc:10:14: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
10 | cout << "A"+s+"C" << endl;
| ~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s858103444 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s, t, u;
cin >> s >> t >> u;
cout << "A" + t[0] + "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:24: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
7 | cout << "A" + t[0] + "C" << endl;
| ^ ~~~
| |
| const char [2]
|
s804017981 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
std::string a,b,c;
cin >> a >> b >> c;
cout << "A" + b.at(0) + "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
7 | cout << "A" + b.at(0) + "C" << endl;
| ~~~~~~~~~~~~~ ^ ~~~
| | |
| const char* const char [2]
|
s195212349 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >> c;
cout << "A" + b.at(0) + "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:25: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
7 | cout << "A" + b.at(0) + "C" << endl;
| ~~~~~~~~~~~~~ ^ ~~~
| | |
| const char* const char [2]
|
s120570621 | p03860 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#include<map>
#include<set>
using namespace std;
typedef long long ll;
typedef vector<int> VI;
int main() {
string a, x, c;
cin >> a >> x >> c;
cout << "A" << x[0] << "c" < endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:18:36: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
18 | cout << "A" << x[0] << "c" < endl;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/string:48,
from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:18:38: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
18 | cout << "A" << x[0] << "c" < endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
493 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
a.cc:18:38: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
18 | cout << "A" << x[0] << "c" < endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1694 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed:
a.cc:18:38: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
18 | cout << "A" << x[0] << "c" < endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1760 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed:
a.cc:18:38: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
18 | cout << "A" << x[0] << "c" < endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:18:38: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
18 | cout << "A" << x[0] << "c" < endl;
| ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:18:38: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
18 | cout << "A" << x[0] << "c" < endl;
| ^~~~
/usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
680 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed:
a.cc:18:38: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
18 | cout << "A" << x[0] << "c" < endl;
| ^~~~
/usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed:
a.cc:18:38: note: couldn't deduce template parameter '_CharT'
18 | cout << "A" << x[0] << "c" < endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed:
a.cc:18:38: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
18 | cout << "A" << x[0] << "c" < endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed:
a.cc:18:38: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
18 | cout << "A" << x[0] << "c" < endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3901 | operator<(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed:
a.cc:18:38: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
18 | cout << "A" << x[0] << "c" < endl;
| ^~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2600 | operator<(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed:
a.cc:18:38: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>'
18 | cout << "A" << x[0] << "c" < endl;
| ^~~~
In file included from /usr/include/c++/14/vector:66,
from a.cc:4:
/usr/include/c++/14/bits/stl_vector.h:2089:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator<(const vector<_Tp, _Alloc>&, const vector<_Tp, _Alloc>&)'
2089 | operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:2089:5: note: template argument deduction/substitution failed:
a.cc:18:38: note: 'std::basic_ostream<char>' is not derived from 'const std::vector<_Tp, _Alloc>'
18 | cout << "A" << x[0] << "c" < endl;
| ^~~~
In file included from /usr/include/c++/14/deque:66,
from /usr/include/c++/14/stack:62,
from a.cc:6:
/usr/include/c++/14/bits/stl_deque.h:2334:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator<(const deque<_Tp, _Alloc>&, const deque<_Tp, _Alloc>&)'
2334 | operator<(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_deque.h:2334:5: note: template argument deduction/substitution failed:
a.cc:18:38: note: 'std::basic_ostream<char>' is not derived from 'const std::deque<_Tp, _Alloc>'
18 | cout << "A" << x[0] << "c" < endl;
| ^~~~
In file included from /usr/include/c++/14/stack:63:
/usr/include/c++/14/bits/stl_stack.h:373:5: note: candidate: 'template<class _Tp, class _Seq> bool std::operator<(const stack<_Tp, _Seq>&, const stack<_Tp, _Seq>&)'
373 | operator<(const stack<_Tp, _Seq>& __x, const stack<_Tp, _Seq>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_stack.h:373:5: note: template argument deduction/substitution failed:
a.cc:18:38: note: 'std::basic_ostream<char>' is not derived from 'const std::stack<_Tp, _Seq>'
18 | cout << "A" << x[0] << "c" < endl;
| ^~~~
In file included from /usr/include/c++/14/queue:66,
|
s577905091 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
char c = str.at(0);
cout << 'A' << c << 'C' << endl;
}
| a.cc: In function 'int main()':
a.cc:7:18: error: 'str' was not declared in this scope; did you mean 'std'?
7 | char c = str.at(0);
| ^~~
| std
|
s667783781 | p03860 | C++ | #include<bitsstdc++.h>
using namespace std;
int main() {
string a, b, c;
cin >> a >> b >> c;
cout << a.at(0)<<b.at(0) << c.at(0)<< endl;
} | a.cc:1:9: fatal error: bitsstdc++.h: No such file or directory
1 | #include<bitsstdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s484221996 | p03860 | C++ | #include <cstdio>
using namespace std;
int main() {
long long a, b, x;
scanf("%lld %lld %lld", &a, &b, &x);
printf("%lld", b/x - max(0, (a-1))/x);
}
| a.cc: In function 'int main()':
a.cc:9:26: error: 'max' was not declared in this scope
9 | printf("%lld", b/x - max(0, (a-1))/x);
| ^~~
|
s304577325 | p03860 | C++ | print("A"+input()[8]+"C") | a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token
1 | print("A"+input()[8]+"C")
| ^
|
s929196068 | p03860 | C++ | int main(){
string a, s, c; cin >> a >> s >> c;
cout << "A" << s[0] << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
2 | string a, s, c; cin >> a >> s >> c;
| ^~~~~~
a.cc:2:19: error: 'cin' was not declared in this scope
2 | string a, s, c; cin >> a >> s >> c;
| ^~~
a.cc:2:26: error: 'a' was not declared in this scope
2 | string a, s, c; cin >> a >> s >> c;
| ^
a.cc:2:31: error: 's' was not declared in this scope
2 | string a, s, c; cin >> a >> s >> c;
| ^
a.cc:2:36: error: 'c' was not declared in this scope
2 | string a, s, c; cin >> a >> s >> c;
| ^
a.cc:3:3: error: 'cout' was not declared in this scope
3 | cout << "A" << s[0] << "C" << endl;
| ^~~~
a.cc:3:33: error: 'endl' was not declared in this scope
3 | cout << "A" << s[0] << "C" << endl;
| ^~~~
|
s380879163 | p03860 | C++ | #include <stdio.h>
#include <algorithm>
#include <iostream>
#include <limits.h>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <cstdio>
#include <list>
#define ll long long
#define rep2(i,a,b) for(int i=a;i<=b;i++)
#define rep(i,n) for(int i=0;i<n;i++)
#define rep3(i,a,b) for(int i=a;i>=b;i--)
#define REP(e,v) for(auto e:v)
#define pii pair<int,int>
#define pll pair<ll,ll>
#define tii tuple<int,int,int>
#define pq priority_queue<int>
#define pqg priority_queue<int,vector<int>,greater<int>>
#define pb push_back
#define edge(v,a,b) v[a].pb(b);v[b].pb(a);
#define vec vector<int>
#define vecll vector<ll>
#define vecstr vector<string>
#define vecch vector<char>
#define vecpii vector<pii>
#define bs binary_search
#define All(c) (c).begin(),(c).end()
using namespace std;
int in(){int x;scanf("%d",&x);return x;}
string stin(){string s;cin>>s;return s;}
ll lin(){ll x;scanf("%lld",&x);return x;}
vector<vector<bool>> done;
int main(){
string a=stin(),b=stin();
cout<<"A"<<s.at(0)<<"C"<<endl;
} | a.cc: In function 'int main()':
a.cc:43:16: error: 's' was not declared in this scope
43 | cout<<"A"<<s.at(0)<<"C"<<endl;
| ^
|
s500976406 | p03860 | C++ | #include <bits/stdc++. h>
using namespace std;
int main() {
string x;
cin>>x;
cout<<"A" <<x. at(8)<<"C" <<endl;
}
| a.cc:1:10: fatal error: bits/stdc++. h: No such file or directory
1 | #include <bits/stdc++. h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
|
s364698739 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> >> s;
cout << "A" << s.at(8) << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before '>>' token
6 | cin >> >> s;
| ^~
|
s855854595 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s:
cin >> s;
cout << "A" << s.at(0) << "C" << endl;
} | a.cc: In function 'int main()':
a.cc:5:13: error: found ':' in nested-name-specifier, expected '::'
5 | string s:
| ^
| ::
a.cc:5:12: error: 's' has not been declared
5 | string s:
| ^
a.cc:6:9: error: qualified-id in declaration before '>>' token
6 | cin >> s;
| ^~
a.cc:7:20: error: 's' was not declared in this scope
7 | cout << "A" << s.at(0) << "C" << endl;
| ^
|
s206654702 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = acos(-1);
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) {
REP(i,v.size()){if(i)os<<" ";os<<v[i];}return os;}
template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
REP(i,v.size()){if(i)os<<endl;os<<v[i];}return os;}
int main() {
// Write Your Code Below
string a, b, c;
cin >> a >> b >> c;
cout << "A" << B[0] << "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:21:19: error: 'B' was not declared in this scope
21 | cout << "A" << B[0] << "C" << endl;
| ^
|
s914273200 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
char A, B, C;
cin >> A >> B >> C;
cout << A[0] + B[0] + C[0] << endl;
} | a.cc: In function 'int main()':
a.cc:10:18: error: invalid types 'char[int]' for array subscript
10 | cout << A[0] + B[0] + C[0] << endl;
| ^
a.cc:10:25: error: invalid types 'char[int]' for array subscript
10 | cout << A[0] + B[0] + C[0] << endl;
| ^
a.cc:10:32: error: invalid types 'char[int]' for array subscript
10 | cout << A[0] + B[0] + C[0] << endl;
| ^
|
s086679863 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = acos(-1);
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) {
REP(i,v.size()){if(i)os<<" ";os<<v[i];}return os;}
template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
REP(i,v.size()){if(i)os<<endl;os<<v[i];}return os;}
int main() {
// Write Your Code Below
string a,b,c;
cin >> a >> b >> c;
cout << "A" + b[0] + "C;
}
| a.cc:21:26: warning: missing terminating " character
21 | cout << "A" + b[0] + "C;
| ^
a.cc:21:26: error: missing terminating " character
21 | cout << "A" + b[0] + "C;
| ^~~
a.cc: In function 'int main()':
a.cc:22:1: error: expected primary-expression before '}' token
22 | }
| ^
|
s003284996 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s>>s;
cout <<A<<s.at(0)<<C<<endl;
} | a.cc: In function 'int main()':
a.cc:7:10: error: 'A' was not declared in this scope
7 | cout <<A<<s.at(0)<<C<<endl;
| ^
a.cc:7:22: error: 'C' was not declared in this scope
7 | cout <<A<<s.at(0)<<C<<endl;
| ^
|
s923769067 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string A, s, C;
cin >> A >> s >> C;
cout << "A" + s[0] + "C" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:22: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | cout << "A" + s[0] + "C" << endl;
| ^ ~~~
| |
| const char [2]
|
s710718859 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >> a >> b >>c;
char s = b.at(0);
cout << "A"+s+"c"<<endl;
} | a.cc: In function 'int main()':
a.cc:8:16: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
8 | cout << "A"+s+"c"<<endl;
| ~~~~~^~~~
| | |
| | const char [2]
| const char*
|
s139351719 | p03860 | C++ | #include <iostram>
#include <string>
using namespace std;
int main()
{
string s[3];
cin >> s[0] >> s[1] >> s[2];
cout << 'A' << s[1][0] << 'C' << endl;
} | a.cc:1:10: fatal error: iostram: No such file or directory
1 | #include <iostram>
| ^~~~~~~~~
compilation terminated.
|
s025205165 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
cin>>A>>B>>C;
char b=B.at(0);
cout<<"A"<<b<<"C"<<endl;
}
| a.cc: In function 'int main()':
a.cc:7:12: error: request for member 'at' in 'B', which is of non-class type 'int'
7 | char b=B.at(0);
| ^~
|
s582052337 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int A,B,C,b;
cin>>A>>B>>C;
b=B.at(0);
cout<<"A"<<b<<"C"<<endl;
}
| a.cc: In function 'int main()':
a.cc:7:7: error: request for member 'at' in 'B', which is of non-class type 'int'
7 | b=B.at(0);
| ^~
|
s282273909 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
char b;
cin>>A>>B>>C;
b=B.at(0);
cout<<"A"<<b<<"C"<<endl;
}
| a.cc: In function 'int main()':
a.cc:8:7: error: request for member 'at' in 'B', which is of non-class type 'int'
8 | b=B.at(0);
| ^~
|
s031716914 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
cin>>A>>B>>C;
B=B.at(0);
cout<<"A"<<B<<"C"<<endl;
}
| a.cc: In function 'int main()':
a.cc:7:7: error: request for member 'at' in 'B', which is of non-class type 'int'
7 | B=B.at(0);
| ^~
|
s552361879 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> a;
cout << 'A' << s[8] << 'C';
return 0;
} | a.cc: In function 'int main()':
a.cc:6:12: error: 'a' was not declared in this scope
6 | cin >> a;
| ^
|
s890417408 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
cout << 'AtCoder ' << s.at(9) << ' Contest' <<endl;
}
| a.cc:8:11: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
8 | cout << 'AtCoder ' << s.at(9) << ' Contest' <<endl;
| ^~~~~~~~~~
a.cc:8:36: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
8 | cout << 'AtCoder ' << s.at(9) << ' Contest' <<endl;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:25: error: 's' was not declared in this scope
8 | cout << 'AtCoder ' << s.at(9) << ' Contest' <<endl;
| ^
|
s453171217 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cout <<'A' << stirng.at(0) << C << endl;
} | a.cc: In function 'int main()':
a.cc:7:17: error: 'stirng' was not declared in this scope
7 | cout <<'A' << stirng.at(0) << C << endl;
| ^~~~~~
a.cc:7:33: error: 'C' was not declared in this scope
7 | cout <<'A' << stirng.at(0) << C << endl;
| ^
|
s205963074 | p03860 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cout <<'A' << stirng.at(1) << C << endl;
} | a.cc: In function 'int main()':
a.cc:7:17: error: 'stirng' was not declared in this scope
7 | cout <<'A' << stirng.at(1) << C << endl;
| ^~~~~~
a.cc:7:33: error: 'C' was not declared in this scope
7 | cout <<'A' << stirng.at(1) << C << endl;
| ^
|
s658029772 | p03860 | C++ | s = input()
print('A' + s[0] + 'C')
| a.cc:1:1: error: 's' does not name a type
1 | s = input()
| ^
|
s915483692 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
cin >>a >>b >>c;
cout <<A <<b.at(0) <<C <<endl;
}
| a.cc: In function 'int main()':
a.cc:7:10: error: 'A' was not declared in this scope
7 | cout <<A <<b.at(0) <<C <<endl;
| ^
a.cc:7:24: error: 'C' was not declared in this scope
7 | cout <<A <<b.at(0) <<C <<endl;
| ^
|
s665812626 | p03860 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c,B;
cin a >> b >> c;
B = b[0];
cout << 'A' + B + 'C' << endl;
}
| a.cc: In function 'int main()':
a.cc:6:5: error: expected ';' before 'a'
6 | cin a >> b >> c;
| ^~
| ;
|
s457018270 | p03860 | C++ | #include<iostream>
using namespace std;
int main(){
string s,s2;
cin >> s2 >> s >> s2;
cout << "A"+s[0]+"C" <<endl;
} | a.cc: In function 'int main()':
a.cc:6:19: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
6 | cout << "A"+s[0]+"C" <<endl;
| ^~~~
| |
| const char [2]
|
s657808468 | p03860 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
string a,b,c,s; cin >> a >> b >> c;
s = a.at(0) + b.at(0) + c.at(0);
transform(s.begin(), s.end(), s.begin(), std::toupper);
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:9:12: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
9 | transform(s.begin(), s.end(), s.begin(), std::toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from a.cc:4:
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: candidate: 'template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)'
4209 | transform(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4209:5: note: template argument deduction/substitution failed:
a.cc:9:12: note: couldn't deduce template parameter '_UnaryOperation'
9 | transform(s.begin(), s.end(), s.begin(), std::toupper);
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)'
4247 | transform(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4247:5: note: candidate expects 5 arguments, 4 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _UnaryOperation)'
156 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:156:1: note: candidate expects 5 arguments, 4 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::transform(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator, _BinaryOperation)'
162 | transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
| ^~~~~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:162:1: note: candidate expects 6 arguments, 4 provided
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.