Borderou de evaluare (job #2877765)
Utilizator | Data | 25 martie 2022 12:21:09 | |
---|---|---|---|
Problema | Sablon | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve()':
main.cpp:19:5: error: 'memset' was not declared in this scope
19 | memset(dp, 0, sizeof dp);
| ^~~~~~
main.cpp:5:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
4 | #include <fstream>
+++ |+#include <cstring>
5 |
main.cpp:26:30: error: 'strlen' was not declared in this scope
26 | for (int i = 1; i <= int(strlen(pat + 1)); i++) {
| ^~~~~~
main.cpp:26:30: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:41:20: error: 'strlen' was not declared in this scope
41 | cout << dp[int(strlen(pat + 1))][int(strlen(curr + 1))][1] << '\n';
| ^~~~~~
main.cpp:41:20: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp: In function 'int main()':
main.cpp:47:10: warning: unused variable 'curr' [-Wunused-variable]
47 | char curr[NMAX];
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !