Borderou de evaluare (job #2023394)

Utilizator andreicoman299Coman Andrei andreicoman299 Data 18 septembrie 2017 21:20:07
Problema Bilute Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:18:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(fi,"%d%d", &C[i], &L[i]); ^ user.cpp:18:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:32:27: error: ‘i’ was not declared in this scope fprintf(fo,"%d %lld", i, S1[i] + S2[i]); ^ user.cpp:16:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d", &n); ^ user.cpp:18:40: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d%d", &C[i], &L[i]); ^

Ceva nu functioneaza?