Borderou de evaluare (job #639130)

Utilizator avatar TeodorV TeodorV TeodorV IP ascuns
Problemă Divizori (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 7 mar. 2022 17:19:29 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:1: error: 'fin' does not name a type 6 | fin=fopen("divizori.in", "r"); | ^~~ main.cpp:7:1: error: 'fout' does not name a type 7 | fout=fopen("divizori.out", "w"); | ^~~~ main.cpp: In function 'int main()': main.cpp:59:8: error: invalid operands of types 'FILE*' and 'int' to binary 'operator>>' 59 | fin>>n>>k; | ~~~^~~ | | | | | int | FILE* main.cpp:65:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 65 | fscanf(fin, "%c", &v[i]); | ~~~~~~^~~~~~~~~~~~~~~~~~