Borderou de evaluare (job #1236739)

Utilizator HotSteelBeteag Ion Andrei HotSteel Data 2 octombrie 2014 15:57:43
Problema Next Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:223:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%I64d",&d); ^ user.cpp:214:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.in","r",stdin); ^ user.cpp:215:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.out","w",stdout); ^ user.cpp:219:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(tmp); ^ user.cpp:223:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%I64d",&d); ^ /tmp/ccqftZvm.o: In function `main': user.cpp:(.text.startup+0x6b): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms284kbOK10
20ms288kbOK10
30ms284kbOK10
40ms320kbIncorect0
50ms276kbKilled by signal 11(SIGSEGV).0
60ms408kbKilled by signal 6(SIGABRT).0
70ms404kbKilled by signal 6(SIGABRT).0
80ms408kbKilled by signal 6(SIGABRT).0
90ms412kbKilled by signal 6(SIGABRT).0
100ms404kbKilled by signal 6(SIGABRT).0
Punctaj total30

Ceva nu functioneaza?