Language: C++

#include<cstdio>
#include<vector>
#include<algorithm> using namespace std ;
int main() { int a , b, k;
scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
}


Compiler output:
a.cc:3:21: warning: extra tokens at end of #include directive
    3 | #include<algorithm> using namespace std ;
      |                     ^~~~~
a.cc:5:7: error: extended character ” is not valid in an identifier
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |       ^
a.cc:5:13: error: extended character ” is not valid in an identifier
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |             ^
a.cc:5:69: error: extended character − is not valid in an identifier
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |                                                                     ^
a.cc:5:86: error: extended character ” is not valid in an identifier
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |                                                                                      ^
a.cc:5:89: error: stray '\' in program
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |                                                                                         ^
a.cc:5:90: error: extended character ” is not valid in an identifier
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |                                                                                          ^
a.cc:5:120: error: extended character − is not valid in an identifier
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |                                                                                                                        ^
a.cc:5:158: error: extended character ” is not valid in an identifier
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |                                                                                                                                                              ^
a.cc:5:161: error: stray '\' in program
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |                                                                                                                                                                 ^
a.cc:5:162: error: extended character ” is not valid in an identifier
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |                                                                                                                                                                  ^
a.cc: In function 'int main()':
a.cc:5:7: error: '\U0000201d' was not declared in this scope
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |       ^
a.cc:5:9: error: 'd' was not declared in this scope
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |         ^
a.cc:5:13: error: 'd\U0000201d' was not declared in this scope
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |             ^~
a.cc:5:68: error: expected ')' before '\U00002212'
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |                                                           ~        ^~
      |                                                                    )
a.cc:5:56: error: 'min' was not declared in this scope; did you mean 'std::min'?
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |                                                        ^~~
      |                                                        std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:5:119: error: expected ')' before '\U00002212'
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |                                                                                                                     ~ ^~
      |                                                                                                                       )
a.cc:5:114: error: 'max' was not declared in this scope; did you mean 'std::max'?
    5 | scanf(”%d%d%d” , &a , &b, &k ); for ( int i = a ; i <= min(b, a + k − 1); i++)printf(”%d\n” , i ); for ( int i = max(b − k + 1 , a + k ); i <= b; i++)printf(”%d\n” , i );
      |                                                                                                                  ^~~
      |                                                                                                                  std::max
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~