Borderou de evaluare (job #1391886)

Utilizator depevladVlad Dumitru-Popescu depevlad Data 18 martie 2015 11:18:27
Problema Zimeria Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘bool Word_Sort(Word, Word)’: user.cpp:24:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(Rank[W1.s[i]] < Rank[W2.s[i]]) return 1; ^ user.cpp:24:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(Rank[W1.s[i]] < Rank[W2.s[i]]) return 1; ^ user.cpp:25:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(Rank[W1.s[i]] > Rank[W2.s[i]]) return 0; ^ user.cpp:25:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(Rank[W1.s[i]] > Rank[W2.s[i]]) return 0; ^ user.cpp: In function ‘int main()’: user.cpp:39:41: warning: array subscript has type ‘char’ [-Wchar-subscripts] for(i = 0; i < 12; i++) Rank[Sign[i]] = i+1; ^ user.cpp:31:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(inFile, "r", stdin); ^ user.cpp:32:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(outFile, "w", stdout); ^ user.cpp:36:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &Type, &n); ^ user.cpp:38:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(Sign); ^ user.cpp:42:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(W[i].s); ^ /tmp/ccQqV8St.o: In function `main': user.cpp:(.text.startup+0x72): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms344kbKilled by signal 6(SIGABRT).0
20ms340kbKilled by signal 6(SIGABRT).0
30ms344kbKilled by signal 6(SIGABRT).0
40ms344kbKilled by signal 6(SIGABRT).0
50ms344kbKilled by signal 6(SIGABRT).0
60ms348kbKilled by signal 6(SIGABRT).0
70ms348kbKilled by signal 6(SIGABRT).0
80ms348kbKilled by signal 6(SIGABRT).0
90ms344kbKilled by signal 6(SIGABRT).0
100ms348kbKilled by signal 6(SIGABRT).0
110ms344kbKilled by signal 6(SIGABRT).0
120ms348kbKilled by signal 6(SIGABRT).0
130ms348kbKilled by signal 6(SIGABRT).0
140ms348kbKilled by signal 6(SIGABRT).0
150ms348kbKilled by signal 6(SIGABRT).0
160ms348kbKilled by signal 6(SIGABRT).0
170ms344kbKilled by signal 6(SIGABRT).0
180ms340kbKilled by signal 6(SIGABRT).0
190ms348kbKilled by signal 6(SIGABRT).0
200ms344kbKilled by signal 6(SIGABRT).0
Punctaj total0

Ceva nu functioneaza?