Borderou de evaluare (job #1701110)

Utilizator ionanghelinaIonut Anghelina ionanghelina Data 12 mai 2016 10:29:39
Problema Flori5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:10:23: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%u%u",&n,&k); ^ user.cpp:10:23: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:13:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=n;i++) ^ user.cpp:15:22: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%u",&x); ^ user.cpp:19:19: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%u",&m1); ^ user.cpp:20:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=m1;i++) ^ user.cpp:22:27: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%u%u",&x,&y); ^ user.cpp:22:27: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:27:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (flori*(k+1)>suma) flori--; ^ user.cpp:28:28: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] printf("%u\n",flori); ^ user.cpp:8:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("flori5.in","r",stdin); ^ user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("flori5.out","w",stdout); ^ user.cpp:10:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%u%u",&n,&k); ^ user.cpp:15:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%u",&x); ^ user.cpp:19:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%u",&m1); ^ user.cpp:22:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%u%u",&x,&y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbOK10
20ms272kbOK10
30ms272kbOK10
40ms268kbOK10
50ms272kbOK10
60ms280kbOK10
7Depăşit264kbTime limit exceeded.0
8Depăşit1804kbTime limit exceeded.0
9Depăşit1800kbTime limit exceeded.0
10Depăşit1828kbTime limit exceeded.0
Punctaj total60

Ceva nu functioneaza?