| Problem | factorial |
|---|---|
| User | onion |
| Submission Time | 2026-04-05 16:56:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
factorial.cpp: In function ‘int main()’:
factorial.cpp:13:5: error: ‘vector’ was not declared in this scope
13 | vector<int> queries(Q);
| ^~~~~~
factorial.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
factorial.cpp:13:12: error: expected primary-expression before ‘int’
13 | vector<int> queries(Q);
| ^~~
factorial.cpp:17:16: error: ‘queries’ was not declared in this scope
17 | cin >> queries[i];
| ^~~~~~~
factorial.cpp:22:12: error: expected primary-expression before ‘long’
22 | vector<long long> fact(maxN + 1);
| ^~~~
factorial.cpp:23:5: error: ‘fact’ was not declared in this scope
23 | fact[0] = 1;
| ^~~~
factorial.cpp:31:22: erro