Borderou de evaluare (job #1526478)

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

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:11:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%d",&n); ^ user.cpp:12:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<n;i++) ^ user.cpp:15:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<n;j++) ^ user.cpp:17:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=] scanf("%d",&a[i][j]); ^ user.cpp:32: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:34:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<n;i++) ^ user.cpp:36:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<n;j++) ^ user.cpp:41:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int q=2;q<=b[i][j];q++) ^ user.cpp:46:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(b[x][j]>=q) ^ user.cpp:65:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=2;i<=n;i++) ^ user.cpp:67: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:8: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:9: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:11:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:17: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ăşit4700kbTime limit exceeded.0
20ms432kbOK10
30ms608kbOK10
40ms860kbOK10
5Depăşit9080kbTime limit exceeded.0
6152ms7124kbOK10
7Depăşit9080kbTime limit exceeded.0
8Depăşit9084kbTime limit exceeded.0
9Depăşit8980kbTime limit exceeded.0
10Depăşit9084kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?