Borderou de evaluare (job #1371342)

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

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:99:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < strlen(c); i++) ^ user.cpp:101:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (vals[c[i]] == -1) ^ user.cpp:102:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] vals[c[i]] = nr[nq++]; ^ user.cpp: In function ‘int solveFunction()’: user.cpp:111:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (pos < strlen(a)) ^ user.cpp:121:36: warning: array subscript has type ‘char’ [-Wchar-subscripts] nr[nq++] = var[a[pos++]]; ^ user.cpp:127: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:88:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:132: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
10ms428kbOK10
20ms428kbOK10
30ms432kbOK10
40ms432kbOK10
50ms432kbOK10
60ms432kbOK10
70ms436kbOK10
80ms432kbOK10
90ms428kbOK10
100ms428kbOK10
Punctaj total100

Ceva nu functioneaza?