submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s302449998 | p00020 | C | #include <stdio.h>
int main()
{
char a[2114];
gets(a);
_mbsupr(a);
printf("%s\n",a);
return 0;
} | main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
5 | gets(a);
| ^~~~
| fgets
main.c:6:5: error: implicit declaration of function '_mbsupr' [-Wimplicit-function-declaration]
6 | _mbsupr(a);
... |
s459344685 | p00020 | C | #include <stdio.h>
#include <mbstring.h>
int main()
{
char a[2114];
gets(a);
_mbsupr(a);
printf("%s\n",a);
return 0;
} | main.c:2:10: fatal error: mbstring.h: No such file or directory
2 | #include <mbstring.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s199341097 | p00020 | C | #include <stdio.h>
#include <mbstring.h>
int main()
{
char a[2114];
int i = 0;
scanf("%s",a);
while(1){
if(a[i] == '\0')break;
a[i] = a[i] - 32;
i++;
}
printf("%s\n",a);
return 0;
} | main.c:2:10: fatal error: mbstring.h: No such file or directory
2 | #include <mbstring.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s792606089 | p00020 | C | #include <stdio.h>
int main()
{
char a[2114];
int i = 0;
scanf("%s",a);
while(1){
if(a[i] == '\0')break;
a[i] = a[i] - 32;
i++;
}
printf("%s\n",a);
return 0;
}
] | main.c:15:1: error: expected identifier or '(' before ']' token
15 | ]
| ^
|
s266630985 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main() {
string a;
getline(cin, a);
transform(a.begin(), a.end(), a.begin(), toupper);
cout << a;
}
| a.cc: In function 'int main()':
a.cc:8:18: 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>)'
8 | transform(a.begin(), a.end(), a.begin(... |
s227287759 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main() {
string a;
getline(cin, a);
transform(a.begin(), a.end(), a.begin(), toupper);
cout << a;
}
| a.cc: In function 'int main()':
a.cc:8:18: 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>)'
8 | transform(a.begin(), a.end(), a.begin(... |
s523234390 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main() {
string a;
getline(cin, a);
transform(a.begin(), a.end(), a.begin(), toupper);
cout << a;
}
| a.cc: In function 'int main()':
a.cc:8:18: 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>)'
8 | transform(a.begin(), a.end(), a.begin(... |
s093759791 | p00020 | C++ | //↓template↓
#include "bits/stdc++.h"
using namespace std;
#define Would
#define you
#define all(n) n.begin(),n.end()
const long long INF = 1e18;
const long long MOD = 1e9 + 7;
const double pi = acos(-1);
const int SIZE = 1 << 17;
int dx[] = { 1,0,-1,0 }, dy[] = { 0,1,0,-1 }, alp[30];
long long fac[200005], finv[2000... | a.cc: In function 'int main()':
a.cc:40:22: error: 's' was not declared in this scope
40 | getline(cin, s);
| ^
|
s334095791 | p00020 | C++ | #include <iostream>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <string>
#include <math.h>
#include <functional>
#include <algorithm>
typedef long long Int;
#define REP(i,n) for(int i = 0 ; i < n ; ++i)
using namespace std;
int main(){
string a;
getline(cin, a);
trans... | a.cc: In function 'int main()':
a.cc:19:18: 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>)'
19 | transform(a.begin(), a.end(), a.begin... |
s593103285 | p00020 | C++ | #include <iostream>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <string>
#include <math.h>
#include <functional>
#include <algorithm>
typedef long long Int;
#define REP(i,n) for(int i = 0 ; i < n ; ++i)
using namespace std;
int main(){
string a;
getline(cin, a);
trans... | a.cc: In function 'int main()':
a.cc:19:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
19 | transform(a.cbegin(), a.c... |
s968274497 | p00020 | C++ | #include <iostream>
#include <strign>
#include <cctype>
using namespace std;
int main(){
string s;
cin>>s;
for(char c:s){
cout << toupper(c);
}
cout<<endl;
} | a.cc:2:10: fatal error: strign: No such file or directory
2 | #include <strign>
| ^~~~~~~~
compilation terminated.
|
s941057831 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
string str;
getline(cin, str);
transform(str.begin(), str.end(), str.begin(),toupper);
cout << str << endl;
} | a.cc: In function 'int main()':
a.cc:13:18: 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>)'
13 | transform(str.begin(), str.end(), str... |
s243135075 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
string str;
getline(cin, str);
transform(str.begin(), str.end(), str.begin(),toupper);
cout << str << endl;
} | a.cc: In function 'int main()':
a.cc:13:18: 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>)'
13 | transform(str.begin(), str.end(), str... |
s342185856 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
string str;
getline(cin, str);
transform(str.begin(), str.end(), str.begin(),toupper);
cout << str << endl;
} | a.cc: In function 'int main()':
a.cc:13:18: 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>)'
13 | transform(str.begin(), str.end(), str... |
s650486461 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
string str;
getline(cin, str);
transform(str.begin(), str.end(), str.begin(), toupper);
cout << str << endl;
} | a.cc: In function 'int main()':
a.cc:13:18: 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>)'
13 | transform(str.begin(), str.end(), str... |
s286785714 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<cctype>
using namespace std;
int main(){
string str;
getline(cin, str);
transform(str.begin(), str.end(), str.begin(), toupper);
cout << str << endl;
} | a.cc: In function 'int main()':
a.cc:14:18: 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>)'
14 | transform(str.begin(), str.end(), str... |
s600873006 | p00020 | C++ | #include<stdio.h>
#include<string.h>
#include<ctype.h>
int mian(void){
int len,cut_i;
char str[1000];
scanf("%[a-z .]",str);
len = strlen(str);
for(cut_i=0; cut_i<len; cut_i++){
str[cut_i] = tolower(str[cut_i]);
}
puts(str);
return 0;
} | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s259509981 | p00020 | C++ | #include<stdio.h>
#include<string.h>
#include<ctype.h>
int mian(void){
int len,cut_i;
char str[1000];
scanf("%[a-z .]",str);
len = strlen(str);
for(cut_i=0; cut_i<len; cut_i++){
str[cut_i] = tolower(str[cut_i]);
}
puts(str);
return 0;
} | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
|
s937851626 | p00020 | C++ | #include<iostream>
#include<string>
#include <stdio.h>
#include <math.h>
#include <cctype>
#include<queue>
#include<stack>
#include<cstdio>
#include <algorithm>
#include <cstdio>
using namespace std;
int main(){
string s;
cin>>s;
while(cin>>s){
transform(s.begin(),s.end(),s,begin(),toupper);
cout<<s<<" ";
}
co... | a.cc: In function 'int main()':
a.cc:16:52: error: no matching function for call to 'begin()'
16 | transform(s.begin(),s.end(),s,begin(),toupper);
| ~~~~~^~
In file included from /usr/include/c++/14/bits/range_access.h:36,
from /usr... |
s957369682 | p00020 | C++ | #include <stdio.h>
#include <math.h>
#include <cctype>
#include<queue>
#include<stack>
#include<cstdio>
#include <algorithm>
#include <cstdio>
using namespace std;
int main(){
string s;
cin>>s;
while(cin>>s){
for(int i=0;i<s.size();i++){
s[i]=toupper(s[i]);
}
cout<<s<<" ";
}
cout<<endl;
} | a.cc: In function 'int main()':
a.cc:11:9: error: 'string' was not declared in this scope
11 | string s;
| ^~~~~~
a.cc:9:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
8 | #include <cstdio>
+++ |+#include <string>
9 | usi... |
s501906356 | p00020 | C++ | #include<map>
#include<set>
#include<list>
#include<cmath>
#include<queue>
#include<stack>
#include<cstdio>
#include<string>
#include<vector>
#include<complex>
#include<cstdlib>
#include<cstring>
#include<climits>
#include<numeric>
#include<sstream>
#include<iostream>
#include<iomanip>
#include<algorithm>
#include<func... | a.cc: In function 'int main()':
a.cc:53:18: 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>)'
53 | transform(str.begin(),str.end(),str.b... |
s891151658 | p00020 | C++ | #include<iostream>
#include<ctype>
#include<string>
using namespace std;
int main(){
string str;
getline(cin, str);
int str_size = str.size();
for(int i=0;i<str_size;i++){
if(islower(str[i]))
str[i] = toupper(str[i]);
}
cout << str << endl;
return 0;
} | a.cc:2:9: fatal error: ctype: No such file or directory
2 | #include<ctype>
| ^~~~~~~
compilation terminated.
|
s613281213 | p00020 | C++ | #include <iostream>
#include <iomanip>
#include <algorithm>
#include <map>
#include <string>
#include <cstdio>
#include <cstring>
#include <vector>
#include <cstdio>
#include <climits>
using namespace std;
#define rep(i,n) for(LL i=0;i<n;i++)
#define all(v) (v).begin(),(v).end()
#define MOD 1000000007
const int INF = ... | a.cc: In function 'int main()':
a.cc:22:18: 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>)'
22 | transform(s.begin(), s.end(), s.begin... |
s364173388 | p00020 | C++ | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, s, n) for(int i = s; i < (int)n; ++i)
#define per(i, n) for(int i = n; i >= 0; i--)
#define ROF(i, s, n) for(int i = s; i >= (int)n; i--)
#define FORIT(i, A) for (auto i : A)
#define PRINT(x) cout << (x) << "\n"
#define ALL(a) (a).begin(),(a).end()
#define RA... | a.cc: In function 'int main(int, char**)':
a.cc:76:8: error: too few arguments to function 'std::string solve(std::string)'
76 | solve();
| ~~~~~^~
a.cc:57:8: note: declared here
57 | string solve(string _str) {
| ^~~~~
|
s168855167 | p00020 | C++ | #include <iostream>
#include <algorithm>
#include <functional>
#include <vector>
#include <cstdio>
#include <string>
#include <cmath>
#include <cfloat>
#include <map>
using namespace std;
int main(){
string x;
getline(cin,x);
transform(x.begin(),x.end(),x.begin(),toupper);
cout<<x<<endl;
} | a.cc: In function 'int main()':
a.cc:16:18: 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>)'
16 | transform(x.begin(),x.end(),x.begin()... |
s112882981 | p00020 | C++ | #include <iostream>
#include <algorithm>
#include <functional>
#include <vector>
#include <cstdio>
#include <string>
#include <cmath>
#include <cfloat>
#include <map>
using namespace std;
int main(){
string x;
getline(cin,x);
transform(x.begin(),x.end(),x.begin(),toupper);
cout<<x<<endl;
} | a.cc: In function 'int main()':
a.cc:16:18: 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>)'
16 | transform(x.begin(),x.end(),x.begin()... |
s897358666 | p00020 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string str;
getline(cin, str);
for(int i = 0; i < str.size(); i++){
if(str[i] < 90){
continue;
}
else{
str[i] -= 32;
}
}
cout << str << endl;
return 0; | a.cc: In function 'int main()':
a.cc:17:18: error: expected '}' at end of input
17 | return 0;
| ^
a.cc:5:11: note: to match this '{'
5 | int main(){
| ^
|
s466598697 | p00020 | C++ | #include<string>
#include<vector>
using namespace std;
int main() {
string s;
int i = 0;
getline(cin,s);
transform(s.begin(), s.end(), s.begin(), toupper);
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:7:17: error: 'cin' was not declared in this scope
7 | getline(cin,s);
| ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
2 | #include<vector>
+++ |+#include <iostream>
... |
s413108186 | p00020 | C++ | #include<iostream>
#include<algorithm>
#include<functional>
#include<string>
#include<vector>
using namespace std;
int main() {
string s;
int i = 0;
getline(cin, s);
transform(s.begin(), s.end(), s.begin(), toupper);
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:11:18: 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>)'
11 | transform(s.begin(), s.end(), s.begin... |
s022431075 | p00020 | C++ | #include<iostream>
#include<algorithm>
#include<functional>
#include<string>
#include <ctime>
#include <cstdio>
#include<vector>
using namespace std;
int main() {
string s;
int i = 0;
getline(cin, s);
transform(s.begin(), s.end(), s.begin(), toupper);
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:13:18: 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>)'
13 | transform(s.begin(), s.end(), s.begin... |
s820438488 | p00020 | C++ | #include<iostream>
#include<algorithm>
#include<functional>
#include<string>
#include <cctype>
#include <cstdio>
#include<vector>
using namespace std;
int main() {
string s;
int i = 0;
getline(cin, s);
transform(s.begin(), s.end(), s.begin(), toupper);
cout << s << endl;
} | a.cc: In function 'int main()':
a.cc:13:18: 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>)'
13 | transform(s.begin(), s.end(), s.begin... |
s598828986 | p00020 | C++ | #include<iostream>
#include<algorithm>
#include<functional>
#include<string>
#include <cctype>
#include <cstdio>
#include<vector>
using namespace std;
int main() {
string s;
int i = 0;
getline(cin, s);
transform(s.begin(), s.end(), s.begin(), toupper);
cout << s << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:18: 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>)'
13 | transform(s.begin(), s.end(), s.begin... |
s154355794 | p00020 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <cstdio>
#include <functional>
#include <complex>
using namespace std;
int main() {
string s;
int i = 0;
getline(cin, s);
transform(s.begin(), s.end(), s.begin(), toupper);
cou... | a.cc: In function 'int main()':
a.cc:16:18: 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>)'
16 | transform(s.begin(), s.end(), s.begin... |
s362441547 | p00020 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <map>
#include <numeric>
using namespace std;
#define FOR(i,a,b) for(long long int i=(a);i<(b);i++)
#define REP(i,n) for(long long int i=0;i<(n);i++)
#define ALL(s) (s).begin()... | a.cc: In function 'int main()':
a.cc:25:16: error: 'strlen' was not declared in this scope
25 | REP(i, strlen(s)){
| ^~~~~~
a.cc:13:43: note: in definition of macro 'REP'
13 | #define REP(i,n) for(long long int i=0;i<(n);i++)
| ^
a.cc:10... |
s730152191 | p00020 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <map>
#include <numeric>
using namespace std;
#define FOR(i,a,b) for(long long int i=(a);i<(b);i++)
#define REP(i,n) for(long long int i=0;i<(n);i++)
#define ALL(s) (s).begin()... | a.cc: In function 'int main()':
a.cc:25:16: error: 'strlen' was not declared in this scope
25 | REP(i, strlen(s)){
| ^~~~~~
a.cc:13:43: note: in definition of macro 'REP'
13 | #define REP(i,n) for(long long int i=0;i<(n);i++)
| ^
a.cc:10... |
s583193057 | p00020 | C++ | #include "bits/stdc++.h"
#include<unordered_map>
#pragma warning(disable:4996)
using namespace std;
int main() {
string st;
getline(cin, st);
transform(st.begin(), st.end(), st.begin(), toupper);
cout <<st<< endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:18: 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>)'
11 | transform(st.begin(), st.end(), st.be... |
s213751800 | p00020 | C++ | #!ruby -p
$_.upcase! | a.cc:1:2: error: invalid preprocessing directive #!
1 | #!ruby -p
| ^
a.cc:2:1: error: '$_' does not name a type
2 | $_.upcase!
| ^~
|
s890140288 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main() {
string str;
getline(cin,str);
transform(str.cbegin(), str.cend(), str.begin(), toupper);
cout << str << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
9 | transform(str.cbegin(), st... |
s103018579 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main() {
string str;
getline(cin,str);
transform(str.cbegin(), str.cend(), str.begin(), toupper);
cout << str << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
9 | transform(str.cbegin(), st... |
s166970917 | p00020 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string str;
getline(cin,str);
transform(str.cbegin(), str.cend(), str.begin(), toupper);
cout << str << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
7 | transform(str.cbegin(), st... |
s161674161 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
struct ToUpper {
char operator()(char c) { return toupper(c); }
};
int main() {
string str;
getline(cin,str);
transform(str.cbegin(), str.cend(), str.begin(), toupper);
cout << str << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
13 | transform(str.cbegin(), s... |
s756771375 | p00020 | C++ | #include "bits/stdc++.h"
#include<unordered_map>
#pragma warning(disable:4996)
using namespace std;
struct ToUpper {
char operator()(char c) { return toupper(c); }
};
int main() {
string str;
getline(cin,str);
transform(str.cbegin(), str.cend(), str.begin(), toupper);
cout << str << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:18: error: no matching function for call to 'transform(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
13 | transform(str.cbegin(), s... |
s210227718 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main() {
string str;
getline(cin,str);
transform(str.begin(), str.end(), str.begin(), toupper);
cout << str << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:18: 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(str.begin(), str.end(), str.... |
s634240206 | p00020 | C++ | #include <iostream>
using namespace std;
int main(){
string ch;
while(1){
//getline(cin, ch) //1??????????????????
cin >> ch;
if(ch == '\n'){
cout << endl;
break;
}
else{
ch = toupper(ch);
cout << ch;
}
}
} | a.cc: In function 'int main()':
a.cc:12:23: error: no match for 'operator==' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'char')
12 | if(ch == '\n'){
| ~~ ^~ ~~~~
| | |
| | char
... |
s180986897 | p00020 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string ch;
getline(cin, ch)
for(int i=0; i<s.size(); i++){
if(isalpha(ch[i]){
ch[i] = toupper(ch[i]);
}
}
cout << ch << endl;
} | a.cc: In function 'int main()':
a.cc:9:25: error: expected ';' before 'for'
9 | getline(cin, ch)
| ^
| ;
10 |
11 | for(int i=0; i<s.size(); i++){
| ~~~
a.cc:11:30: error: 'i' was not declared in th... |
s524455449 | p00020 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string ch;
int i;
getline(cin, ch);
for(i=0; i<s.size(); i++){
if(isalpha(ch[i]){
ch[i] = toupper(ch[i]);
}
}
cout << ch << endl;
} | a.cc: In function 'int main()':
a.cc:12:28: error: 's' was not declared in this scope
12 | for(i=0; i<s.size(); i++){
| ^
a.cc:14:34: error: expected ')' before '{' token
14 | if(isalpha(ch[i]){
| ~ ^
| ... |
s018504118 | p00020 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string ch;
int i;
getline(cin, ch);
for(i=0; i<ch.size(); i++){
if(isalpha(ch[i]){
ch[i] = toupper(ch[i]);
}
}
cout << ch << endl;
} | a.cc: In function 'int main()':
a.cc:14:34: error: expected ')' before '{' token
14 | if(isalpha(ch[i]){
| ~ ^
| )
a.cc:17:9: error: expected primary-expression before '}' token
17 | }
| ^
|
s620574645 | p00020 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
string ch;
int i;
getline(cin, ch);
for(i=0; i<ch.size(); i++){
if(isalpha(ch[i]){
ch[i] = toupper(ch[i]);
}
}
cout << ch << endl;
} | a.cc: In function 'int main()':
a.cc:14:34: error: expected ')' before '{' token
14 | if(isalpha(ch[i]){
| ~ ^
| )
a.cc:17:9: error: expected primary-expression before '}' token
17 | }
| ^
|
s035224200 | p00020 | C++ | 1 #include<iostream>
2 #include<ctype.h>
3
4 using namespace std;
5
6 #define OUT cout <<
7 #define IN cin >>
8 #define E << endl;
9 #define FOR(i,a,b) for(int i = a;i < b;i++)
10
11
12 string str;
13
14
15 int main(){
16 while(IN str){
17 FOR(i,0,str.size()){
18 ... | a.cc:1:5: error: stray '#' in program
1 | 1 #include<iostream>
| ^
a.cc:2:5: error: stray '#' in program
2 | 2 #include<ctype.h>
| ^
a.cc:6:5: error: stray '#' in program
6 | 6 #define OUT cout <<
| ^
a.cc:7:5: error: stray '#' in program
7 | 7 #define IN cin >>
... |
s237409863 | p00020 | C++ | #include<iostream>
#include<ctype.h>
using namespace std;
#define OUT cout <<
#define IN cin >>
#define E << endl;
#define FOR(i,a,b) for(int i = a;i < b;i++)
string str;
int main(){
getline(IN str)
FOR(i,0,str.size()){
str[i] = (char)toupper((int)(str[i]));
}
/*
OUT str;
while(IN str){
OUT " ";
... | a.cc: In function 'int main()':
a.cc:16:16: error: no matching function for call to 'getline(std::basic_istream<char>&)'
16 | getline(IN str)
| ~~~~~~~^~~~~~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bits/locale_classes.h:40,
... |
s740942825 | p00020 | C++ | #include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <deque>
#include <algorithm>
#include <iomanip>
#include <functional>
#include <numeric>
#define REP(i, n) for(int i = 0;i < (n); i++)
#define REP2(i, x, n) for(int i = (x); i < (n); i++)
#de... | a.cc: In function 'int main()':
a.cc:35:45: 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>)'
35 | string S; getline(cin, S); transform(... |
s370595490 | p00020 | C++ | #include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <deque>
#include <algorithm>
#include <iomanip>
#include <functional>
#include <numeric>
#define REP(i, n) for(int i = 0;i < (n); i++)
#define REP2(i, x, n) for(int i = (x); i < (n); i++)
#de... | a.cc: In function 'int main()':
a.cc:38:18: 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>)'
38 | transform(ALL(S), S.begin(), toupper)... |
s680677713 | p00020 | C++ | #include <stdio.h>
int main(void){
char buff[8192];
char *p;
scanf("%s",buff);
p=buff;
while(*p!='\0'){
*p=toupper(*p);
p++;
}
printf("%s\n",buff);
} | a.cc: In function 'int main()':
a.cc:10:20: error: 'toupper' was not declared in this scope
10 | *p=toupper(*p);
| ^~~~~~~
|
s792326161 | p00020 | C++ | #include <stdio.h>
#include <string.h>
int main(void){
char buff[8192];
char *p;
scanf("%s",buff);
p=buff;
while(*p!='\0'){
*p=toupper(*p);
p++;
}
printf("%s\n",buff);
} | a.cc: In function 'int main()':
a.cc:11:20: error: 'toupper' was not declared in this scope
11 | *p=toupper(*p);
| ^~~~~~~
|
s684303994 | p00020 | C++ | #include<iostream>
#include<queue>
#include<string>
#include<stack>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<ctype.h>
using namespace std;
int main(void)
{
char str[1000]={};
int i;
int len;
gets(str);
len=strlen(str);
for(i=0;i<len;i++)
str[i]=toupper(str[i]);
printf("%s\n",... | a.cc: In function 'int main()':
a.cc:18:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
18 | gets(str);
| ^~~~
| getw
a.cc:19:7: error: 'strlen' was not declared in this scope
19 | len=strlen(str);
| ^~~~~~
a.cc:8:1: note: 'strlen' is defined in header '<cstri... |
s777807545 | p00020 | C++ | #include<iostream>
#include<queue>
#include<string>
#include<stack>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<ctype.h>
using namespace std;
int main(void)
{
char str[1000]={};
int i;
int len;
gets(str);
len=strlen(str);
for(i=0;i<len;i++)
str[i]=toupper(str[i]);
printf("%s\n",... | a.cc: In function 'int main()':
a.cc:18:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
18 | gets(str);
| ^~~~
| getw
a.cc:19:7: error: 'strlen' was not declared in this scope
19 | len=strlen(str);
| ^~~~~~
a.cc:8:1: note: 'strlen' is defined in header '<cstri... |
s342820256 | p00020 | C++ | #include<iostream>
#include<queue>
#include<string>
#include<stack>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<ctype.h>
using namespace std;
int main(void)
{
char str[1000]={};
int i;
int len;
gets(str);
len=strlen(str);
for(i=0;i<len;i++)
str[i]=toupper(str[i]);
printf("%s\n",... | a.cc: In function 'int main()':
a.cc:18:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
18 | gets(str);
| ^~~~
| getw
a.cc:19:7: error: 'strlen' was not declared in this scope
19 | len=strlen(str);
| ^~~~~~
a.cc:8:1: note: 'strlen' is defined in header '<cstri... |
s715014748 | p00020 | C++ | #include<iostream>
#include<queue>
#include<string>
#include<stack>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<cctype>
using namespace std;
int main(void)
{
char str[1000]={};
int i;
int len;
gets(str);
len=strlen(str);
for(i=0;i<len;i++)
str[i]=toupper(str[i]);
printf("%s\n", ... | a.cc: In function 'int main()':
a.cc:18:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
18 | gets(str);
| ^~~~
| getw
a.cc:19:7: error: 'strlen' was not declared in this scope
19 | len=strlen(str);
| ^~~~~~
a.cc:9:1: note: 'strlen' is defined in header '<cstri... |
s726007930 | p00020 | C++ | #include <iostream>
#include <algorithm>
#include <stdlib.h>
#include <string>
#include <stdio.h>
using namespace std;
int main(){
char s[500];
fgets(s);
transform(s.begin(),s.end(),s.begin(),toupper);
cout << s << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:14: error: too few arguments to function 'char* fgets(char*, int, FILE*)'
13 | fgets(s);
| ~~~~~^~~
In file included from /usr/include/c++/14/cstdio:42,
from /usr/include/c++/14/ext/string_conversions.h:45,
from /usr/incl... |
s910183313 | p00020 | C++ | #include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;i++)
using namespace std;
typedef long long ll;
typedef pair<int, int>P;
int main() {
string s; getline(cin, s);
transform(s.begin(), s.end(), s.begin(), toupper);
cout << s << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:18: 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(... |
s489377880 | p00020 | C++ | #include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;i++)
using namespace std;
typedef long long ll;
typedef pair<int, int>P;
int main() {
string s; getline(cin, s);
transform(s.begin(), s.end(), s.begin(), toupper);
cout << s << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:18: 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(... |
s743969451 | p00020 | C++ | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cctype>
using namespace std;
int main() {
string st;
getline(cin, st);
transform(st.begin(), st.end(),st.begin(),toupper);
cout << st << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:15:18: 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>)'
15 | transform(st.begin(), st.end(),st.beg... |
s097557850 | p00020 | C++ | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cctype>
using namespace std;
int main() {
string st;
while (getline(cin, st)) {
transform(st.begin(), st.end(), st.begin(), toupper);
cout << st << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:15:26: 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>)'
15 | transform(st.begin(), st.end(... |
s292158347 | p00020 | C++ | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cctype>
using namespace std;
int main() {
string st;
while (getline(cin, st)) {
transform(st.begin(), st.end(), st.begin(), toupper);
cout << st << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:15:26: 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>)'
15 | transform(st.begin(), st.end(... |
s252213856 | p00020 | C++ | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cctype>
using namespace std;
int main() {
string st;
while (getline(cin, st)) {
transform(st.begin(), st.end(), st.begin(), toupper);
cout << st << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:15:26: 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>)'
15 | transform(st.begin(), st.end(... |
s694659360 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
string word, ans;
getline(cin, word);
transform(word.begin(), word.end(), word.begin(), toupper);
cout << word << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:18: 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>)'
11 | transform(word.begin(), word.end(), w... |
s531172252 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
string word, ans;
getline(cin, word);
transform(word.begin(), word.end(), word.begin(), toupper);
cout << word << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:18: 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>)'
11 | transform(word.begin(), word.end(), w... |
s492432307 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
string word, ans;
getline(cin, word);
transform(word.begin(), word.end(), word.begin(), toupper);
cout << word << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:18: 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>)'
11 | transform(word.begin(), word.end(), w... |
s218287398 | p00020 | C++ | #include<iostream>
#include<string>
#include<cstdlib>
#include<algorithm>
using namespace std;
int main(){
string word, ans;
getline(cin, word);
transform(word.begin(), word.end(), word.begin(), toupper);
cout << word << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:12:18: 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>)'
12 | transform(word.begin(), word.end(), w... |
s550130521 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
string word, ans;
getline(cin, word);
transform(word.begin(), word.end(), word.begin(), toupper);
cout << word << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:18: 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>)'
11 | transform(word.begin(), word.end(), w... |
s073153445 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
int main(){
std::string word, ans;
std::getline(cin, word);
std::transform(word.begin(), word.end(), word.begin(), toupper);
std::cout << word << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:22: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
9 | std::getline(cin, word);
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared her... |
s801636551 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
int main(){
std::string word, ans;
std::getline(cin, word);
std::transform(word.begin(), word.end(), word.begin(), toupper);
std::cout << word << std::endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:22: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
9 | std::getline(cin, word);
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared her... |
s982329472 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
int main(){
std::string word, ans;
getline(cin, word);
std::transform(word.begin(), word.end(), word.begin(), toupper);
std::cout << word << std::endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
9 | getline(cin, word);
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | ext... |
s835460598 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(){
string word, ans;
getline(cin, word);
std::transform(word.begin(), word.end(), word.begin(), toupper);
cout << word << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:11:23: 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>)'
11 | std::transform(word.begin(), word.end... |
s328636907 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<cstdlib>
using namespace std;
int main()
{
char sta[210];
cin.getline(sta, 210);
string sa = sta;
transform(sa.begin(), sa.end(), sa.begin(), toupper);
cout << sa << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:18: 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>)'
13 | transform(sa.begin(), sa.end(), sa.be... |
s465348993 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
#include<cstdlib>
using namespace std;
int main()
{
char sta[210];
cin.getline(sta, 210);
string sa = sta;
transform(sa.begin(), sa.end(), sa.begin(), toupper);
cout << sa << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:18: 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>)'
13 | transform(sa.begin(), sa.end(), sa.be... |
s945969987 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main()
{
char sta[210];
cin.getline(sta, 210);
string sa = sta;
transform(sa.begin(), sa.end(), sa.begin(), toupper);
cout << sa << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:18: 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>)'
13 | transform(sa.begin(), sa.end(), sa.be... |
s323217865 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main()
{
char sta[210];
cin.getline(sta, 210);
string sa = sta;
transform(sa.begin(), sa.end(), sa.begin(), toupper);
cout << sa << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:12:18: 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>)'
12 | transform(sa.begin(), sa.end(), sa.be... |
s192266703 | p00020 | C++ | #include<stdio.h>
#include<string.h>
int main()
{
char a[220];
gets(a);
for(int i=0; a[i]!='\0'; i++)
{
if(a[i]>=97 && a[i]<=122){
a[i]=a[i]-32;
}
}
printf("%s\n",a);
return 0;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(a);
| ^~~~
| getw
|
s688760959 | p00020 | C++ | #include <stdio.h>
int main ()
{
char inp [210];
gets(inp);
for (int i=0; inp[i]; ++i)
{
if (inp[i] >= 'a' && inp[i] <= 'z')
{
inp[i] = inp[i] - 'a' + 'A';
}
}
puts (inp);
return 0;
} | a.cc: In function 'int main()':
a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(inp);
| ^~~~
| getw
|
s742172104 | p00020 | C++ | #include <stdio.h>
#include <string.h>
int main ()
{
char str[200];
gets (str);
int length = strlen (str);
for (int i = 0; i < length; i++)
{
if (str [i] >= 'a' && str [i] <= 'z')
str [i] -= 32;
}
puts(str);
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets (str);
| ^~~~
| getw
|
s337292474 | p00020 | C++ | #include <stdio.h>
#include <string.h>
int main ()
{
char str[200];
while (gets (str))
{
int length = strlen (str);
for (int i = 0; i < length; i++)
{
if (str [i] >= 'a' && str [i] <= 'z')
str [i] -= 32;
}
puts(str);
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:16: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | while (gets (str))
| ^~~~
| getw
|
s964620615 | p00020 | C++ | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
string str;
getline(cin, str);
transform(str.begin(), str.end(), str.begin(), toupper);
cout << str << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:12:18: 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>)'
12 | transform(str.begin(), str.end(), str... |
s164240180 | p00020 | C++ | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
string str;
getline(cin, str);
transform(str.begin(), str.end(), str.begin(), toupper);
cout << str << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:12:18: 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>)'
12 | transform(str.begin(), str.end(), str... |
s153282992 | p00020 | C++ | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main() {
string a;
getline(cin, a);
transform(a.begin(), a.end(), a.begin(), toupper);
cout << a << endl;
char t;
cin >> t;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:18: 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>)'
8 | transform(a.begin(), a.end(), a.begin(... |
s998127267 | p00020 | C++ | #include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main()
{
string a;
cin >> a;
transform(a.begin(), a.end(), a.begin(), toupper);
cout << a << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:18: 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(a.begin(), a.end(), a.begin(... |
s151422782 | p00020 | C++ | #include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main()
{
string a;
cin >> a;
transform(a.begin(), a.end(), a.begin(), toupper);
cout << a << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:18: 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(a.begin(), a.end(), a.begin(... |
s382373195 | p00020 | C++ | #include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main()
{
string a;
getline(cin,a);
transform(a.begin(), a.end(), a.begin(), toupper);
cout << a << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:18: 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(a.begin(), a.end(), a.begin(... |
s640486823 | p00020 | C++ | #include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main()
{
string a;
getline(cin,a);
transform(a.begin(), a.end(), a.begin(), toupper);
cout << a << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:18: 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(a.begin(), a.end(), a.begin(... |
s542603651 | p00020 | C++ | #include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main()
{
string a;
getline(cin,a);
transform(a.begin(), a.end(), a.begin(), toupper);
cout << a << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:18: 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(a.begin(), a.end(), a.begin(... |
s237420111 | p00020 | C++ | #include <bits/stdc++.h>
#define r(i,n) for(int i;i<n;i++)
using namespace std;
int main(){
sring s;
getline(cin,s);
r(i,s.size())cout<<touppr(s[i]);
cout<<endl;
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'sring' was not declared in this scope
5 | sring s;
| ^~~~~
a.cc:6:15: error: 's' was not declared in this scope
6 | getline(cin,s);
| ^
a.cc:7:22: error: 'touppr' was not declared in this scope; did you mean 'toupper'?
7 | r... |
s462477953 | p00020 | C++ | #include <bits/stdc++.h>
#define r(i,n) for(int i;i<n;i++)
using namespace std;
int main(){
string s;
getline(cin,s);
r(i,s.size())cout<<touppr(s[i]);
cout<<endl;
} | a.cc: In function 'int main()':
a.cc:7:22: error: 'touppr' was not declared in this scope; did you mean 'toupper'?
7 | r(i,s.size())cout<<touppr(s[i]);
| ^~~~~~
| toupper
|
s266625521 | p00020 | C++ | #include <iostream>
#include <string>
#include <cstdlib>
#include <cctype>
#include <algorithm>
using namespace std;
int main() {
string str;
getline(cin, str);
transform(str.begin(), str.end(), str.begin(), toupper);
cout << str << endl;
} | a.cc: In function 'int main()':
a.cc:11:18: 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>)'
11 | transform(str.begin(), str.end(), str... |
s865152615 | p00020 | C++ | #include <iostream>
#include <string>
#include <cstdlib>
#include <cctype>
#include <algorithm>
#include<string.h>
#include <numeric>
using namespace std;
int main() {
string str;
getline(cin, str);
transform(str.begin(), str.end(), str.begin(), toupper);
cout << str << endl;
} | a.cc: In function 'int main()':
a.cc:13:18: 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>)'
13 | transform(str.begin(), str.end(), str... |
s436540014 | p00020 | C++ | #include "bits/stdc++.h"
using namespace std;
int main() {
string str;
getline(cin, str);
transform(str.begin(), str.end(), str.begin(), toupper);
cout << str << endl;
} | a.cc: In function 'int main()':
a.cc:7:18: 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(str.begin(), str.end(), str.... |
s155426290 | p00020 | C++ | #include<ctype.h>
#include<stdio.h>
#include<string.h>
int main()
{
char m[256];
gets(m);
for(int i=0;i<strlen(m);i++){
if(islower(m[i])){
m[i]=toupper(m[i]);
}
}
printf("%s\n",m);
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
7 | gets(m);
| ^~~~
| getw
|
s309903667 | p00020 | C++ | #include<iostream>
using namespace std;
int main()
{
char s[200];
cin >> s;
for (int a = 0; a < strlen(s); a++) {
s[a] = s[a] - 32;
cout << s[a];
}
cout << endl;
} | a.cc: In function 'int main()':
a.cc:8:29: error: 'strlen' was not declared in this scope
8 | for (int a = 0; a < strlen(s); a++) {
| ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
1 | #include<i... |
s747388663 | p00020 | C++ | #include <iostream>
#include<algorithm>
#include<set>
#include<string>
using namespace std;
int main(int argc, char** argv) {
char s[201];
gets(s);
for(int i=0;s[i]!='\0';i++)
{
if(isalpha(s[i]))
s[i]=toupper(s[i]);
}
for(int i=0;s[i]!='\0';i++)
cout<<s[i];
cout<<endl;
return 0;
} | a.cc: In function 'int main(int, char**)':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(s);
| ^~~~
| getw
|
s568501320 | p00020 | C++ | main(c){for(;(c=getchar())!=-1;)putchar(c>96?c-32:c);} | a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
1 | main(c){for(;(c=getchar())!=-1;)putchar(c>96?c-32:c);}
| ^
|
s235223139 | p00020 | C++ | main(){int c;for(;(c=getchar())!=-1;)putchar(c>96?c-32:c);} | a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
1 | main(){int c;for(;(c=getchar())!=-1;)putchar(c>96?c-32:c);}
| ^~~~
a.cc: In function 'int main()':
a.cc:1:22: error: 'getchar' was not declared in this scope
1 | main(){int c;for(;(c=getchar())!=-1;)putchar(c>96?c-32... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.