Problem | pushups |
---|---|
User | dzuizz |
Submission Time | 2023-06-02 19:05:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pushups.cpp: In function ‘int main()’:
pushups.cpp:7:27: error: ‘memset’ was not declared in this scope
7 | int pushups[MAX_N+2]; memset(pushups, 0, sizeof(pushups));
| ^~~~~~
pushups.cpp:2:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
1 | #include<iostream>
+++ |+#include <cstring>
2 | using namespace std;