foo.cc:1:1: error: stray '##' in program
1 | ##include<iostream>
| ^~
foo.cc:1:3: error: 'include' does not name a type
1 | ##include<iostream>
| ^~~~~~~
In file included from /nix/store/zzjv1aqla1y9vzn1m1w6qbclacqg9x08-gcc/include/c++/12.2.0/cstdlib:75,
from /nix/store/zzjv1aqla1y9vzn1m1w6qbclacqg9x08-gcc/include/c++/12.2.0/stdlib.h:36,
from foo.cc:3:
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:98:8: error: 'size_t' does not name a type
98 | extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:57:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
56 | #include <bits/floatn.h>
+++ |+#include <cstddef>
57 |
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:213:36: error: 'size_t' has not been declared
213 | extern int strfromd (char *__dest, size_t __size, const char *__format,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:217:36: error: 'size_t' has not been declared
217 | extern int strfromf (char *__dest, size_t __size, const char *__format,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:221:36: error: 'size_t' has not been declared
221 | extern int strfroml (char *__dest, size_t __size, const char *__format,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:233:38: error: 'size_t' has not been declared
233 | extern int strfromf32 (char *__dest, size_t __size, const char * __format,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:239:38: error: 'size_t' has not been declared
239 | extern int strfromf64 (char *__dest, size_t __size, const char * __format,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:245:39: error: 'size_t' has not been declared
245 | extern int strfromf128 (char *__dest, size_t __size, const char * __format,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:251:39: error: 'size_t' has not been declared
251 | extern int strfromf32x (char *__dest, size_t __size, const char * __format,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:257:39: error: 'size_t' has not been declared
257 | extern int strfromf64x (char *__dest, size_t __size, const char * __format,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:277:27: error: 'locale_t' has not been declared
277 | locale_t __loc) __THROW __nonnull ((1, 4));
| ^~~~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:281:49: error: 'locale_t' has not been declared
281 | int __base, locale_t __loc)
| ^~~~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:287:33: error: 'locale_t' has not been declared
287 | locale_t __loc)
| ^~~~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:293:55: error: 'locale_t' has not been declared
293 | int __base, locale_t __loc)
| ^~~~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:297:53: error: 'locale_t' has not been declared
297 | char **__restrict __endptr, locale_t __loc)
| ^~~~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:301:52: error: 'locale_t' has not been declared
301 | char **__restrict __endptr, locale_t __loc)
| ^~~~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:306:31: error: 'locale_t' has not been declared
306 | locale_t __loc)
| ^~~~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:319:29: error: 'locale_t' has not been declared
319 | locale_t __loc)
| ^~~~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:326:29: error: 'locale_t' has not been declared
326 | locale_t __loc)
| ^~~~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:333:31: error: 'locale_t' has not been declared
333 | locale_t __loc)
| ^~~~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:340:31: error: 'locale_t' has not been declared
340 | locale_t __loc)
| ^~~~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:347:31: error: 'locale_t' has not been declared
347 | locale_t __loc)
| ^~~~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:412:25: error: 'size_t' has not been declared
412 | size_t __statelen) __THROW __nonnull ((2));
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:442:25: error: 'size_t' has not been declared
442 | size_t __statelen,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:540:22: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
540 | extern void *malloc (size_t __size) __THROW __attribute_malloc__
| ^~~~~~
| std::size_t
In file included from /nix/store/zzjv1aqla1y9vzn1m1w6qbclacqg9x08-gcc/include/c++/12.2.0/cstdlib:41:
/nix/store/zzjv1aqla1y9vzn1m1w6qbclacqg9x08-gcc/include/c++/12.2.0/x86_64-unknown-linux-gnu/bits/c++config.h:298:33: note: 'std::size_t' declared here
298 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:543:22: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
543 | extern void *calloc (size_t __nmemb, size_t __size)
| ^~~~~~
| std::size_t
/nix/store/zzjv1aqla1y9vzn1m1w6qbclacqg9x08-gcc/include/c++/12.2.0/x86_64-unknown-linux-gnu/bits/c++config.h:298:33: note: 'std::size_t' declared here
298 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:543:38: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
543 | extern void *calloc (size_t __nmemb, size_t __size)
| ^~~~~~
| std::size_t
/nix/store/zzjv1aqla1y9vzn1m1w6qbclacqg9x08-gcc/include/c++/12.2.0/x86_64-unknown-linux-gnu/bits/c++config.h:298:33: note: 'std::size_t' declared here
298 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:543:51: error: expression list treated as compound expression in initializer [-fpermissive]
543 | extern void *calloc (size_t __nmemb, size_t __size)
| ^
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:551:36: error: 'size_t' has not been declared
551 | extern void *realloc (void *__ptr, size_t __size)
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:563:41: error: 'size_t' has not been declared
563 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:563:57: error: 'size_t' has not been declared
563 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:569:41: error: 'size_t' has not been declared
569 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:569:57: error: 'size_t' has not been declared
569 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
| ^~~~~~
In file included from /nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:574:
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/alloca.h:32:22: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
32 | extern void *alloca (size_t __size) __THROW;
| ^~~~~~
| std::size_t
/nix/store/zzjv1aqla1y9vzn1m1w6qbclacqg9x08-gcc/include/c++/12.2.0/x86_64-unknown-linux-gnu/bits/c++config.h:298:33: note: 'std::size_t' declared here
298 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:580:22: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
580 | extern void *valloc (size_t __size) __THROW __attribute_malloc__
| ^~~~~~
| std::size_t
/nix/store/zzjv1aqla1y9vzn1m1w6qbclacqg9x08-gcc/include/c++/12.2.0/x86_64-unknown-linux-gnu/bits/c++config.h:298:33: note: 'std::size_t' declared here
298 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:586:45: error: 'size_t' has not been declared
586 | extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:586:65: error: 'size_t' has not been declared
586 | extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:592:29: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
592 | extern void *aligned_alloc (size_t __alignment, size_t __size)
| ^~~~~~
| std::size_t
/nix/store/zzjv1aqla1y9vzn1m1w6qbclacqg9x08-gcc/include/c++/12.2.0/x86_64-unknown-linux-gnu/bits/c++config.h:298:33: note: 'std::size_t' declared here
298 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:592:49: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
592 | extern void *aligned_alloc (size_t __alignment, size_t __size)
| ^~~~~~
| std::size_t
/nix/store/zzjv1aqla1y9vzn1m1w6qbclacqg9x08-gcc/include/c++/12.2.0/x86_64-unknown-linux-gnu/bits/c++config.h:298:33: note: 'std::size_t' declared here
298 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:592:62: error: expression list treated as compound expression in initializer [-fpermissive]
592 | extern void *aligned_alloc (size_t __alignment, size_t __size)
| ^
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:829:23: error: 'size_t' has not been declared
829 | size_t __nmemb, size_t __size, __compar_fn_t __compar)
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:829:39: error: 'size_t' has not been declared
829 | size_t __nmemb, size_t __size, __compar_fn_t __compar)
| ^~~~~~
In file included from /nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:833:
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/bits/stdlib-bsearch.h:20:49: error: 'size_t' has not been declared
20 | bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/bits/stdlib-bsearch.h:20:65: error: 'size_t' has not been declared
20 | bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/bits/stdlib-bsearch.h: In function 'void* bsearch(const void*, const void*, int, int, __compar_fn_t)':
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/bits/stdlib-bsearch.h:23:3: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
23 | size_t __l, __u, __idx;
| ^~~~~~
| std::size_t
/nix/store/zzjv1aqla1y9vzn1m1w6qbclacqg9x08-gcc/include/c++/12.2.0/x86_64-unknown-linux-gnu/bits/c++config.h:298:33: note: 'std::size_t' declared here
298 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/bits/stdlib-bsearch.h:27:3: error: '__l' was not declared in this scope; did you mean '__p'?
27 | __l = 0;
| ^~~
| __p
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/bits/stdlib-bsearch.h:28:3: error: '__u' was not declared in this scope; did you mean '__p'?
28 | __u = __nmemb;
| ^~~
| __p
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/bits/stdlib-bsearch.h:31:7: error: '__idx' was not declared in this scope; did you mean '__id_t'?
31 | __idx = (__l + __u) / 2;
| ^~~~~
| __id_t
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h: At global scope:
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:838:34: error: 'size_t' has not been declared
838 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:838:50: error: 'size_t' has not been declared
838 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:841:36: error: 'size_t' has not been declared
841 | extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:841:52: error: 'size_t' has not been declared
841 | extern void qsort_r (void *__base, size_t __nmemb, size_t __size,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:912:20: error: 'size_t' has not been declared
912 | size_t __len) __THROW __nonnull ((3, 4, 5));
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:915:20: error: 'size_t' has not been declared
915 | size_t __len) __THROW __nonnull ((3, 4, 5));
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:919:45: error: 'size_t' has not been declared
919 | char *__restrict __buf, size_t __len)
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:923:45: error: 'size_t' has not been declared
923 | char *__restrict __buf, size_t __len)
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:930:36: error: 'size_t' has not been declared
930 | extern int mblen (const char *__s, size_t __n) __THROW;
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:934:48: error: 'size_t' has not been declared
934 | const char *__restrict __s, size_t __n) __THROW;
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:941:8: error: 'size_t' does not name a type
941 | extern size_t mbstowcs (wchar_t *__restrict __pwcs,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:941:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:945:8: error: 'size_t' does not name a type
945 | extern size_t wcstombs (char *__restrict __s,
| ^~~~~~
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:945:8: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/nix/store/1zsc48wwlplpkzms83m7zr94xnfalq2q-glibc-2.35-224-dev/include/stdlib.h:1002:46: error: 'size_t' has not been declared
1002 | extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
| ^~~~~~
/nix/store/zzjv1aqla1y9vzn1m1w6qbclacqg9x08-gcc/include/c++/12.2.0/cstdlib:154:11: error: 'mbstowcs' has not been declared in '::'
154 | using ::mbstowcs;
| ^~~~~~~~
/nix/store/zzjv1aqla1y9vzn1m1w6qbclacqg9x08-gcc/include/c++/12.2.0/cstdlib:171:11: error: 'wcstombs' has not been declared in '::'
171 | using ::wcstombs;
| ^~~~~~~~
/nix/store/zzjv1aqla1y9vzn1m1w6qbclacqg9x08-gcc/include/c++/12.2.0/stdlib.h:68:12: error: 'mbstowcs' has not been declared in 'std'
68 | using std::mbstowcs;
| ^~~~~~~~
/nix/store/zzjv1aqla1y9vzn1m1w6qbclacqg9x08-gcc/include/c++/12.2.0/stdlib.h:80:12: error: 'wcstombs' has not been declared in 'std'
80 | using std::wcstombs;
| ^~~~~~~~
foo.cc: In function 'int main()':
foo.cc:7:9: error: 'cin' was not declared in this scope
7 | cin >> n >> m;
| ^~~
foo.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
3 | #include<stdlib.h>
+++ |+#include <iostream>
4 | using namespace std;
foo.cc:8:17: error: 'memset' was not declared in this scope
8 | memset(w, 0, sizeof(w));
| ^~~~~~
foo.cc:4:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
3 | #include<stdlib.h>
+++ |+#include <cstring>
4 | using namespace std;
foo.cc:21:17: error: 'cout' was not declared in this scope
21 | cout << max << endl;
| ^~~~
foo.cc:21:17: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc:21:32: error: 'endl' was not declared in this scope
21 | cout << max << endl;
| ^~~~
foo.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
3 | #include<stdlib.h>
+++ |+#include <ostream>
4 | using namespace std;
[Hydro](https://hydro.ac)提供评测服务