criyle/codenet-compile-errors huggingface dataset:
Language: 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;
}

Compiler output:
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(), 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:9:18: note:   couldn't deduce template parameter '_UnaryOperation'
    9 |         transform(a.begin(), a.end(), a.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
Language: 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;
}

Compiler output:
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(), 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:9:18: note:   couldn't deduce template parameter '_UnaryOperation'
    9 |         transform(a.begin(), a.end(), a.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
Language: 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;
}

Compiler output:
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(i,s.size())cout<<touppr(s[i]);
      |                      ^~~~~~
      |                      toupper
Language: 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;
}

Compiler output:
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
Language: 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;
}

Compiler output:
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.begin(), toupper);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:5:
/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:11:18: note:   couldn't deduce template parameter '_UnaryOperation'
   11 |         transform(str.begin(), str.end(), str.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
Language: 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;
}

Compiler output:
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.begin(), toupper);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:5:
/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:13:18: note:   couldn't deduce template parameter '_UnaryOperation'
   13 |         transform(str.begin(), str.end(), str.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
Language: 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;
}

Compiler output:
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.begin(), toupper);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h: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:18: note:   couldn't deduce template parameter '_UnaryOperation'
    7 |         transform(str.begin(), str.end(), str.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
Language: 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;
}

Compiler output:
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
Language: 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;
}

Compiler output:
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<iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: 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;
}

Compiler output:
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
Language: C++

main(c){for(;(c=getchar())!=-1;)putchar(c>96?c-32:c);}

Compiler output:
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);}
      |     ^
Language: C++

main(){int c;for(;(c=getchar())!=-1;)putchar(c>96?c-32:c);}

Compiler output:
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:c);}
      |                      ^~~~~~~
a.cc:1:1: note: 'getchar' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | main(){int c;for(;(c=getchar())!=-1;)putchar(c>96?c-32:c);}
a.cc:1:38: error: 'putchar' was not declared in this scope; did you mean 'char'?
    1 | main(){int c;for(;(c=getchar())!=-1;)putchar(c>96?c-32:c);}
      |                                      ^~~~~~~
      |                                      char
Language: C++

