| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1305166 | nathlol2 | 가장 긴 여행 (IOI23_longesttrip) | C++20 | 컴파일 에러 | 0 ms | 0 KiB |
#include "longesttrip.cpp"
#include <cassert>
#include <cstdio>
#include <string>
#include <vector>
static inline constexpr int maxNumberOfCalls = 32640;
static inline constexpr int maxTotalNumberOfCalls = 150000;
static inline constexpr int maxTotalNumberOfLandmarksInCalls = 1500000;
static int call_counter = 0;
static int total_call_counter = 0;
static int landmark_counter = 0;
static int C, N, D;
static std::vector<std::vector<int>> U;
static std::vector<bool> present;
static inline void protocol_violation(std::string message)
{
printf("Protocol Violation: %s\n", message.c_str());
exit(0);
}
bool are_connected(std::vector<int> A, std::vector<int> B)
{
++call_counter;
++total_call_counter;
if (call_counter > maxNumberOfCalls || total_call_counter > maxTotalNumberOfCalls)
{
protocol_violation("too many calls");
}
int nA = A.size(), nB = B.size();
landmark_counter += nA + nB;
if (landmark_counter > maxTotalNumberOfLandmarksInCalls)
{
protocol_violation("too many elements");
}
if (nA == 0 || nB == 0)
{
protocol_violation("invalid array");
}
for (int i = 0; i < nA; ++i)
{
if (A[i] < 0 || N <= A[i])
{
protocol_violation("invalid array");
}
if (present[A[i]])
{
protocol_violation("invalid array");
}
present[A[i]] = true;
}
for (int i = 0; i < nA; ++i)
{
present[A[i]] = false;
}
for (int i = 0; i < nB; ++i)
{
if (B[i] < 0 || N <= B[i])
{
protocol_violation("invalid array");
}
if (present[B[i]])
{
protocol_violation("invalid array");
}
present[B[i]] = true;
}
for (int i = 0; i < nB; ++i)
{
present[B[i]] = false;
}
for (int i = 0; i < nA; ++i)
{
for (int j = 0; j < nB; ++j)
{
if (A[i] == B[j])
{
protocol_violation("non-disjoint arrays");
}
}
}
for (int i = 0; i < nA; ++i)
{
for (int j = 0; j < nB; ++j)
{
if (U[std::max(A[i], B[j])][std::min(A[i], B[j])] == 1)
{
return true;
}
}
}
return false;
}
int main()
{
assert(1 == scanf("%d", &C));
int maximumCalls = 0;
for (int c = 0; c < C; ++c)
{
call_counter = 0;
assert(2 == scanf("%d %d", &N, &D));
present.assign(N, false);
U.resize(N);
for (int i = 1; i < N; ++i)
{
U[i].resize(i);
for (int j = 0; j < i; ++j)
{
assert(1 == scanf("%d", &U[i][j]));
}
}
for (int i = 2; i < N; ++i)
{
for (int j = 1; j < i; ++j)
{
for (int k = 0; k < j; ++k)
{
if (U[i][j] + U[i][k] + U[j][k] < D)
{
printf("Insufficient Density\n");
exit(0);
}
}
}
}
std::vector<int> t = longest_trip(N, D);
int l = t.size();
printf("%d\n", l);
for (int i = 0; i < l; ++i)
{
printf(i == 0 ? "%d" : " %d", t[i]);
}
printf("\n");
printf("%d\n", call_counter);
maximumCalls = std::max(maximumCalls, call_counter);
call_counter = 0;
}
printf("%d\n", maximumCalls);
return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
In file included from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1,
from longesttrip.cpp:1:
longesttrip.cpp:1:27: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
1 | #include "longesttrip.cpp"
| ^
longesttrip.cpp:3:19: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
3 | #include <cassert>
| ^
longesttrip.cpp:4:18: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
4 | #include <cstdio>
| ^
longesttrip.cpp:5:18: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
5 | #include <string>
| ^
longesttrip.cpp:6:18: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
6 | #include <vector>
| ^
In file included from longesttrip.cpp:3:
/usr/include/c++/13/cassert:43:28: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
43 | #include <bits/c++config.h>
| ^
/usr/include/c++/13/cassert:44:20: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
44 | #include <assert.h>
| ^
In file included from longesttrip.cpp:4:
/usr/include/c++/13/cstdio:41:28: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
41 | #include <bits/c++config.h>
| ^
/usr/include/c++/13/cstdio:42:19: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
42 | #include <stdio.h>
| ^
In file included from longesttrip.cpp:5:
/usr/include/c++/13/string:38:48: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
38 | #include <bits/requires_hosted.h> // containers
| ^
/usr/include/c++/13/string:40:28: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
40 | #include <bits/c++config.h>
| ^
/usr/include/c++/13/string:41:28: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
41 | #include <bits/stringfwd.h>
| ^
/usr/include/c++/13/string:42:30: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
42 | #include <bits/char_traits.h>
| ^
/usr/include/c++/13/string:43:28: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
43 | #include <bits/allocator.h>
| ^
/usr/include/c++/13/string:44:34: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
44 | #include <bits/cpp_type_traits.h>
| ^
/usr/include/c++/13/string:45:69: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
45 | #include <bits/localefwd.h> // For operators >>, <<, and getline.
| ^
/usr/include/c++/13/string:46:33: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
46 | #include <bits/ostream_insert.h>
| ^
/usr/include/c++/13/string:47:42: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
47 | #include <bits/stl_iterator_base_funcs.h>
| ^
/usr/include/c++/13/string:48:31: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
48 | #include <bits/stl_iterator.h>
| ^
/usr/include/c++/13/string:49:43: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
49 | #include <bits/stl_function.h> // For less
| ^
/usr/include/c++/13/string:50:32: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
50 | #include <ext/numeric_traits.h>
| ^
/usr/include/c++/13/string:51:31: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
51 | #include <bits/stl_algobase.h>
| ^
/usr/include/c++/13/string:52:26: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
52 | #include <bits/refwrap.h>
| ^
/usr/include/c++/13/string:53:31: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
53 | #include <bits/range_access.h>
| ^
/usr/include/c++/13/string:54:31: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
54 | #include <bits/basic_string.h>
| ^
/usr/include/c++/13/string:55:33: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
55 | #include <bits/basic_string.tcc>
| ^
In file included from longesttrip.cpp:6:
/usr/include/c++/13/vector:60:47: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
60 | #include <bits/requires_hosted.h> // container
| ^
/usr/include/c++/13/vector:62:31: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
62 | #include <bits/stl_algobase.h>
| ^
/usr/include/c++/13/vector:63:28: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
63 | #include <bits/allocator.h>
| ^
/usr/include/c++/13/vector:64:32: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
64 | #include <bits/stl_construct.h>
| ^
/usr/include/c++/13/vector:65:36: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
65 | #include <bits/stl_uninitialized.h>
| ^
/usr/include/c++/13/vector:66:29: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
66 | #include <bits/stl_vector.h>
| ^
/usr/include/c++/13/vector:67:30: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
67 | #include <bits/stl_bvector.h>
| ^
/usr/include/c++/13/vector:68:26: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
68 | #include <bits/refwrap.h>
| ^
/usr/include/c++/13/vector:69:31: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
69 | #include <bits/range_access.h>
| ^
/usr/include/c++/13/vector:72:28: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
72 | # include <bits/vector.tcc>
| ^
/usr/include/c++/13/vector:80:34: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
80 | #include <bits/memory_resource.h>
| ^
In file included from /usr/include/c++/13/cassert:43,
from longesttrip.cpp:3:
/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:679:29: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
679 | #include <bits/os_defines.h>
| ^
/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:682:30: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
682 | #include <bits/cpu_defines.h>
| ^
/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:882:30: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
882 | #include <pstl/pstl_config.h>
| ^
In file included from /usr/include/c++/13/cassert:44:
/usr/include/assert.h:35:22: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
35 | #include <features.h>
| ^
/usr/include/assert.h:37:42: error: missing binary operator before token "("
37 | #if defined __cplusplus && __GNUC_PREREQ (2,95)
| ^
/usr/include/assert.h:139:42: error: missing binary operator before token "("
139 | # if defined __cplusplus ? __GNUC_PREREQ (2, 6) : __GNUC_PREREQ (2, 4)
| ^
/usr/include/assert.h:155:28: error: missing binary operator before token "("
155 | || !__GNUC_PREREQ (13, 0)) \
| ^
In file included from /usr/include/c++/13/cstdio:42,
from longesttrip.cpp:4:
/usr/include/stdio.h:28:36: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
28 | #include <bits/libc-header-start.h>
| ^
/usr/include/stdio.h:34:20: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
34 | #include <stddef.h>
| ^
/usr/include/stdio.h:37:20: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
37 | #include <stdarg.h>
| ^
/usr/include/stdio.h:39:24: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
39 | #include <bits/types.h>
| ^
/usr/include/stdio.h:40:33: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
40 | #include <bits/types/__fpos_t.h>
| ^
/usr/include/stdio.h:41:35: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
41 | #include <bits/types/__fpos64_t.h>
| ^
/usr/include/stdio.h:42:31: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
42 | #include <bits/types/__FILE.h>
| ^
/usr/include/stdio.h:43:29: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
43 | #include <bits/types/FILE.h>
| ^
/usr/include/stdio.h:44:36: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
44 | #include <bits/types/struct_FILE.h>
| ^
/usr/include/stdio.h:129:28: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
129 | #include <bits/stdio_lim.h>
| ^
/usr/include/stdio.h:142:17: error: missing binary operator before token "("
142 | #if __GLIBC_USE (ISOC2X)
| ^
/usr/include/stdio.h:312:43: error: missing binary operator before token "("
312 | #if defined __USE_XOPEN2K8 || __GLIBC_USE (LIB_EXT2)
| ^
/usr/include/stdio.h:394:41: error: missing binary operator before token "("
394 | #if defined (__USE_MISC) || __GLIBC_USE (LIB_EXT2)
| ^
/usr/include/stdio.h:437:25: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
437 | #include <bits/floatn.h>
| ^
/usr/include/stdio.h:438:18: error: missing binary operator before token "("
438 | #if !__GLIBC_USE (DEPRECATED_SCANF) && !defined __LDBL_COMPAT \
| ^
/usr/include/stdio.h:657:17: error: missing binary operator before token "("
657 | #if __GLIBC_USE (DEPRECATED_GETS)
| ^
/usr/include/stdio.h:683:43: error: missing binary operator before token "("
683 | #if defined __USE_XOPEN2K8 || __GLIBC_USE (LIB_EXT2)
| ^
In file included from /usr/include/assert.h:35,
from /usr/include/c++/13/cassert:44,
from longesttrip.cpp:3:
/usr/include/features.h:394:29: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
394 | #include <features-time64.h>
| ^
/usr/include/features.h:480:25: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
480 | #include <stdc-predef.h>
| ^
/usr/include/features.h:502:25: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
502 | # include <sys/cdefs.h>
| ^
/usr/include/features.h:526:23: error: #include nested depth 200 exceeds maximum of 200 (use -fmax-include-depth=DEPTH to increase the maximum)
526 | #include <gnu/stubs.h>
| ^
longesttrip.cpp:16:13: error: 'vector' in namespace 'std' does not name a template type
16 | static std::vector<std::vector<int>> U;
| ^~~~~~
longesttrip.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
+++ |+#include <vector>
1 | #include "longesttrip.cpp"
longesttrip.cpp:17:13: error: 'vector' in namespace 'std' does not name a template type
17 | static std::vector<bool> present;
| ^~~~~~
longesttrip.cpp:17:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
17 | static std::vector<bool> present;
| ^~~
longesttrip.cpp:19:20: error: variable or field 'protocol_violation' declared void
19 | static inline void protocol_violation(std::string message)
| ^~~~~~~~~~~~~~~~~~
longesttrip.cpp:19:44: error: 'string' is not a member of 'std'
19 | static inline void protocol_violation(std::string message)
| ^~~~~~
longesttrip.cpp:1:1: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
+++ |+#include <string>
1 | #include "longesttrip.cpp"
longesttrip.cpp:25:25: error: 'vector' is not a member of 'std'
25 | bool are_connected(std::vector<int> A, std::vector<int> B)
| ^~~~~~
longesttrip.cpp:25:25: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
longesttrip.cpp:25:32: error: expected primary-expression before 'int'
25 | bool are_connected(std::vector<int> A, std::vector<int> B)
| ^~~
longesttrip.cpp:25:45: error: 'vector' is not a member of 'std'
25 | bool are_connected(std::vector<int> A, std::vector<int> B)
| ^~~~~~
longesttrip.cpp:25:45: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
longesttrip.cpp:25:52: error: expected primary-expression before 'int'
25 | bool are_connected(std::vector<int> A, std::vector<int> B)
| ^~~
longesttrip.cpp:25:58: error: expression list treated as compound expression in initializer [-fpermissive]
25 | bool are_connected(std::vector<int> A, std::vector<int> B)
| ^
longesttrip.cpp: In function 'int main()':
longesttrip.cpp:105:17: error: 'scanf' was not declared in this scope
105 | assert(1 == scanf("%d", &C));
| ^~~~~
longesttrip.cpp:105:5: error: 'assert' was not declared in this scope
105 | assert(1 == scanf("%d", &C));
| ^~~~~~
longesttrip.cpp:1:1: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
+++ |+#include <cassert>
1 | #include "longesttrip.cpp"
longesttrip.cpp:112:9: error: 'present' was not declared in this scope
112 | present.assign(N, false);
| ^~~~~~~
longesttrip.cpp:113:9: error: 'U' was not declared in this scope
113 | U.resize(N);
| ^
longesttrip.cpp:131:25: error: 'printf' was not declared in this scope
131 | printf("Insufficient Density\n");
| ^~~~~~
longesttrip.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | #include "longesttrip.cpp"
longesttrip.cpp:132:25: error: 'exit' was not declared in this scope
132 | exit(0);
| ^~~~
longesttrip.cpp:1:1: note: 'exit' is defined in header '<cstdlib>'; did you forget to '#include <cstdlib>'?
+++ |+#include <cstdlib>
1 | #include "longesttrip.cpp"
longesttrip.cpp:138:14: error: 'vector' is not a member of 'std'
138 | std::vector<int> t = longest_trip(N, D);
| ^~~~~~
longesttrip.cpp:138:14: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
longesttrip.cpp:138:21: error: expected primary-expression before 'int'
138 | std::vector<int> t = longest_trip(N, D);
| ^~~
longesttrip.cpp:139:17: error: 't' was not declared in this scope
139 | int l = t.size();
| ^
longesttrip.cpp:140:9: error: 'printf' was not declared in this scope
140 | printf("%d\n", l);
| ^~~~~~
longesttrip.cpp:140:9: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
longesttrip.cpp:148:29: error: 'max' is not a member of 'std'
148 | maximumCalls = std::max(maximumCalls, call_counter);
| ^~~
longesttrip.cpp:151:5: error: 'printf' was not declared in this scope
151 | printf("%d\n", maximumCalls);
| ^~~~~~
longesttrip.cpp:151:5: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
/usr/include/c++/13/cstdio: At global scope:
/usr/include/c++/13/cstdio:98:11: error: 'FILE' has not been declared in '::'
98 | using ::FILE;
| ^~~~
/usr/include/c++/13/cstdio:99:11: error: 'fpos_t' has not been declared in '::'
99 | using ::fpos_t;
| ^~~~~~
/usr/include/c++/13/cstdio:101:11: error: 'clearerr' has not been declared in '::'
101 | using ::clearerr;
| ^~~~~~~~
/usr/include/c++/13/cstdio:102:11: error: 'fclose' has not been declared in '::'
102 | using ::fclose;
| ^~~~~~
/usr/include/c++/13/cstdio:103:11: error: 'feof' has not been declared in '::'
103 | using ::feof;
| ^~~~
/usr/include/c++/13/cstdio:104:11: error: 'ferror' has not been declared in '::'
104 | using ::ferror;
| ^~~~~~
/usr/include/c++/13/cstdio:105:11: error: 'fflush' has not been declared in '::'
105 | using ::fflush;
| ^~~~~~
/usr/include/c++/13/cstdio:106:11: error: 'fgetc' has not been declared in '::'
106 | using ::fgetc;
| ^~~~~
/usr/include/c++/13/cstdio:107:11: error: 'fgetpos' has not been declared in '::'
107 | using ::fgetpos;
| ^~~~~~~
/usr/include/c++/13/cstdio:108:11: error: 'fgets' has not been declared in '::'
108 | using ::fgets;
| ^~~~~
/usr/include/c++/13/cstdio:109:11: error: 'fopen' has not been declared in '::'
109 | using ::fopen;
| ^~~~~
/usr/include/c++/13/cstdio:110:11: error: 'fprintf' has not been declared in '::'
110 | using ::fprintf;
| ^~~~~~~
/usr/include/c++/13/cstdio:111:11: error: 'fputc' has not been declared in '::'
111 | using ::fputc;
| ^~~~~
/usr/include/c++/13/cstdio:112:11: error: 'fputs' has not been declared in '::'
112 | using ::fputs;
| ^~~~~
/usr/include/c++/13/cstdio:113:11: error: 'fread' has not been declared in '::'
113 | using ::fread;
| ^~~~~
/usr/include/c++/13/cstdio:114:11: error: 'freopen' has not been declared in '::'
114 | using ::freopen;
| ^~~~~~~
/usr/include/c++/13/cstdio:115:11: error: 'fscanf' has not been declared in '::'
115 | using ::fscanf;
| ^~~~~~
/usr/include/c++/13/cstdio:116:11: error: 'fseek' has not been declared in '::'
116 | using ::fseek;
| ^~~~~
/usr/include/c++/13/cstdio:117:11: error: 'fsetpos' has not been declared in '::'
117 | using ::fsetpos;
| ^~~~~~~
/usr/include/c++/13/cstdio:118:11: error: 'ftell' has not been declared in '::'
118 | using ::ftell;
| ^~~~~
/usr/include/c++/13/cstdio:119:11: error: 'fwrite' has not been declared in '::'
119 | using ::fwrite;
| ^~~~~~
/usr/include/c++/13/cstdio:120:11: error: 'getc' has not been declared in '::'
120 | using ::getc;
| ^~~~
/usr/include/c++/13/cstdio:121:11: error: 'getchar' has not been declared in '::'
121 | using ::getchar;
| ^~~~~~~
/usr/include/c++/13/cstdio:126:11: error: 'perror' has not been declared in '::'
126 | using ::perror;
| ^~~~~~
/usr/include/c++/13/cstdio:127:11: error: 'printf' has not been declared in '::'
127 | using ::printf;
| ^~~~~~
/usr/include/c++/13/cstdio:128:11: error: 'putc' has not been declared in '::'
128 | using ::putc;
| ^~~~
/usr/include/c++/13/cstdio:129:11: error: 'putchar' has not been declared in '::'
129 | using ::putchar;
| ^~~~~~~
/usr/include/c++/13/cstdio:130:11: error: 'puts' has not been declared in '::'
130 | using ::puts;
| ^~~~
/usr/include/c++/13/cstdio:131:11: error: 'remove' has not been declared in '::'
131 | using ::remove;
| ^~~~~~
/usr/include/c++/13/cstdio:132:11: error: 'rename' has not been declared in '::'
132 | using ::rename;
| ^~~~~~
/usr/include/c++/13/cstdio:133:11: error: 'rewind' has not been declared in '::'
133 | using ::rewind;
| ^~~~~~
/usr/include/c++/13/cstdio:134:11: error: 'scanf' has not been declared in '::'
134 | using ::scanf;
| ^~~~~
/usr/include/c++/13/cstdio:135:11: error: 'setbuf' has not been declared in '::'
135 | using ::setbuf;
| ^~~~~~
/usr/include/c++/13/cstdio:136:11: error: 'setvbuf' has not been declared in '::'
136 | using ::setvbuf;
| ^~~~~~~
/usr/include/c++/13/cstdio:137:11: error: 'sprintf' has not been declared in '::'
137 | using ::sprintf;
| ^~~~~~~
/usr/include/c++/13/cstdio:138:11: error: 'sscanf' has not been declared in '::'
138 | using ::sscanf;
| ^~~~~~
/usr/include/c++/13/cstdio:139:11: error: 'tmpfile' has not been declared in '::'
139 | using ::tmpfile;
| ^~~~~~~
/usr/include/c++/13/cstdio:143:11: error: 'ungetc' has not been declared in '::'
143 | using ::ungetc;
| ^~~~~~
/usr/include/c++/13/cstdio:144:11: error: 'vfprintf' has not been declared in '::'
144 | using ::vfprintf;
| ^~~~~~~~
/usr/include/c++/13/cstdio:145:11: error: 'vprintf' has not been declared in '::'
145 | using ::vprintf;
| ^~~~~~~
/usr/include/c++/13/cstdio:146:11: error: 'vsprintf' has not been declared in '::'
146 | using ::vsprintf;
| ^~~~~~~~
/usr/include/c++/13/string:79:15: error: expected '{' before '_GLIBCXX_VISIBILITY'
79 | namespace std _GLIBCXX_VISIBILITY(default)
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/string:79:34: error: expected constructor, destructor, or type conversion before '(' token
79 | namespace std _GLIBCXX_VISIBILITY(default)
| ^
/usr/include/c++/13/vector:81:15: error: expected '{' before '_GLIBCXX_VISIBILITY'
81 | namespace std _GLIBCXX_VISIBILITY(default)
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/vector:81:34: error: expected constructor, destructor, or type conversion before '(' token
81 | namespace std _GLIBCXX_VISIBILITY(default)
| ^
/usr/include/c++/13/vector:100:15: error: expected '{' before '_GLIBCXX_VISIBILITY'
100 | namespace std _GLIBCXX_VISIBILITY(default)
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/vector:100:34: error: expected constructor, destructor, or type conversion before '(' token
100 | namespace std _GLIBCXX_VISIBILITY(default)
| ^
longesttrip.cpp:8:29: error: redefinition of 'constexpr const int maxNumberOfCalls'
8 | static inline constexpr int maxNumberOfCalls = 32640;
| ^~~~~~~~~~~~~~~~
longesttrip.cpp:8:29: note: 'constexpr const int maxNumberOfCalls' previously defined here
8 | static inline constexpr int maxNumberOfCalls = 32640;
| ^~~~~~~~~~~~~~~~
longesttrip.cpp:9:29: error: redefinition of 'constexpr const int maxTotalNumberOfCalls'
9 | static inline constexpr int maxTotalNumberOfCalls = 150000;
| ^~~~~~~~~~~~~~~~~~~~~
longesttrip.cpp:9:29: note: 'constexpr const int maxTotalNumberOfCalls' previously defined here
9 | static inline constexpr int maxTotalNumberOfCalls = 150000;
| ^~~~~~~~~~~~~~~~~~~~~
longesttrip.cpp:10:29: error: redefinition of 'constexpr const int maxTotalNumberOfLandmarksInCalls'
10 | static inline constexpr int maxTotalNumberOfLandmarksInCalls = 1500000;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
longesttrip.cpp:10:29: note: 'constexpr const int maxTotalNumberOfLandmarksInCalls' previously defined here
10 | static inline constexpr int maxTotalNumberOfLandmarksInCalls = 1500000;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
longesttrip.cpp:11:12: error: redefinition of 'int call_counter'
11 | static int call_counter = 0;
| ^~~~~~~~~~~~
longesttrip.cpp:11:12: note: 'int call_counter' previously defined here
11 | static int call_counter = 0;
| ^~~~~~~~~~~~
longesttrip.cpp:12:12: error: redefinition of 'int total_call_counter'
12 | static int total_call_counter = 0;
| ^~~~~~~~~~~~~~~~~~
longesttrip.cpp:12:12: note: 'int total_call_counter' previously defined here
12 | static int total_call_counter = 0;
| ^~~~~~~~~~~~~~~~~~
longesttrip.cpp:13:12: error: redefinition of 'int landmark_counter'
13 | static int landmark_counter = 0;
| ^~~~~~~~~~~~~~~~
longesttrip.cpp:13:12: note: 'int landmark_counter' previously defined here
13 | static int landmark_counter = 0;
| ^~~~~~~~~~~~~~~~
longesttrip.cpp:15:12: error: redefinition of 'int C'
15 | static int C, N, D;
| ^
longesttrip.cpp:15:12: note: 'int C' previously declared here
15 | static int C, N, D;
| ^
longesttrip.cpp:15:15: error: redefinition of 'int N'
15 | static int C, N, D;
| ^
longesttrip.cpp:15:15: note: 'int N' previously declared here
15 | static int C, N, D;
| ^
longesttrip.cpp:15:18: error: redefinition of 'int D'
15 | static int C, N, D;
| ^
longesttrip.cpp:15:18: note: 'int D' previously declared here
15 | static int C, N, D;
| ^
longesttrip.cpp:16:13: error: 'vector' in namespace 'std' does not name a template type
16 | static std::vector<std::vector<int>> U;
| ^~~~~~
longesttrip.cpp:16:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
16 | static std::vector<std::vector<int>> U;
| ^~~
longesttrip.cpp:17:13: error: 'vector' in namespace 'std' does not name a template type
17 | static std::vector<bool> present;
| ^~~~~~
longesttrip.cpp:17:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
17 | static std::vector<bool> present;
| ^~~
longesttrip.cpp:19:20: error: variable or field 'protocol_violation' declared void
19 | static inline void protocol_violation(std::string message)
| ^~~~~~~~~~~~~~~~~~
longesttrip.cpp:19:44: error: 'string' is not a member of 'std'
19 | static inline void protocol_violation(std::string message)
| ^~~~~~
longesttrip.cpp:19:44: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
longesttrip.cpp:25:6: error: redefinition of 'bool are_connected'
25 | bool are_connected(std::vector<int> A, std::vector<int> B)
| ^~~~~~~~~~~~~
longesttrip.cpp:25:6: note: 'bool are_connected' previously defined here
25 | bool are_connected(std::vector<int> A, std::vector<int> B)
| ^~~~~~~~~~~~~
longesttrip.cpp:25:25: error: 'vector' is not a member of 'std'
25 | bool are_connected(std::vector<int> A, std::vector<int> B)
| ^~~~~~
longesttrip.cpp:25:25: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
longesttrip.cpp:25:32: error: expected primary-expression before 'int'
25 | bool are_connected(std::vector<int> A, std::vector<int> B)
| ^~~
longesttrip.cpp:25:45: error: 'vector' is not a member of 'std'
25 | bool are_connected(std::vector<int> A, std::vector<int> B)
| ^~~~~~
longesttrip.cpp:25:45: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
longesttrip.cpp:25:52: error: expected primary-expression before 'int'
25 | bool are_connected(std::vector<int> A, std::vector<int> B)
| ^~~
longesttrip.cpp:103:5: error: redefinition of 'int main()'
103 | int main()
| ^~~~
longesttrip.cpp:103:5: note: 'int main()' previously defined here
103 | int main()
| ^~~~
longesttrip.cpp: In function 'int main()':
longesttrip.cpp:105:17: error: 'scanf' was not declared in this scope
105 | assert(1 == scanf("%d", &C));
| ^~~~~
longesttrip.cpp:105:5: error: 'assert' was not declared in this scope
105 | assert(1 == scanf("%d", &C));
| ^~~~~~
longesttrip.cpp:105:5: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
longesttrip.cpp:112:9: error: 'present' was not declared in this scope
112 | present.assign(N, false);
| ^~~~~~~
longesttrip.cpp:113:9: error: 'U' was not declared in this scope
113 | U.resize(N);
| ^
longesttrip.cpp:131:25: error: 'printf' was not declared in this scope
131 | printf("Insufficient Density\n");
| ^~~~~~
longesttrip.cpp:131:25: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
longesttrip.cpp:132:25: error: 'exit' was not declared in this scope
132 | exit(0);
| ^~~~
longesttrip.cpp:132:25: note: 'exit' is defined in header '<cstdlib>'; did you forget to '#include <cstdlib>'?
longesttrip.cpp:138:14: error: 'vector' is not a member of 'std'
138 | std::vector<int> t = longest_trip(N, D);
| ^~~~~~
longesttrip.cpp:138:14: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
longesttrip.cpp:138:21: error: expected primary-expression before 'int'
138 | std::vector<int> t = longest_trip(N, D);
| ^~~
longesttrip.cpp:139:17: error: 't' was not declared in this scope
139 | int l = t.size();
| ^
longesttrip.cpp:140:9: error: 'printf' was not declared in this scope
140 | printf("%d\n", l);
| ^~~~~~
longesttrip.cpp:140:9: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
longesttrip.cpp:148:29: error: 'max' is not a member of 'std'
148 | maximumCalls = std::max(maximumCalls, call_counter);
| ^~~
longesttrip.cpp:151:5: error: 'printf' was not declared in this scope
151 | printf("%d\n", maximumCalls);
| ^~~~~~
longesttrip.cpp:151:5: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
/usr/include/assert.h: At global scope:
/usr/include/assert.h:66:1: error: '__BEGIN_DECLS' does not name a type
66 | __BEGIN_DECLS
| ^~~~~~~~~~~~~
/usr/include/assert.h:76:6: error: expected initializer before '__THROW'
76 | __THROW __attribute__ ((__noreturn__));
| ^~~~~~~
/usr/include/assert.h:82:6: error: expected initializer before '__THROW'
82 | __THROW __attribute__ ((__noreturn__));
| ^~~~~~~
/usr/include/assert.h:85:1: error: '__END_DECLS' does not name a type
85 | __END_DECLS
| ^~~~~~~~~~~
/usr/include/stdio.h:149:8: error: 'FILE' does not name a type
149 | extern FILE *stdin; /* Standard input stream. */
| ^~~~
/usr/include/stdio.h:1:1: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | /* Define ISO C stdio on top of C++ iostreams.
/usr/include/stdio.h:150:8: error: 'FILE' does not name a type
150 | extern FILE *stdout; /* Standard output stream. */
| ^~~~
/usr/include/stdio.h:150:8: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
/usr/include/stdio.h:151:8: error: 'FILE' does not name a type
151 | extern FILE *stderr; /* Standard error output stream. */
| ^~~~
/usr/include/stdio.h:151:8: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
/usr/include/stdio.h:158:44: error: expected initializer before '__THROW'
158 | extern int remove (const char *__filename) __THROW;
| ^~~~~~~
/usr/include/stdio.h:160:58: error: expected initializer before '__THROW'
160 | extern int rename (const char *__old, const char *__new) __THROW;
| ^~~~~~~
/usr/include/stdio.h:184:20: error: 'FILE' was not declared in this scope
184 | extern int fclose (FILE *__stream) __nonnull ((1));
| ^~~~
/usr/include/stdio.h:184:20: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
/usr/include/stdio.h:184:26: error: '__stream' was not declared in this scope
184 | extern int fclose (FILE *__stream) __nonnull ((1));
| ^~~~~~~~
/usr/include/stdio.h:194:8: error: 'FILE' does not name a type
194 | extern FILE *tmpfile (void)
| ^~~~
/usr/include/stdio.h:194:8: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
/usr/include/stdio.h:211:38: error: expected initializer before '__THROW'
211 | extern char *tmpnam (char[L_tmpnam]) __THROW __wur;
| ^~~~~~~
/usr/include/stdio.h:236:20: error: 'FILE' was not declared in this scope
236 | extern int fflush (FILE *__stream);
| ^~~~
/usr/include/stdio.h:236:20: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
/usr/include/stdio.h:236:26: error: '__stream' was not declared in this scope
236 | extern int fflush (FILE *__stream);
| ^~~~~~~~
/usr/include/stdio.h:264:8: error: 'FILE' does not name a type
264 | extern FILE *fopen (const char *__restrict __filename,
| ^~~~
/usr/include/stdio.h:264:8: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
/usr/include/stdio.h:271:8: error: 'FILE' does not name a type
271 | extern FILE *freopen (const char *__restrict __filename,
| ^~~~
/usr/include/stdio.h:271:8: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
/usr/include/stdio.h:334:13: error: variable or field 'setbuf' declared void
334 | extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __THROW
| ^~~~~~
/usr/include/stdio.h:334:21: error: 'FILE' was not declared in this scope
334 | extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __THROW
| ^~~~
/usr/include/stdio.h:334:21: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
/usr/include/stdio.h:334:27: error: expected primary-expression before '__restrict'
334 | extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __THROW
| ^~~~~~~~~~
/usr/include/stdio.h:334:48: error: expected primary-expression before 'char'
334 | extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __THROW
| ^~~~
/usr/include/stdio.h:339:21: error: 'FILE' was not declared in this scope
339 | extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
| ^~~~
/usr/include/stdio.h:339:21: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
/usr/include/stdio.h:339:27: error: expected primary-expression before '__restrict'
339 | extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
| ^~~~~~~~~~
/usr/include/stdio.h:339:48: error: expected primary-expression before 'char'
339 | extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
| ^~~~
/usr/include/stdio.h:340:21: error: expected primary-expression before 'int'
340 | int __modes, size_t __n) __THROW __nonnull ((1));
| ^~~
/usr/include/stdio.h:340:34: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
340 | int __modes, size_t __n) __THROW __nonnull ((1));
| ^~~~~~
| std::size_t
/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:308:33: note: 'std::size_t' declared here
308 | typedef __SIZE_TYPE__ size_t;
| ^~~~~~
/usr/include/stdio.h:340:44: error: expression list treated as compound expression in initializer [-fpermissive]
340 | int __modes, size_t __n) __THROW __nonnull ((1));
| ^
/usr/include/stdio.h:357:21: error: 'FILE' was not declared in this scope
357 | extern int fprintf (FILE *__restrict __stream,
| ^~~~
/usr/include/stdio.h:357:21: note: 'FILE' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
/usr/include/stdio.h:357:27: error: expected primary-expression before '__restrict'
357 | extern int fprintf (FILE *__restrict __stream,
| ^~~~~~~~~~
/usr/include/stdio.h:358:21: error: expected primary-expression before 'const'
358 | const char *__restrict __format, ...) __nonnull ((1));
| ^~~~~
/usr/include/stdio.h:358:54: error: expected primary-expression before '...' token
358 | const char *__restrict __format, ...) __nonnull ((1));
| ^~~
/usr/include/stdio.h:358:57: error: expression list treated as compound expression in initializer [-fpermissive]
358 | const char *__restrict __format, ...) __nonnull ((1));
| ^
/usr/include/stdio.h:366:59: error: expected initializer before '__THROWNL'
366 | const char *__restrict __format, ...) __THROWNL;
| ^~~~~~~~~
/usr/include/std