Borderou de evaluare (job #1992872)

Utilizator ionanghelinaIonut Anghelina ionanghelina Data 21 iunie 2017 17:25:54
Problema Provocare Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘bool Check(long long int)’: user.cpp:58:10: warning: variable ‘ok’ set but not used [-Wunused-but-set-variable] bool ok=0; ^ user.cpp: In function ‘int main()’: user.cpp:78:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d",&t); ^ user.cpp:82:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d%d",&n,&a,&b); ^ user.cpp:82:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:82:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:76:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("provocare.in","r",stdin); ^ user.cpp:77:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("provocare.out","w",stdout); ^ user.cpp:78:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t); ^ user.cpp:82:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&n,&a,&b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms452kbOK5
20ms456kbOK5
30ms464kbOK5
40ms464kbOK5
50ms472kbOK5
60ms472kbOK5
70ms480kbOK5
80ms488kbOK5
90ms488kbOK5
100ms480kbOK5
110ms480kbOK5
120ms480kbOK5
130ms484kbOK5
140ms484kbOK5
150ms488kbOK5
160ms488kbOK5
170ms480kbOK5
180ms484kbOK5
190ms484kbOK5
200ms484kbOK5
Punctaj total100

Ceva nu functioneaza?