Borderou de evaluare (job #1101128)

Utilizator robertstrecheStreche Robert robertstreche Data 7 februarie 2014 22:53:00
Problema Impartire Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:10:57: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fp=fopen("impartire.in","rt"); fscanf(fp,"%ld%ld",&M,&N); fclose(fp); ^ user.cpp:10:57: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:16:38: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] for (;nr;nr--) { fprintf(fp,"%d",M/N); M=(M%N)*10; } ^ user.cpp:18:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] do { fprintf(fp,"%d",M/N); M=(M%N)*10; } while(M!=rest); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms232kbOK10
20ms232kbOK10
30ms232kbOK10
40ms236kbOK10
58ms236kbOK10
624ms232kbOK10
70ms232kbOK10
84ms232kbOK10
90ms232kbOK10
104ms236kbOK10
Punctaj total100

Ceva nu functioneaza?