criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <string>
#include <stack>
#include <cmath>
#define ll long long
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define ROF(i,a,b) for(int i=b-1;i>=a;i--)
using namespace std;
//
const int inf=1e9+7;
const int mod=1e9+7;
//
struct poi{
	int X;int Y;int Z;
	bool operator<(const poi&R)const{
		return X==R.X ? Y==R.Y ? Z<R.Z : Y<R.Y : X<R.X;
	}
};
//
ll GCD(ll a,ll b){
	return (b==0)?(a):(GCD(b,a%b));
}
ll LCM(ll a,ll b){
	return a/GCD(a,b)*b;
}
//
int main(){
	int M,F,B;
	cin>>M>>F>>B;
	if(M>=B){
		cout<<0<<endl;
	}else if(B-M>=F){
		cout<<(B-M)<<endl;
	}else{
		cout<<"NA"<<endll;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:29: error: 'endll' was not declared in this scope
   39 |                 cout<<"NA"<<endll;
      |                             ^~~~~
Language: C++

#include<iostream>
using namespace std;
 
int main(){
  int m,f,b;
  cin>>m>>f>>b;

  if(b<(m+f))endl;

   if(b<=m) cout<< 0 <<endl;
    else
    cout<<b-m<<endl;

  else
   cout<<"NA"<<endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: statement cannot resolve address of overloaded function
    8 |   if(b<(m+f))endl;
      |                  ^
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;
 
int main(){
  int m,f,b;
  cin>>m>>f>>b;

  if{b<(m+f)}endl;

   if(b<=m) cout<< 0 <<endl;
    else
    cout<<b-m<<endl;

  else
   cout<<"NA"<<endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected '(' before '{' token
    8 |   if{b<(m+f)}endl;
      |     ^
      |     (
a.cc:8:18: error: statement cannot resolve address of overloaded function
    8 |   if{b<(m+f)}endl;
      |                  ^
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;
 
int main(){
  int m,f,b;
  cin>>m>>f>>b;

  if(b<m+f)endl;

   if(b<=m) cout<< 0 <<endl;
    else
    cout<<b-m<<endl;

  else
   cout<<"NA"<<endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: statement cannot resolve address of overloaded function
    8 |   if(b<m+f)endl;
      |                ^
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;

int m,f,b;

int main(){
cin>>m>>f>>b;
 if m+f<b
  cout<<NA<<endl;
 else
  
cout<<f=b-m<<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected '(' before 'm'
    8 |  if m+f<b
      |     ^
      |     (
a.cc:10:2: error: 'else' without a previous 'if'
   10 |  else
      |  ^~~~
a.cc:12:12: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 | cout<<f=b-m<<endl;
      |         ~~~^~~~~~
Language: C++


#include<iostream>
using namespace std;

int m,f,b;


int main(){
Y=0;    
cin>>m>>f>>b;

 if (m+f<b)
   Y=NA;
 else
   Y=b-m;
cout<<Y<<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'Y' was not declared in this scope
    9 | Y=0;
      | ^
a.cc:13:6: error: 'NA' was not declared in this scope
   13 |    Y=NA;
      |      ^~
Language: C++


#include<iostream>
using namespace std;

int m,f,b,Y;


int main(){
Y=0;    
cin>>m>>f>>b;

 if (m+f<b)
   Y=NA;
 else
   Y=b-m;
cout<<Y<<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: 'NA' was not declared in this scope
   13 |    Y=NA;
      |      ^~
Language: C++


#include<iostream>
using namespace std;

int m,f,b,;


int main(){
Y=0;    
cin>>m>>f>>b;

 if (m+f<b)
   cout<<NA<<endl;
 else
cout<<f=b-m<<endl;

return 0;
}


Compiler output:
a.cc:5:11: error: expected unqualified-id before ';' token
    5 | int m,f,b,;
      |           ^
a.cc: In function 'int main()':
a.cc:9:1: error: 'Y' was not declared in this scope
    9 | Y=0;
      | ^
a.cc:13:10: error: 'NA' was not declared in this scope
   13 |    cout<<NA<<endl;
      |          ^~
a.cc:15:12: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 | cout<<f=b-m<<endl;
      |         ~~~^~~~~~
Language: C++


#include<iostream>
using namespace std;

int m,f,b;


int main(){
Y=0;    
cin>>m>>f>>b;

 if (m+f<b)
   cout<<NA<<endl;
 else
cout<<f=b-m<<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'Y' was not declared in this scope
    9 | Y=0;
      | ^
a.cc:13:10: error: 'NA' was not declared in this scope
   13 |    cout<<NA<<endl;
      |          ^~
a.cc:15:12: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 | cout<<f=b-m<<endl;
      |         ~~~^~~~~~
Language: C++


#include<iostream>
using namespace std;

int m,f,b;


int main(){
Y=0;    
cin>>m>>f>>b;

 if (m+f<b)
   cout<<NA<<endl;
 else
cout<<b-m<<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'Y' was not declared in this scope
    9 | Y=0;
      | ^
a.cc:13:10: error: 'NA' was not declared in this scope
   13 |    cout<<NA<<endl;
      |          ^~
Language: C++


#include<iostream>
using namespace std;

int m,f,b;


int main(){
cin>>m>>f>>b;

 if (m+f<b)
   cout<<NA<<endl;
 else
cout<<b-m<<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: 'NA' was not declared in this scope
   12 |    cout<<NA<<endl;
      |          ^~
Language: C++

#include 
using namespace std;
  
main() {
int m, f, b;
cin>>m>>f>>b;
if(m>= b)cout<<0<<endl;
else if ( m + f >= b ) cout << b - m << endl;
else cout << "NA" << endl;
}



Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |          ^
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>m>>f>>b;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include
a.cc:7:10: error: 'cout' was not declared in this scope
    7 | if(m>= b)cout<<0<<endl;
      |          ^~~~
a.cc:7:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:19: error: 'endl' was not declared in this scope
    7 | if(m>= b)cout<<0<<endl;
      |                   ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include
a.cc:8:24: error: 'cout' was not declared in this scope
    8 | else if ( m + f >= b ) cout << b - m << endl;
      |                        ^~~~
a.cc:8:24: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:41: error: 'endl' was not declared in this scope
    8 | else if ( m + f >= b ) cout << b - m << endl;
      |                                         ^~~~
a.cc:8:41: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:9:6: error: 'cout' was not declared in this scope
    9 | else cout << "NA" << endl;
      |      ^~~~
a.cc:9:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:22: error: 'endl' was not declared in this scope
    9 | else cout << "NA" << endl;
      |                      ^~~~
a.cc:9:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include 
using namespace std;
  
int main() {
int m, f, b;
cin>>m>>f>>b;
if(m>= b)cout<<0<<endl;
else if ( m + f >= b ) cout << b - m << endl;
else cout << "NA" << endl;
}



Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |          ^
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>m>>f>>b;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include
a.cc:7:10: error: 'cout' was not declared in this scope
    7 | if(m>= b)cout<<0<<endl;
      |          ^~~~
a.cc:7:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:19: error: 'endl' was not declared in this scope
    7 | if(m>= b)cout<<0<<endl;
      |                   ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include
a.cc:8:24: error: 'cout' was not declared in this scope
    8 | else if ( m + f >= b ) cout << b - m << endl;
      |                        ^~~~
a.cc:8:24: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:41: error: 'endl' was not declared in this scope
    8 | else if ( m + f >= b ) cout << b - m << endl;
      |                                         ^~~~
a.cc:8:41: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:9:6: error: 'cout' was not declared in this scope
    9 | else cout << "NA" << endl;
      |      ^~~~
a.cc:9:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:22: error: 'endl' was not declared in this scope
    9 | else cout << "NA" << endl;
      |                      ^~~~
a.cc:9:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include  <iostream>
using namespace std;
int main() {
int m, f, b;
cin>>m>>f>>b;
if(m>= b)cout<<0<<endl;
else if ( m + f >= b ) cout << b - m << endl;
else cout<<NA<< endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'NA' was not declared in this scope
    8 | else cout<<NA<< endl;
      |            ^~
Language: C++

#include<iostream>
uisng namespace std;
int main(){

int m,f,b;
cin>>m>>f>>b;
if(m>b)cout<<" 0 "<<endl;
else
if(m+f>b)cout<<b-m<<endl;
else
cout<<" NA "<<endl;

return 0;
}


Compiler output:
a.cc:2:1: error: 'uisng' does not name a type
    2 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin>>m>>f>>b;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | if(m>b)cout<<" 0 "<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | if(m>b)cout<<" 0 "<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | if(m+f>b)cout<<b-m<<endl;
      |          ^~~~
      |          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | if(m+f>b)cout<<b-m<<endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 | cout<<" NA "<<endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 | cout<<" NA "<<endl;
      |               ^~~~
      |               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
uisng namespace std;
int main(){

int m,f,b;
cin>>m>>f>>b;
if(m>b)cout<<" 0 "<<endl;
else
if((m+f)>b)cout<<b-m<<endl;
else
cout<<" NA "<<endl;

return 0;
}


Compiler output:
a.cc:2:1: error: 'uisng' does not name a type
    2 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin>>m>>f>>b;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | if(m>b)cout<<" 0 "<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | if(m>b)cout<<" 0 "<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | if((m+f)>b)cout<<b-m<<endl;
      |            ^~~~
      |            std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | if((m+f)>b)cout<<b-m<<endl;
      |                       ^~~~
      |                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 | cout<<" NA "<<endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 | cout<<" NA "<<endl;
      |               ^~~~
      |               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++


#include<iostream>
using namespace std;

int m,f,b;


int main(){
cin>>m>>f>>b;

 if (m+f<b)
   cout<<NA<<endl;
  if (m>b)
   cout<<0<<endl;
   else 
  cout<<b-m<<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: 'NA' was not declared in this scope
   12 |    cout<<NA<<endl;
      |          ^~
Language: C++


#include<iostream>
using namespace std;

int m,f,b;


int main(){
cin>>m>>f>>b;

 if (m+f<b)
   cout<<""NA""<<endl;
  if (m>b)
   cout<<0<<endl;
   else 
  cout<<b-m<<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: unable to find string literal operator 'operator""NA' with 'const char [1]', 'long unsigned int' arguments
   12 |    cout<<""NA""<<endl;
      |              ^~
Language: C++


#include<iostream>
using namespace std;

int m,f,b;


int main(){
cin>>m>>f>>b;

 if (m> = b)
   cout<<0<<endl;
  if (m+f >= b)
   cout<<b-m<<endl;
   else 
  cout<<"NA"<<endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected primary-expression before '=' token
   11 |  if (m> = b)
      |         ^
Language: C++

#include 
using namespace std;
  
main() {
   int m, f, b;
   cin >> m >> f >> b;

   if ( m >= b ) cout << 0 << endl;
   else if ( m + f >= b ) cout << b - m << endl;
   else cout << "NA" << endl;
}


Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |          ^
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:4: error: 'cin' was not declared in this scope
    6 |    cin >> m >> f >> b;
      |    ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include
a.cc:8:18: error: 'cout' was not declared in this scope
    8 |    if ( m >= b ) cout << 0 << endl;
      |                  ^~~~
a.cc:8:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:31: error: 'endl' was not declared in this scope
    8 |    if ( m >= b ) cout << 0 << endl;
      |                               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include
a.cc:9:27: error: 'cout' was not declared in this scope
    9 |    else if ( m + f >= b ) cout << b - m << endl;
      |                           ^~~~
a.cc:9:27: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:44: error: 'endl' was not declared in this scope
    9 |    else if ( m + f >= b ) cout << b - m << endl;
      |                                            ^~~~
a.cc:9:44: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |    else cout << "NA" << endl;
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:25: error: 'endl' was not declared in this scope
   10 |    else cout << "NA" << endl;
      |                         ^~~~
a.cc:10:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include 
using namespace std;
  
main() {
   int m, f, b;
   cin >> m >> f >> b;

   if ( m >= b ) cout << 0 << endl;
   else if ( m + f >= b ) cout << b - m << endl;
   else cout << "NA" << endl;
return 0;
}


Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |          ^
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:4: error: 'cin' was not declared in this scope
    6 |    cin >> m >> f >> b;
      |    ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include
a.cc:8:18: error: 'cout' was not declared in this scope
    8 |    if ( m >= b ) cout << 0 << endl;
      |                  ^~~~
a.cc:8:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:31: error: 'endl' was not declared in this scope
    8 |    if ( m >= b ) cout << 0 << endl;
      |                               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include
a.cc:9:27: error: 'cout' was not declared in this scope
    9 |    else if ( m + f >= b ) cout << b - m << endl;
      |                           ^~~~
a.cc:9:27: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:44: error: 'endl' was not declared in this scope
    9 |    else if ( m + f >= b ) cout << b - m << endl;
      |                                            ^~~~
a.cc:9:44: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |    else cout << "NA" << endl;
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:25: error: 'endl' was not declared in this scope
   10 |    else cout << "NA" << endl;
      |                         ^~~~
a.cc:10:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include 
using namespace std;
  
main() {
   int m, f, b;
   cin >> m >> f >> b;

   if (  b > (m + f) ) cout << "NA" << endl;
   else
   if ( b <= m ) cout << 0 << endl;
   else cout << b-m << endl;
return 0;
}


Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |          ^
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:4: error: 'cin' was not declared in this scope
    6 |    cin >> m >> f >> b;
      |    ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include
a.cc:8:24: error: 'cout' was not declared in this scope
    8 |    if (  b > (m + f) ) cout << "NA" << endl;
      |                        ^~~~
a.cc:8:24: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:40: error: 'endl' was not declared in this scope
    8 |    if (  b > (m + f) ) cout << "NA" << endl;
      |                                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include
a.cc:10:18: error: 'cout' was not declared in this scope
   10 |    if ( b <= m ) cout << 0 << endl;
      |                  ^~~~
a.cc:10:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:31: error: 'endl' was not declared in this scope
   10 |    if ( b <= m ) cout << 0 << endl;
      |                               ^~~~
a.cc:10:31: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |    else cout << b-m << endl;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:24: error: 'endl' was not declared in this scope
   11 |    else cout << b-m << endl;
      |                        ^~~~
a.cc:11:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <cstdio>

using namespace std;

int main()
{
    int m,f,b;
    scanf( "%d %d %d\n", &m, &f, &b );
    int ret = b - m;
    if( ret < 0 )
    {
        printf("%d\n", 0 );
    }
    else if( f < ret )
    {
        printf("NA\n");
    }
    else
    {
        printf8 "%d\n", ret );
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: 'printf8' was not declared in this scope; did you mean 'printf'?
   20 |         printf8 "%d\n", ret );
      |         ^~~~~~~
      |         printf
Language: C++

#include <cstdio>

using namespace std;

int main()
{
    int m,f,b;
    scanf( "%d %d %d\n", &m, &f, &b );
    int ret = b - m;
    if( ret < 0 )
    {
        printf("%d\n", 0 );
    }
    else if( f < ret )
    {
        printf("NA\n");
    }
    else
    {
        printf() "%d\n", ret );
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:15: error: too few arguments to function 'int printf(const char*, ...)'
   20 |         printf() "%d\n", ret );
      |         ~~~~~~^~
In file included from /usr/include/c++/14/cstdio:42,
                 from a.cc:1:
/usr/include/stdio.h:363:12: note: declared here
  363 | extern int printf (const char *__restrict __format, ...);
      |            ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int a ,b ,c;
	cin >> a >> b >> c
	if(a + b < c){
		cout << "NA" << endl;
		return 0;
	}
	if(a >= c){
		cout << 0 << endl;
		return 0;
	}
	cout << c-a << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before 'if'
    6 |         cin >> a >> b >> c
      |                           ^
      |                           ;
    7 |         if(a + b < c){
      |         ~~
Language: C++

#include<cstdio>
using namespace std;

int main() {
	int a, b,c;
	scanf_s("%d %d %d", &b, &a,&c);
	if (b >= c) printf("0\n");
	else if(a+b>=c) printf("%d\n", c-b);
	else printf("NA");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%d %d %d", &b, &a,&c);
      |         ^~~~~~~
      |         scanf
Language: C++

//============================================================================
// Name        : AOJ.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <algorithm>

using namespace std;

int main() {
	auto i=0;
	int m,f,b
	cin>>m>>f>>b;
	if(m>=b){
		i=0;
		cout <<i<< endl;
	}else if((m+f)-b<0){
		cout <<"NA"<< endl;
	}else {
		cout <<b-m<< endl;

	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: expected initializer before 'cin'
   17 |         cin>>m>>f>>b;
      |         ^~~
a.cc:18:15: error: 'b' was not declared in this scope
   18 |         if(m>=b){
      |               ^
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OthloKyopro
{
    class Program
    {
        static void Main(string[] args)
        {
            /* 2 */
            var input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
            var own = input[0];
            var a = input[1];
            var book = input[2];
            if(own > book)
            {
                Console.WriteLine(0);
            }
            else if(own + a > book)
            {
                Console.WriteLine(book - own);
            }
            else
            {
                Console.WriteLine("NA");
            }

        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:10:26: error: 'string' has not been declared
   10 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:10:35: error: expected ',' or '...' before 'args'
   10 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:31:6: error: expected ';' after class definition
   31 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void OthloKyopro::Program::Main(int*)':
a.cc:13:13: error: 'var' was not declared in this scope
   13 |             var input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
      |             ^~~
a.cc:14:17: error: expected ';' before 'own'
   14 |             var own = input[0];
      |                 ^~~
a.cc:15:17: error: expected ';' before 'a'
   15 |             var a = input[1];
      |                 ^
a.cc:16:17: error: expected ';' before 'book'
   16 |             var book = input[2];
      |                 ^~~~
a.cc:17:16: error: 'own' was not declared in this scope
   17 |             if(own > book)
      |                ^~~
a.cc:17:22: error: 'book' was not declared in this scope; did you mean 'bool'?
   17 |             if(own > book)
      |                      ^~~~
      |                      bool
a.cc:19:17: error: 'Console' was not declared in this scope
   19 |                 Console.WriteLine(0);
      |                 ^~~~~~~
a.cc:21:27: error: 'a' was not declared in this scope
   21 |             else if(own + a > book)
      |                           ^
a.cc:23:17: error: 'Console' was not declared in this scope
   23 |                 Console.WriteLine(book - own);
      |                 ^~~~~~~
a.cc:27:17: error: 'Console' was not declared in this scope
   27 |                 Console.WriteLine("NA");
      |                 ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
int m,f,n;
cin>>m>>f>>n;
if(m+f<n)cout<<"NA"<<endl;
else{
if(n<=m){
cout<<0<<endl;
}
else{
cout<<n-m<<endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <stdio.h>

int main(void){
	
	int temochi,a,nedan;
	int ans1,ans2;
	
	scanf("%d %d %d",&temoci,&a,&nedan);
	
	ans1 = temochi+a;
	if(ans1<nedan){
		printf("NA\n");
	}else{
		ans2 = nedan-temochi;
		if(ans2<=0){
			printf("0\n");
		}else{
			printf("%d\n",ans2);
		}
	}
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: 'temoci' was not declared in this scope; did you mean 'temochi'?
    8 |         scanf("%d %d %d",&temoci,&a,&nedan);
      |                           ^~~~~~
      |                           temochi
Language: C++

#include <stdio.h>

int main(void) {

	int a, b, c;

	scanf_s("%d %d %d", &a, &b, &c);

	if (a >= c) {
		printf("0\n");
	}
	else if ((a + b) <= c) {

		printf("NA\n");
	}
	else {
		printf("%d\n", c - a);

	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |         scanf_s("%d %d %d", &a, &b, &c);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(){
	int a,b,c;
	cin>>a>>b>>c;
	if(a>=c)cout<<"0"<<<endl;
	else if(a+b<c)cout<<"NA"<<endl;
	else cout<<c-a<<endl;
    return 0;
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected primary-expression before '<' token
    7 |         if(a>=c)cout<<"0"<<<endl;
      |                            ^
Language: C++

int main() {
	int a,b,c;
	cin>>a>>b>>c;
	cout<<b-c+a<<endl;
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin>>a>>b>>c;
      |         ^~~
a.cc:4:9: error: 'cout' was not declared in this scope
    4 |         cout<<b-c+a<<endl;
      |         ^~~~
a.cc:4:22: error: 'endl' was not declared in this scope
    4 |         cout<<b-c+a<<endl;
      |                      ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
    
int m; //自分の金額
int f;　//A君の金額
int b;//本の値段

    if (m >= b){
      cout << "0" << endl;
    }

    if (m < b){
        if (m + f < b){
            cout << "NA" << endl;
        }
        else{
            cout << b - m + f << endl;
        }
    }



    

return 0;
}



Compiler output:
a.cc:6:7: error: extended character 　 is not valid in an identifier
    6 | int f;　//A君の金額
      |       ^
a.cc: In function 'int main()':
a.cc:6:7: error: '\U00003000' was not declared in this scope
    6 | int f;　//A君の金額
      |       ^~
a.cc:9:14: error: 'b' was not declared in this scope
    9 |     if (m >= b){
      |              ^
a.cc:13:13: error: 'b' was not declared in this scope
   13 |     if (m < b){
      |             ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    
int m; //自分の金額
int f;　//A君の金額
int b;//本の値段

    if (m >= b){
      cout << "0" << endl;
    }

    if (m < b){
        if (m + f < b){
            cout << "NA" << endl;
        }
        else{
            cout << b - m + f << endl;
        }
    }

return 0;
}



Compiler output:
a.cc:6:7: error: extended character 　 is not valid in an identifier
    6 | int f;　//A君の金額
      |       ^
a.cc: In function 'int main()':
a.cc:6:7: error: '\U00003000' was not declared in this scope
    6 | int f;　//A君の金額
      |       ^~
a.cc:9:14: error: 'b' was not declared in this scope
    9 |     if (m >= b){
      |              ^
a.cc:13:13: error: 'b' was not declared in this scope
   13 |     if (m < b){
      |             ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    
int m; //自分の金額
int f;　//A君の金額
int b;//本の値段

    cin >> m;
    cin >> f;
    cin >> b;

    if (m >= b){
      cout << "0" << endl;
    }

    if (m < b){
        if (m + f < b){
            cout << "NA" << endl;
        }
        else{
            cout << b - m + f << endl;
        }
    }

return 0;
}



Compiler output:
a.cc:6:7: error: extended character 　 is not valid in an identifier
    6 | int f;　//A君の金額
      |       ^
a.cc: In function 'int main()':
a.cc:6:7: error: '\U00003000' was not declared in this scope
    6 | int f;　//A君の金額
      |       ^~
a.cc:11:12: error: 'b' was not declared in this scope
   11 |     cin >> b;
      |            ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    
    int m; //自分の金額
    int f;　//A君の金額
    int b;  //本の値段

    cin >> m;
    cin >> f;
    cin >> b;

    if (m >= b) cout << "0" << endl;
    else if((m + b) < b) cout << "NA" << endl;
    else cout << (m + f) - b << endl; 


return 0;
}



Compiler output:
a.cc:6:11: error: extended character 　 is not valid in an identifier
    6 |     int f;　//A君の金額
      |           ^
a.cc: In function 'int main()':
a.cc:6:11: error: '\U00003000' was not declared in this scope
    6 |     int f;　//A君の金額
      |           ^~
a.cc:11:12: error: 'b' was not declared in this scope
   11 |     cin >> b;
      |            ^
Language: C++

int main()
{
	int a , b , c , d;
	cin >> a >> b >> c ;
	d = c-a;
	if (d<= b) cout <<d << endl ;
	else cout <<"NA"<<endl;
	cout << (a+b)/2 <<endl;
	return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> a >> b >> c ;
      |         ^~~
a.cc:6:20: error: 'cout' was not declared in this scope
    6 |         if (d<= b) cout <<d << endl ;
      |                    ^~~~
a.cc:6:32: error: 'endl' was not declared in this scope
    6 |         if (d<= b) cout <<d << endl ;
      |                                ^~~~
a.cc:7:14: error: 'cout' was not declared in this scope
    7 |         else cout <<"NA"<<endl;
      |              ^~~~
a.cc:7:27: error: 'endl' was not declared in this scope
    7 |         else cout <<"NA"<<endl;
      |                           ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << (a+b)/2 <<endl;
      |         ^~~~
a.cc:8:27: error: 'endl' was not declared in this scope
    8 |         cout << (a+b)/2 <<endl;
      |                           ^~~~
Language: C

#include<stdio.h>
int main(){
int x;
scanf("%d",&x);
if(x%7==2)printf("sat\n");
if(x%7==3)printf("sun\n");
if(x%7==4)printf("mon\n");
if(x%7==5)printf("tue\n");
if(x%7==6)printf("wed\n");
if(x%7==0)printf("thu\n");
if(x%7==2)printf("fri\n");
retrun 0;
}



Compiler output:
main.c: In function 'main':
main.c:12:1: error: 'retrun' undeclared (first use in this function)
   12 | retrun 0;
      | ^~~~~~
main.c:12:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:7: error: expected ';' before numeric constant
   12 | retrun 0;
      |       ^~
      |       ;
Language: C++

import java.util.Calendar;
import java.util.Locale;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int X = sc.nextInt();

            Calendar calendar = Calendar.getInstance();
            calendar.set(2017, Calendar.SEPTEMBER, X);
            System.out.println(calendar.getDisplayName(
                Calendar.DAY_OF_WEEK, Calendar.SHORT, Locale.ENGLISH).toLowerCase());
        }
    }
}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Calendar;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Locale;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.Scanner;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main {
      | ^~~~~~
Language: C++

#include <iosteam>
using namespace std;
int main(){
	int a;
	cin>>a;
	if (a%7==0) cout<<"thu"<<endl;
	if (a%7==1) cout<<"fri"<<endl;
	if (a%7==2) cout<<"sat"<<endl;
	if (a%7==3) cout<<"sun"<<endl;
	if (a%7==4) cout<<"mon"<<endl;
	if (a%7==5) cout<<"tue"<<endl;
	if (a%7==6) cout<<"wed"<<endl;
	return 0;
}

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

#include<iostream>
using namespace std;

int main()
{
char week[8][20]={{"thu"},{"fri"},{"sat"},{"sun"},{"mon"},{"tue"},{"wed"}}

int day;

cin >> day;

cout << week[day%7] << enld;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: expected ',' or ';' before 'int'
    8 | int day;
      | ^~~
a.cc:10:8: error: 'day' was not declared in this scope
   10 | cin >> day;
      |        ^~~
a.cc:12:24: error: 'enld' was not declared in this scope
   12 | cout << week[day%7] << enld;
      |                        ^~~~
Language: C++

X = int(input())
if(X % 7 == 0):
    print("thu")
elif(X % 7 == 1):
    print("fri")
elif(X % 7 == 2):
    print("sat")
elif(X % 7 == 3):
    print("sun")
elif(X % 7 == 4):
    print("mon")
elif(X % 7 == 5):
    print("tue")
elif(X % 7 == 6):
    print("wed")


Compiler output:
a.cc:1:1: error: 'X' does not name a type
    1 | X = int(input())
      | ^
Language: C++

int main() {
	int X;
	cin>>X;
		X=9-X;
		if(X<0){
			X=X*-1;
		}
		for(int i=0;X<8;i++){
			X=X-7;
		}
		switch(X){
		case 1:cout<<"sun"<<endl;
			break;
		case 2:cout<<"mon"<<endl;
			break;
		case 3:cout<<"tue"<<endl;
			break;
		case 4:cout<<"wed"<<endl;
			break;
		case 5:cout<<"thu"<<endl;
			break;
		case 6:cout<<"fri"<<endl;
			break;
		case 7:cout<<"sat"<<endl;
			break;
		}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin>>X;
      |         ^~~
a.cc:12:24: error: 'cout' was not declared in this scope
   12 |                 case 1:cout<<"sun"<<endl;
      |                        ^~~~
a.cc:12:37: error: 'endl' was not declared in this scope
   12 |                 case 1:cout<<"sun"<<endl;
      |                                     ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
        int x;
        int n;

    cin >>x;

    n = x % 7

    if(n==0){

        cout << "sun" << endl;
    }
    else{

    }
    
    system("pause");
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected ';' before 'if'
   11 |     n = x % 7
      |              ^
      |              ;
   12 | 
   13 |     if(n==0){
      |     ~~        
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else{
      |     ^~~~
Language: C++

#include <iostream>
using namespace std ;

int main()
{
	int x;
	cin >>x;
	if ( x = 1,8,15,22,29)cout <<"fti";
	if ( x = 2,9,16,23,30)cout << "sat";
	if ( x = 3,10,17,24)cout <<"sun";
	if ( x = 4,11,18,25)cout <<"mon";
	if (x=5,12,19,26)cout <<"tue";
	if (x = 6,13,20,27)cout<<"wed";
	if ( x = 7,14,21,28)cout << "thu";
	cout <<endl
	return 0 ;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:15:20: error: expected ';' before 'return'
   15 |         cout <<endl
      |                    ^
      |                    ;
   16 |         return 0 ;
      |         ~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int day;
  cin >> day;
  day += 3;
  day = day % 7;
  switch(day){
    case 0: cout << "mon" << endl;  break;#include<iostream>
using namespace std;

int main(){
  int day;
  cin >> day;
  day += 3;
  day = day % 7;
  switch(day){
    case 0: cout << "mon" << endl;  break;
    case 1: cout << "tue" << endl;  break;
    case 2: cout << "wed" << endl;  break;
    case 3: cout << "thu" << endl;  break;
    case 4: cout << "fri" << endl;  break;
    case 5: cout << "sat" << endl;  break;
    case 6: cout << "sun" << endl;  break;
  }
}

    case 1: cout << "tue" << endl;  break;
    case 2: cout << "wed" << endl;  break;
    case 3: cout << "thu" << endl;  break;
    case 4: cout << "fri" << endl;  break;
    case 5: cout << "sat" << endl;  break;
    case 6: cout << "sun" << endl;  break;
  }
}



Compiler output:
a.cc:10:43: error: stray '#' in program
   10 |     case 0: cout << "mon" << endl;  break;#include<iostream>
      |                                           ^
a.cc: In function 'int main()':
a.cc:10:44: error: 'include' was not declared in this scope
   10 |     case 0: cout << "mon" << endl;  break;#include<iostream>
      |                                            ^~~~~~~
a.cc:10:60: error: expected primary-expression before '>' token
   10 |     case 0: cout << "mon" << endl;  break;#include<iostream>
      |                                                            ^
a.cc:11:1: error: expected primary-expression before 'using'
   11 | using namespace std;
      | ^~~~~
a.cc:13:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   13 | int main(){
      |         ^~
a.cc:13:9: note: remove parentheses to default-initialize a variable
   13 | int main(){
      |         ^~
      |         --
a.cc:13:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:13:11: error: a function-definition is not allowed here before '{' token
   13 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int X;
  cin>>X;

  int sa=X-9;
  if(sa>=0){
    switch(sa%7){
      case 0:cout<<"sat";break;
      case 1:cout<<"sun";break;
      case 2:cout<<"mon";break;
      case 3:cout<<"tue";break;
      case 4:cout<<"wed";break;
      case 5:cout<<"thu";break;
      case 6:cout<<"fri";break;
    }
  }
  else{
    sa*=-1;
    switch(sa%7){
      cout 0:cout<<"sat";break;
      case 1:cout<<"fri";break;
      case 2:cout<<"thu";break;
      case 3:cout<<"wed";break;
      case 4:cout<<"tue";break;
      case 5:cout<<"mon";break;
      case 6:cout<<"sun";break;
    }
  }
  cout<<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:23:11: error: expected ';' before numeric constant
   23 |       cout 0:cout<<"sat";break;
      |           ^~
      |           ;
Language: C++

#include<iostream>
using namespace std;

int main(){
  int X,Y;
  cin>>X;
  X=X+3
  X=X%7;
  switch(X){
    case 0: cout << "mon" << endl;  break;
        case 1: cout << "tue" << endl;  break;
        case 2: cout << "wed" << endl;  break;
        case 3: cout << "thu" << endl;  break;
        case 4: cout << "fri" << endl;  break;
        case 5: cout << "sat" << endl;  break;
        case 6: cout << "sun" << endl;  break;
    }
  }



Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'X'
    7 |   X=X+3
      |        ^
      |        ;
    8 |   X=X%7;
      |   ~
Language: C++

#include <iostream>
using namespace std;char w[]="thufrisatsunmontuewed";int main(){cin >> i;cout << w[(i%7)*3] << w[(i%7)*3+1] << w[(i%7)*3+2] << endl;}



Compiler output:
a.cc: In function 'int main()':
a.cc:2:72: error: 'i' was not declared in this scope
    2 | using namespace std;char w[]="thufrisatsunmontuewed";int main(){cin >> i;cout << w[(i%7)*3] << w[(i%7)*3+1] << w[(i%7)*3+2] << endl;}
      |                                                                        ^
Language: C

#include <iostream>
using namespace std;
int main(){
  int a,b,n,s,f,i=0;
  cin >> a >> b >> n;
  do{
    cin >> s >> f;
    i++;
  }while((a != s && b != f) && (s <= a && s >= b) && (f <= a && s >= b));
  if(n == i-1){
    cout << '0' << endl;
  } else {
    cout << '1' << endl;
  }
}



Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
using namespace std;
int main(){
  int a,b,n,s,f,i=0;
  cin >> a >> b >> n;
  do{
    cin >> s >> f;
    i++;
  }while((a != s && b != f) && (s <= a || s >= b) && (f <= a || f >= b) && i<n);
  if(n == i-1){
    cout << '0' << endl;
  } else {
    cout << '1' << endl;
  }
}



Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
using namespace std;
int main(){
  int a,b,n,s,f,i=0;
  cin >> a >> b >> n;
  do{
    cin >> s >> f;
    i++;
  }while((a != s && b != f) && (s <= a || s >= b) && (f <= a || f >= b) && i<n);
  if(n == i){
    cout << '0' << endl;
  } else {
    cout << '1' << endl;
  }
}



Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

c#include<iostream>
using namespace std;

int main(){
  int a,b;
  cin>>a,b;
  int N;
  cin>>N;
  int s,f;
  for(int i=0;i<N;i++){
    cin>>s>>f;
    if(a<f && b>s){
      cout<<1<<endl;
      return 0;
    }
    else if(a==s&&b==f){
      cout<<1<<endl;
      return 0;
    }
  }
  cout<<0<<endl;
  return 0;
}



Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | c#include<iostream>
      |  ^
a.cc:1:1: error: 'c' does not name a type
    1 | c#include<iostream>
      | ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a,b;
      |   ^~~
a.cc:13:7: error: 'cout' was not declared in this scope
   13 |       cout<<1<<endl;
      |       ^~~~
a.cc:13:16: error: 'endl' was not declared in this scope
   13 |       cout<<1<<endl;
      |                ^~~~
a.cc:17:7: error: 'cout' was not declared in this scope
   17 |       cout<<1<<endl;
      |       ^~~~
a.cc:17:16: error: 'endl' was not declared in this scope
   17 |       cout<<1<<endl;
      |                ^~~~
a.cc:21:3: error: 'cout' was not declared in this scope
   21 |   cout<<0<<endl;
      |   ^~~~
a.cc:21:12: error: 'endl' was not declared in this scope
   21 |   cout<<0<<endl;
      |            ^~~~