Borderou de evaluare (job #1436130)

Utilizator FearDotComIspas Alexandru FearDotCom Data 15 mai 2015 10:44:44
Problema Produs4 Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:31:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(fin, "%d", &a[i]); ^ user.cpp:35:56: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(fout, "%d\n", a[n - 1] * a[n - 2] * a[n - 3]); ^ user.cpp:39:89: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] ((a[0] * a[1])>(a[n - 1] * a[n - 2])) ? fprintf(fout, "%d\n", a[0] * a[1] * a[n - 1]) : fprintf(fout, "%d\n", a[n - 1] * a[n - 2] * a[n - 3]); ^ user.cpp:39:145: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] ((a[0] * a[1])>(a[n - 1] * a[n - 2])) ? fprintf(fout, "%d\n", a[0] * a[1] * a[n - 1]) : fprintf(fout, "%d\n", a[n - 1] * a[n - 2] * a[n - 3]); ^ user.cpp:42:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(fout, "%d\n", a[n - 1] * a[n - 2] * a[n - 3]); ^ user.cpp:26:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &T); ^ user.cpp:29:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &n); ^ user.cpp:31:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &a[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit316kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?