Borderou de evaluare (job #1286299)

Utilizator LiquironIvan Liviu-Marian Liquiron Data 7 decembrie 2014 12:23:29
Problema Noname 3 Status done
Runda Algoritmiada 2015 - Runda 1, Juniori Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f, "%d%d", &n, &s); ^ user.cpp:9:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:23:56: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g, "%d ", s / n - n / 2 + i - 1); ^ user.cpp:27:52: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g, "%d ", s / n - n / 2 + i); ^ user.cpp:42:56: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g, "%d ", s / n + i - n / 2); ^ user.cpp:46:60: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g, "%d ", s / n + i - n / 2 + 1); ^ user.cpp:8:21: warning: unused variable ‘ok’ [-Wunused-variable] long long n, s, ok = 0; ^ user.cpp:9:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d%d", &n, &s); ^
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms256kbIncorect00
20ms256kbIncorect00
30ms252kbIncorect00
40ms252kbIncorect00
50ms252kbIncorect00
60ms260kbIncorect00
70ms256kbOK10
80ms256kbIncorect0
90ms256kbIncorect00
100ms248kbOK1010
Punctaj total10

Ceva nu functioneaza?