Problem simcity
User a
Submission Time 2023-06-17 14:51:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

simcity.cpp:7:1: error: ‘__int32’ does not name a type; did you mean ‘__rintf32’?
7 | __int32 leader(int x)
| ^~~~~~~
| __rintf32
simcity.cpp: In function ‘int main()’:
simcity.cpp:51:29: error: ‘leader’ was not declared in this scope; did you mean ‘clearerr’?
51 | if (haveairport[leader(end)])//if the set already has an airport, pass
| ^~~~~~
| clearerr
simcity.cpp:57:25: error: ‘leader’ was not declared in this scope; did you mean ‘clearerr’?
57 | haveairport[leader(end)] = true;
| ^~~~~~
| clearerr
simcity.cpp:64:18: error: ‘leader’ was not declared in this scope; did you mean ‘clearerr’?
64 | if ((leader(start) == leader(end)) || ((haveairport[leader(start)]) && (haveairport[leader(end)])))//sameset? skip
| ^~~~~~
|