Problem | strikes |
---|---|
User | Reverberate |
Submission Time | 2023-12-16 19:45:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
strikes.cpp:3:13: error: expected ‘,’ or ‘;’ before ‘long’
3 | #define int long long
| ^~~~
strikes.cpp:6:1: note: in expansion of macro ‘int’
6 | int n,q,ans=1;
| ^~~
strikes.cpp:7:16: error: size of array ‘adj’ exceeds maximum object size ‘9223372036854775807’
7 | vector<int>adj[MAX_N];
| ^~~~~
strikes.cpp:8:12: error: size of array ‘alive’ exceeds maximum object size ‘9223372036854775807’
8 | bool alive[MAX_N];
| ^~~~~
strikes.cpp: In function ‘int main()’:
strikes.cpp:14:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
14 | cin>>n;
| ^
| yn
strikes.cpp:21:10: error: ‘q’ was not declared in this scope
21 | cin>>q;
| ^
strikes.cpp:28:30: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
28 | if(alive[it])ans++;