Borderou de evaluare (job #1700318)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 10 mai 2016 00:23:18
Problema Farfurii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:10:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%d%d",&N,&K); ^ user.cpp:10:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] user.cpp:11:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=N;i++) ^ user.cpp:14:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<N&&K>0) ^ user.cpp:25:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=N;i++) ^ user.cpp:27:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] printf("%d ",v[i]); ^ user.cpp:29:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] printf("%d ",aux[i]); ^ user.cpp:7:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("farfurii.in","r",stdin); ^ user.cpp:8:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("farfurii.out","w",stdout); ^ user.cpp:10:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&N,&K); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbOK!10
20ms280kbOK!10
30ms280kbOK!10
40ms296kbOK!10
50ms312kbOK!10
60ms372kbOK!10
74ms440kbOK!10
88ms664kbOK!10
916ms1140kbOK!10
1024ms1572kbWrong answer!0
Punctaj total90

Ceva nu functioneaza?