Language: C++

南柯一梦:
绝了

南柯一梦:


Dàn:
#include <stdio.h>
#include <cmath>
int js(int n){
	return n%2;
}
int main(){
	int n;
	scanf("%d",&n);
	int cnt = 0;
	for(int i=0;i<n;i++){
		int t;
		scanf("%d",&t);
		if(js(i+1)&&js(t)){
			cnt++;
		}
	}
	printf("%d",cnt);
}


Compiler output:
a.cc:1:9: error: found ':' in nested-name-specifier, expected '::'
    1 | 南柯一梦:
      |         ^
      |         ::
a.cc:1:1: error: '\U00005357\U000067ef\U00004e00\U000068a6' does not name a type
    1 | 南柯一梦:
      | ^~~~~~~~
In file included from /usr/include/math.h:275,
                 from /usr/include/c++/14/cmath:47,
                 from a.cc:9:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr