Borderou de evaluare (job #1680103)

Utilizator Daria09Florea Daria Daria09 Data 8 aprilie 2016 15:17:33
Problema Puteri35 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘void solve()’: user.cpp:16:19: warning: format ‘%i’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%i", &n); long long x,y,i,j; i=1; j=1; x=baza(i,3); y=baza(j,5); ^ user.cpp:17:48: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] while(i<=n&&j<=n)if(x<=y){ printf("%i\n", x);x=baza(++i,3);} else { printf("%i\n", y);y=baza(++j,5);} ^ user.cpp:17:89: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] while(i<=n&&j<=n)if(x<=y){ printf("%i\n", x);x=baza(++i,3);} else { printf("%i\n", y);y=baza(++j,5);} ^ user.cpp:18:34: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] while(i<=n){ printf("%i\n", x); x=baza(++i,3);} ^ user.cpp:19:34: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] while(j<=n){ printf("%i\n", y); y=baza(++j,5);} ^ user.cpp:14:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("puteri35.in", "r", stdin); ^ user.cpp:15:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("puteri35.out", "w", stdout); ^ user.cpp:16:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i", &n); long long x,y,i,j; i=1; j=1; x=baza(i,3); y=baza(j,5); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms428kbOK10
20ms424kbOK10
30ms424kbOK10
40ms424kbOK10
50ms424kbOK10
60ms428kbOK10
712ms428kbOK10
8928ms420kbIncorect0
91276ms424kbIncorect0
101340ms428kbIncorect0
Punctaj total70

Ceva nu functioneaza?