| Problem | shops |
|---|---|
| User | Vinayak01 |
| Submission Time | 2026-02-19 22:11:23 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
shops.cpp:4:12: error: expected initializer before ‘long’
4 | #define ll long long
| ^~~~
shops.cpp:9:1: note: in expansion of macro ‘ll’
9 | ll shops[maxn];// shops[i] = 0 means bunny shop else shops[i] = 1 means duck shop
| ^~
shops.cpp: In function ‘void dfs(long long int)’:
shops.cpp:14:16: error: ‘adj’ was not declared in this scope
14 | for(auto v:adj[u]){
| ^~~
shops.cpp:15:12: error: ‘shops’ was not declared in this scope
15 | if(shops[v] != -1){
| ^~~~~
shops.cpp: In function ‘int main()’:
shops.cpp:30:9: error: ‘adj’ was not declared in this scope
30 | adj[u].push_back(v);
| ^~~
shops.cpp:34:12: error: ‘shops’ was not declared in this scope
34 | memset(shops,-1,sizeof(shops));
| ^~~~~