Borderou de evaluare (job #1468526)

Utilizator akaprosAna Kapros akapros Data 6 august 2015 11:58:19
Problema Criptare2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int cmp(char*, char*)’: user.cpp:18:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (strlen(b) != n) ^ user.cpp: In function ‘int In_hash(int, char*)’: user.cpp:41:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < V[x].size(); ++ i) ^ user.cpp: In function ‘void read()’: user.cpp:51:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("criptare2.out", "w", stdout); ^ user.cpp:52:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:53:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:54:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] p = strtok(s, " "); ^ user.cpp:79:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] void write() ^ user.cpp: In function ‘void write()’: user.cpp:85:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] p = strtok(s, " "); ^ user.cpp:86:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] while (p) ^ /tmp/ccSNOCIS.o: In function `write()': user.cpp:(.text+0x1ab): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms828kbOK10
20ms836kbOK10
30ms840kbOK10
448ms1516kbOK10
5100ms2160kbOK10
6100ms2160kbOK10
7100ms2160kbOK10
8104ms2160kbOK10
9100ms2156kbOK10
10100ms2164kbOK10
Punctaj total100

Ceva nu functioneaza?