Borderou de evaluare (job #1252979)

Utilizator costty94Duica Costinel costty94 Data 31 octombrie 2014 17:41:58
Problema Coco Chanel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:53:22: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘long unsigned int*’ [-Wformat=] scanf("%lld", &g[i]); ^ user.cpp:65:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(p <= max && j <= M) ^ user.cpp:67:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(p <= g[j] && v[j] == 0) ^ user.cpp:42:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cocochanel.in", "r", stdin); ^ user.cpp:43:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cocochanel.out", "w", stdout); ^ user.cpp:45:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &M); ^ user.cpp:49:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &c[i]); ^ user.cpp:53:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &g[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbOK10
20ms276kbOK10
34ms288kbOK10
40ms288kbOK10
564ms1020kbKilled by signal 11(SIGSEGV).0
664ms1028kbKilled by signal 11(SIGSEGV).0
764ms1028kbKilled by signal 11(SIGSEGV).0
860ms1024kbKilled by signal 11(SIGSEGV).0
960ms1024kbKilled by signal 11(SIGSEGV).0
1052ms1024kbKilled by signal 11(SIGSEGV).0
Punctaj total40

Ceva nu functioneaza?