# 2번째 컴파일 단계
Ioi.cpp:58:15: error: 'int write [10000]' redeclared as different kind of entity
58 | int write[MAXN];
| ^
In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /usr/include/c++/11/csignal:42,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:43,
from Ioi.cpp:2:
/usr/include/unistd.h:378:16: note: previous declaration 'ssize_t write(int, const void*, size_t)'
378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
| ^~~~~
Ioi.cpp: In function 'void DFS(int, int, char)':
Ioi.cpp:78:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
78 | update(in[u]%60,write[u]);
| ^
Ioi.cpp:78:28: error: invalid conversion from 'ssize_t (*)(int, const void*, size_t)' {aka 'long int (*)(int, const void*, long unsigned int)'} to 'int' [-fpermissive]
78 | update(in[u]%60,write[u]);
| ~~~~~~~^
| |
| ssize_t (*)(int, const void*, size_t) {aka long int (*)(int, const void*, long unsigned int)}
Ioi.cpp:59:23: note: initializing argument 2 of 'void update(int, int)'
59 | void update(int k,int bit){
| ~~~~^~~
Ioi.cpp:86:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
86 | write[v]=Move(v);
| ^
Ioi.cpp:86:25: error: assignment of read-only location '*(write + ((sizetype)v))'
86 | write[v]=Move(v);
| ~~~~~~~~^~~~~~~~
Ioi.cpp:91:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
91 | write[u]=Move(u);
| ^
Ioi.cpp:91:25: error: assignment of read-only location '*(write + ((sizetype)u))'
91 | write[u]=Move(u);
| ~~~~~~~~^~~~~~~~
Ioi.cpp:98:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
98 | write[v]=Move(v);
| ^
Ioi.cpp:98:25: error: assignment of read-only location '*(write + ((sizetype)v))'
98 | write[v]=Move(v);
| ~~~~~~~~^~~~~~~~
Ioi.cpp:103:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
103 | write[u]=Move(u);
| ^
Ioi.cpp:103:25: error: assignment of read-only location '*(write + ((sizetype)u))'
103 | write[u]=Move(u);
| ~~~~~~~~^~~~~~~~
Ioi.cpp: In function 'long long int Ioi(int, int, int*, int*, int, int, int)':
Ioi.cpp:111:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
111 | write[u]=V;
| ^
Ioi.cpp:111:13: error: assignment of read-only location '*(write + ((sizetype)u))'
111 | write[u]=V;
| ~~~~~~~~^~
Ioi.cpp:114:32: warning: pointer to a function used in arithmetic [-Wpointer-arith]
114 | update(in[u]%60,write[u]);
| ^
Ioi.cpp:114:32: error: invalid conversion from 'ssize_t (*)(int, const void*, size_t)' {aka 'long int (*)(int, const void*, long unsigned int)'} to 'int' [-fpermissive]
114 | update(in[u]%60,write[u]);
| ~~~~~~~^
| |
| ssize_t (*)(int, const void*, size_t) {aka long int (*)(int, const void*, long unsigned int)}
Ioi.cpp:59:23: note: initializing argument 2 of 'void update(int, int)'
59 | void update(int k,int bit){
| ~~~~^~~
Ioi.cpp:129:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
129 | write[v]=Move(v);
| ^
Ioi.cpp:129:25: error: assignment of read-only location '*(write + ((sizetype)v))'
129 | write[v]=Move(v);
| ~~~~~~~~^~~~~~~~
Ioi.cpp:131:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
131 | write[u]=Move(u);
| ^
Ioi.cpp:131:25: error: assignment of read-only location '*(write + ((sizetype)u))'
131 | write[u]=Move(u);
| ~~~~~~~~^~~~~~~~
Ioi.cpp:140:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
140 | write[v]=Move(v);
| ^
Ioi.cpp:140:25: error: assignment of read-only location '*(write + ((sizetype)v))'
140 | write[v]=Move(v);
| ~~~~~~~~^~~~~~~~
Ioi.cpp:142:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
142 | write[u]=Move(u);
| ^
Ioi.cpp:142:25: error: assignment of read-only location '*(write + ((sizetype)u))'
142 | write[u]=Move(u);
| ~~~~~~~~^~~~~~~~
Ioi.cpp:150:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
150 | write[u]=Move(u);
| ^
Ioi.cpp:150:21: error: assignment of read-only location '*(write + ((sizetype)u))'
150 | write[u]=Move(u);
| ~~~~~~~~^~~~~~~~