Borderou de evaluare (job #2873440)

Utilizator kyokeenIrina-Alexandra Petrea kyokeen Data 19 martie 2022 10:31:37
Problema Tastatură defectă Status done
Runda Universitatea Tehnică din Cluj-Napoca - 2022 - Concurs Compilator cpp-32 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:13:19: error: 'fopen_s' was not declared in this scope; did you mean 'fopen64'? 13 | int errcode = fopen_s(&input, "tastatura2.in", "r"); | ^~~~~~~ | fopen64 main.cpp:37:9: error: 'sprintf_s' was not declared in this scope; did you mean 'sprintf'? 37 | sprintf_s(result, "%d", no); | ^~~~~~~~~ | sprintf main.cpp: In function 'int count_bad_keys(char*, char*)': main.cpp:49:17: error: 'strlen' was not declared in this scope 49 | int len_c = strlen(correct); | ^~~~~~ main.cpp:4:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 3 | #include <fstream> +++ |+#include <cstring> 4 | main.cpp:75:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 75 | if (bad_keys[get_index(correct[i])] || j < len_e && correct[i] == erroneous[j + 1]) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?