#include <iostream>
#include <ctype.h>
using namespace std;
void str_toupper(char *str)
{
	do{
		*str = toupper(*str);
	}while(*str++);
}
int main(void)
{
	char str[100];
	gets(str);
	str_toupper(str);
	cout << str << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   13 |         gets(str);
      |         ^~~~
      |         getw
Language: C++

#include<iostream>
#include<ctype>

using namespace std;

int main()
{
	char a;
	
	for(;cin.get(a);)
	{
		if(a=='\n')
			break;
		a=toupper(a);
		cout << a ;
	}
}

Compiler output:
a.cc:2:9: fatal error: ctype: No such file or directory
    2 | #include<ctype>
      |         ^~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

int main() {
	char ch[200];
	gets(ch);
	for (int i=0; i<200; i++)
	{
		if (ch[i] >= 'a' && ch[i] <= 'z')
		{
			ch[i]-=32;
		}
	}
	printf("%s",ch);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(ch);
      |         ^~~~
      |         getw
Language: C++

#include <stdio.h>

int main() {
	char ch[200];
	gets(ch);
	for (int i=0; i<200; i++)
	{
		if (ch[i] >= 'a' && ch[i] <= 'z')
		{
			ch[i]-=32;
		}
	}
	printf("%s",ch);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    5 |         gets(ch);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h>

int main(){
	char str[200];
	while(1){
		gets(str);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |                 gets(str);
      |                 ^~~~
      |                 getw
Language: C++

#include<stdio.h>
#include<stdlib.h>
#include<string.h>

int i=0,n=1;
char s[1005];

int main(){
	gets(s);
	for(i=0;i<strlen(s);i++){
		if(s[i]>96 && s[i]<123)s[i]=s[i]-32;
	}
	printf("%s\n",s);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    9 |         gets(s);
      |         ^~~~
      |         getw
Language: C++

void main(){
	char s[999];
int i;
	for(;~scanf("%s",s);printf("%s ",s))
		for(i=0;s[i];i++)
			s[i]>='a'&&s[i]<='z'?s[i]-=32:0;
	for(i=0;s[i];i++)
		s[i]>='a'&&s[i]<='z'?s[i]-=32:0;
	puts(s);
}

Compiler output:
a.cc:1:1: error: '::main' must return 'int'
    1 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:15: error: 'scanf' was not declared in this scope
    4 |         for(;~scanf("%s",s);printf("%s ",s))
      |               ^~~~~
a.cc:4:29: error: 'printf' was not declared in this scope
    4 |         for(;~scanf("%s",s);printf("%s ",s))
      |                             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | void main(){
a.cc:9:9: error: 'puts' was not declared in this scope
    9 |         puts(s);
      |         ^~~~
Language: C++

void main(){
	char s[999];
	int i;
	for(;~scanf("%s",s);printf("%s ",s))
		for(i=0;s[i];i++)
			s[i]>='a'&&s[i]<='z'?s[i]-=32:0;
	for(i=0;s[i];i++)
		s[i]>='a'&&s[i]<='z'?s[i]-=32:0;
	puts(s);
}

Compiler output:
a.cc:1:1: error: '::main' must return 'int'
    1 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:15: error: 'scanf' was not declared in this scope
    4 |         for(;~scanf("%s",s);printf("%s ",s))
      |               ^~~~~
a.cc:4:29: error: 'printf' was not declared in this scope
    4 |         for(;~scanf("%s",s);printf("%s ",s))
      |                             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | void main(){
a.cc:9:9: error: 'puts' was not declared in this scope
    9 |         puts(s);
      |         ^~~~
Language: C++

void main(){
	char s[999];
	int i,j=0;
	for(;~scanf("%s",s);printf(" %s",s))
		for(i=0;s[i];i++)
			s[i]>='a'&&s[i]<='z'?s[i]-=32:0;
	puts("");
}

Compiler output:
a.cc:1:1: error: '::main' must return 'int'
    1 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:15: error: 'scanf' was not declared in this scope
    4 |         for(;~scanf("%s",s);printf(" %s",s))
      |               ^~~~~
a.cc:4:29: error: 'printf' was not declared in this scope
    4 |         for(;~scanf("%s",s);printf(" %s",s))
      |                             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | void main(){
a.cc:7:9: error: 'puts' was not declared in this scope
    7 |         puts("");
      |         ^~~~
Language: C++

#include<stdio.h>
void main(){
	char c;
	for(;~(c=getchar());printf("%c",c))
		c>='a'&&c<='z'?c-=32:0;
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main(){
      | ^~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <cctype>
#include <cstdio>
using namespace std;

int main() {
	string str;
	getline(cin, str);

	transform(str.begin(), str.end(), str.begin(), toupper);

	cout<<str.c_str()<<endl;
	return 0;
}

Compiler output:
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.begin(), toupper);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/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:12:18: note:   couldn't deduce template parameter '_UnaryOperation'
   12 |         transform(str.begin(), str.end(), str.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
Language: C++

a;main(){a=puts("THIS IS A PEN.");}

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a;main(){a=puts("THIS IS A PEN.");}
      | ^
a.cc:1:3: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | a;main(){a=puts("THIS IS A PEN.");}
      |   ^~~~
a.cc: In function 'int main()':
a.cc:1:10: error: 'a' was not declared in this scope
    1 | a;main(){a=puts("THIS IS A PEN.");}
      |          ^
a.cc:1:12: error: 'puts' was not declared in this scope
    1 | a;main(){a=puts("THIS IS A PEN.");}
      |            ^~~~
Language: C++

main(a){for(;~scanf("%c",&a);printf("%c",a>96?a-32:a);}

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(a){for(;~scanf("%c",&a);printf("%c",a>96?a-32:a);}
      |     ^
Language: C++

include <stdio.h>
#include <ctype.h>
#include <string.h>

int main(void){
	char in[256];
	fgets(in, 255, stdin);
	int len = strlen(in) - 1;
	in[len] = '\0';
	for(int i=0; i<len; ++i){
		in[i] = toupper(in[i]);
	}
	puts(in);
	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:24: error: 'stdin' was not declared in this scope
    7 |         fgets(in, 255, stdin);
      |                        ^~~~~
a.cc:4:1: note: 'stdin' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    3 | #include <string.h>
  +++ |+#include <cstdio>
    4 | 
a.cc:7:9: error: 'fgets' was not declared in this scope
    7 |         fgets(in, 255, stdin);
      |         ^~~~~
a.cc:13:9: error: 'puts' was not declared in this scope
   13 |         puts(in);
      |         ^~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include <cstdlib>
using namespace std;
int main(){
	string s;
	cin>>s;
	transform (s.begin (), s.end (), s.begin (), toupper);
	cout<<s;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: 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 (), 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:9:19: note:   couldn't deduce template parameter '_UnaryOperation'
    9 |         transform (s.begin (), s.end (), s.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
Language: C++

#include <cstdio>
#include <iostream>

using namespace std;

int main(void) {
	char in[1024];
	int i;

	gets(in);
	for(i=0;in[i]!='\0';i++) {
		if(in[i]>='a') { printf("%c", in[i] - ('a'-'A')); }
		else { printf("%c", in[i]); }
	}
	printf("\n");

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   10 |         gets(in);
      |         ^~~~
      |         getw
Language: C++

#include <algorithm>
#include <iostream>
#include <string>

using namespace std;

int main() {

	string s;

	cin >> s;
	transform(s.begin(), s.end(), s.begin(), toupper);
	cout << s << endl;

	return 0;

}

Compiler output:
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(s.begin(), s.end(), s.begin(), toupper);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:1:
/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:12:18: note:   couldn't deduce template parameter '_UnaryOperation'
   12 |         transform(s.begin(), s.end(), s.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
Language: C++

#include<cstdio>
using namespace std;

int main(){
	char str[1024], *s;
	gets(str);
	int i=0;
	while(str[i++]!='\0');
	s = new char[i];
	for( int j=0; j<i; j++ ){
		s[j] = str[j];
		if( ('a'<=s[j])&&(s[j]<='z') ){
			s[j] -= 32;
		}
	}
	printf("%s", s);
	delete[] s;
	s=0;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(str);
      |         ^~~~
      |         getw
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <cctype>

int main()
{
	std::string input_text;
	std::getline(std::cin, input_text);
	std::transform(
			input_text.begin(), input_text.end(),
			std::ostream_iterator<char>(std::cout, ""),
			static_cast<int(*)(int)>(&std::toupper));
	std::cout << std::endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:30: error: 'ostream_iterator' is not a member of 'std'
   12 |                         std::ostream_iterator<char>(std::cout, ""),
      |                              ^~~~~~~~~~~~~~~~
a.cc:5:1: note: 'std::ostream_iterator' is defined in header '<iterator>'; this is probably fixable by adding '#include <iterator>'
    4 | #include <cctype>
  +++ |+#include <iterator>
    5 | 
a.cc:12:47: error: expected primary-expression before 'char'
   12 |                         std::ostream_iterator<char>(std::cout, ""),
      |                                               ^~~~
Language: C++

#include <cstdio>
#include <cstring>
#include <iostream>

using namespace std;

const int N = 1000005;

char text[N];

int main() {
	while (gets(text)) {
		int len = strlen(text);
		for (int i=0; i<len; ++i) {
			if (text[i] >= 'a' && text[i] <= 'z') text[i] = text[i] - 'a' + 'A';
		}
		printf ("%s\n", text);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |         while (gets(text)) {
      |                ^~~~
      |                getw
Language: C++

#import<cstdio>
int main(c){for(;~(c=getchar());putchar(c>96?c-32:c));}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>
      |  ^~~~~~
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main(c){for(;~(c=getchar());putchar(c>96?c-32:c));}
      |     ^~~~
a.cc:2:10: error: 'c' was not declared in this scope
    2 | int main(c){for(;~(c=getchar());putchar(c>96?c-32:c));}
      |          ^
Language: C++

#include<cstdio>
int main(c){for(;~(c=getchar());putchar(c>96?c-32:c));}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main(c){for(;~(c=getchar());putchar(c>96?c-32:c));}
      |     ^~~~
a.cc:2:10: error: 'c' was not declared in this scope
    2 | int main(c){for(;~(c=getchar());putchar(c>96?c-32:c));}
      |          ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
char ToUpper (char cX) { return toupper(cX); } 
using namespace std;

int main() {
	string in;
	getline(cin, in);
	transform(in.begin(), in.end(), in.begin(), ToUpper);
	cout<<in<<;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: expected primary-expression before ';' token
   11 |         cout<<in<<;
      |                   ^
Language: C++

#include <algorithm>
#include <iostream>
#include <string>
using namespace std;

int main(void)
{
	string a;
	getline(cin,a);
	transform(a.begin(),a.end(),a.begin(),toupper);
	cout<<a<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10: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>)'
   10 |         transform(a.begin(),a.end(),a.begin(),toupper);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:1:
/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:10:18: note:   couldn't deduce template parameter '_UnaryOperation'
   10 |         transform(a.begin(),a.end(),a.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
Language: C++

#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main(void){
	string s;

	cin >> s;
	transform(s.begin(),s.end(),s.begin(),toupper);
	cout << s << endl;

	return 0;
}

Compiler output:
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(),toupper);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/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:11:18: note:   couldn't deduce template parameter '_UnaryOperation'
   11 |         transform(s.begin(),s.end(),s.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
Language: C++

#include <iostream>
using namespace std;

int main() {
	string s;
	getline(cin,s);
	for(int i=0;i<=s.size();i++){
		if(0x61<=(int)s[i]&&(int)s[i]<=0x7A)a{
			s[i]-=0x20;
		}cout<<s[i];
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:53: error: 'a' was not declared in this scope
    8 |                 if(0x61<=(int)s[i]&&(int)s[i]<=0x7A)a{
      |                                                     ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int
main ()
{
  string str;
  string table[2] =
    { "abcdefghijklmnopqrstuvwxyz",
　　　　"ABCDEFGHIJKLMNOPQRSTUVWXYZ" };
  getline (cin, str);
for (auto & e:str)
    {
      int buf =
	find (table[0].begin (), table[0].end (), e) - table[0].begin ();
      if (buf != table[0].size ())
	e = table[1][buf];
    }
  cout << str << endl;
}

Compiler output:
a.cc:13:1: error: extended character 　 is not valid in an identifier
   13 | 　　　　"ABCDEFGHIJKLMNOPQRSTUVWXYZ" };
      | ^
a.cc:13:1: error: extended character 　 is not valid in an identifier
a.cc:13:1: error: extended character 　 is not valid in an identifier
a.cc:13:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:1: error: '\U00003000\U00003000\U00003000\U00003000' was not declared in this scope
   13 | 　　　　"ABCDEFGHIJKLMNOPQRSTUVWXYZ" };
      | ^~~~~~~~
a.cc:13:9: error: expected '}' before string constant
   13 | 　　　　"ABCDEFGHIJKLMNOPQRSTUVWXYZ" };
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:12:5: note: to match this '{'
   12 |     { "abcdefghijklmnopqrstuvwxyz",
      |     ^
a.cc:13:9: error: expected ',' or ';' before string constant
   13 | 　　　　"ABCDEFGHIJKLMNOPQRSTUVWXYZ" };
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: At global scope:
a.cc:14:11: error: expected constructor, destructor, or type conversion before '(' token
   14 |   getline (cin, str);
      |           ^
a.cc:15:1: error: expected unqualified-id before 'for'
   15 | for (auto & e:str)
      | ^~~
a.cc:22:3: error: 'cout' does not name a type
   22 |   cout << str << endl;
      |   ^~~~
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: Java


import java.util.Scanner;

/**
 * AOJ id=0021
 * Parallelism
 * @author scache
 *
 */
public class Main0021 {
	public static void main(String[] args) {
		Main0021 p = new Main0021();
	}

	public Main0021() {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int a=0;a<n;a++){
			double[] x =new double[2];
			double[] y =new double[2];
			for(int i=0;i<4;i++){
				int sign = i%2==0 ? 1:-1;
				x[i/2] += sc.nextDouble() *sign;
				y[i/2] += sc.nextDouble() *sign;
			}
			solve(x, y);
		}
	}

	public void solve(double[] x, double[] y) {
		System.out.println(x[0]*y[1]==x[1]*y[0] ? "YES" : "NO");
	}

}

Compiler output:
Main.java:10: error: class Main0021 is public, should be declared in a file named Main0021.java
public class Main0021 {
       ^
1 error
Language: Java

import java.util.Scanner;

public class P0021 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			double[] p = new double[8];
			// 座標入力
			for (int j = 0; j < 8; j++) {
				p[j] = sc.nextDouble();
			}

			// 傾き
			double a1 = (p[3] - p[1]) / (p[2] - p[0]);
			double a2 = (p[7] - p[5]) / (p[6] - p[4]);

			// 判定
			if (a1 == a2) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}

}

Compiler output:
Main.java:3: error: class P0021 is public, should be declared in a file named P0021.java
public class P0021 {
       ^
1 error