Problem | swapbuildings |
---|---|
User | popperoni |
Submission Time | 2025-06-15 16:42:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swapbuildings.cpp: In function ‘int main()’:
swapbuildings.cpp:82:12: error: two or more data types in declaration of ‘n’
82 | long long n;cin>>n;
| ^
swapbuildings.cpp:82:19: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
82 | long long n;cin>>n;
| ^
| yn
swapbuildings.cpp:83:9: error: ‘ll’ was not declared in this scope; did you mean ‘ull’?
83 | vector<ll> cnts(n+1,0);
| ^~
| ull
swapbuildings.cpp:83:11: error: template argument 1 is invalid
83 | vector<ll> cnts(n+1,0);
| ^
swapbuildings.cpp:83:11: error: template argument 2 is invalid
swapbuildings.cpp:83:23: error: expression list treated as compound expression in initializer [-fpermissive]
83 | vector<ll> cnts(n+1,0);
| ^
swapbuildings.cpp:84:12: error: two or more data types