Borderou de evaluare (job #3179062)

Utilizator cosmin395dimofte cosmin cosmin395 Data 2 decembrie 2023 22:15:33
Problema Al k-lea termen Fibonacci Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void pmat(int)': main.cpp:16:25: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 16 | for (i = 0; i < 2; i++) | ^~~ main.cpp:20:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 20 | memcpy(v, c, sizeof(c)); | ^~~~~~ main.cpp:20:33: error: 'memcpy' was not declared in this scope main.cpp:4:1: note: 'memcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 3 | #include <vector> +++ |+#include <cstring> 4 | using namespace std; main.cpp:28:17: error: 'memcpy' was not declared in this scope 28 | memcpy(a, c, sizeof(c)); | ^~~~~~ main.cpp:28:17: note: 'memcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'? Non zero exit status: 1

Ceva nu functioneaza?