Borderou de evaluare (job #2964404)

Utilizator Ruxi_GontescuGontescu Maria Ruxandra Ruxi_Gontescu Data 12 ianuarie 2023 21:58:29
Problema ADN Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:40:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] 40 | fin>>s[i]+1; | ~~~~^~ main.cpp:42:17: error: 'strlen' was not declared in this scope 42 | lg[i] = strlen (s[i]+1); | ^~~~~~ main.cpp:4:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 3 | #include <queue> +++ |+#include <cstring> 4 | #define DIMN 19 main.cpp:54:9: error: 'memset' was not declared in this scope 54 | memset (p,0,sizeof p); | ^~~~~~ main.cpp:54:9: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:204:5: error: 'reverse' was not declared in this scope 204 | reverse (v.begin(),v.end()); | ^~~~~~~ main.cpp:209:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 209 | for (i=1;i<v.size();i++){ | ~^~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?