Borderou de evaluare (job #1371328)

Utilizator TimitocArdelean Andrei Timotei Timitoc Data 3 martie 2015 20:40:15
Problema Apel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void citire()’: user.cpp:31:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] var[s[0]] = getNum(s, ind); ^ user.cpp:38:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] strcpy(functii[s[0]], s+1); ^ user.cpp: In function ‘int factor()’: user.cpp:75:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] int toR = vals[sir[globalind]]; ^ user.cpp: In function ‘int calculate(char*, int*)’: user.cpp:98:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < strlen(c); i++) ^ user.cpp:100:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (vals[c[i]] == -1) ^ user.cpp:101:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] vals[c[i]] = nr[nq++]; ^ user.cpp: In function ‘int solveFunction()’: user.cpp:110:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (pos < strlen(a)) ^ user.cpp:120:36: warning: array subscript has type ‘char’ [-Wchar-subscripts] nr[nq++] = var[a[pos++]]; ^ user.cpp:126:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] return calculate(functii[x], nr); ^ user.cpp: In function ‘void citire()’: user.cpp:26:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a); ^ user.cpp:27:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:32:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:39:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp: In function ‘int factor()’: user.cpp:87:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:131:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms8556kbKilled by signal 11(SIGSEGV).0
28ms8556kbKilled by signal 11(SIGSEGV).0
38ms8560kbKilled by signal 11(SIGSEGV).0
48ms8560kbKilled by signal 11(SIGSEGV).0
58ms8560kbKilled by signal 11(SIGSEGV).0
68ms8556kbKilled by signal 11(SIGSEGV).0
78ms8560kbKilled by signal 11(SIGSEGV).0
88ms8560kbKilled by signal 11(SIGSEGV).0
98ms8556kbKilled by signal 11(SIGSEGV).0
108ms8556kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?