Borderou de evaluare (job #1526482)

Utilizator adu18sptAndrei Mircea adu18spt Data 16 noiembrie 2015 19:35:34
Problema Custi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%d",&n); ^ user.cpp:13:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<n;i++) ^ user.cpp:16:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<n;j++) ^ user.cpp:18:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=] scanf("%d",&a[i][j]); ^ user.cpp:33:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] printf("%d\n",q); ^ user.cpp:35:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<n;i++) ^ user.cpp:37:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<n;j++) ^ user.cpp:66:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=2;i<=n;i++) ^ user.cpp:68:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] printf("%d\n",c[i]); ^ user.cpp:9:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("custi.in","r",stdin); ^ user.cpp:10:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("custi.out","w",stdout); ^ user.cpp:12:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:18:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit2744kbTime limit exceeded.0
20ms432kbOK10
30ms580kbOK10
40ms776kbOK10
5232ms5176kbOK10
6140ms4088kbOK10
7Depăşit5168kbTime limit exceeded.0
8Depăşit5184kbTime limit exceeded.0
9Depăşit5120kbTime limit exceeded.0
10Depăşit5180kbTime limit exceeded.0
Punctaj total50

Ceva nu functioneaza?