Borderou de evaluare (job #1351702)

Utilizator UBBCLUJ_AnonymusUBBCLUJ Kurko Maier Szasz UBBCLUJ_Anonymus Data 21 februarie 2015 11:25:45
Problema Por Costel si Azerah Status done
Runda ONIS 2015, Runda 1 Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void calc(FILE*, FILE*)’: user.cpp:26:37: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%ld",pow(2,par)-1); ^ user.cpp:29:43: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%ld",pow(2,par+imp-1)-1); ^ user.cpp: In function ‘int main()’: user.cpp:40:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&t); ^ user.cpp:47:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&n); ^ user.cpp:50:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%ld",&numar); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1252ms268kbOK100
Punctaj total100

Ceva nu functioneaza?