Borderou de evaluare (job #1725306)

Utilizator Theodor1000Cristea Theodor Stefan Theodor1000 Data 5 iulie 2016 13:36:57
Problema Apel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int translate(char*)’: user.cpp:84:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] return var[fun[0]]; ^ user.cpp: In function ‘int solve(char*)’: user.cpp:105:26: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] aux[dr - st] = NULL; ^ user.cpp:115:22: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] aux[dr - st - 1] = NULL; ^ user.cpp:118:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] strcpy (ss, f[fun[0]]); ^ user.cpp: In function ‘int main()’: user.cpp:138:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] var[str[0]] = var[str[0]] * 10 + (str[ind] - 48); ^ user.cpp:138:41: warning: array subscript has type ‘char’ [-Wchar-subscripts] var[str[0]] = var[str[0]] * 10 + (str[ind] - 48); ^ user.cpp:146:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] strcpy (f[str[0]], str + ind); ^ user.cpp:126:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("apel.in", "r", stdin); ^ user.cpp:127:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("apel.out", "w", stdout); ^ user.cpp:129:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (fors); ^ user.cpp:131:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (str); ^ user.cpp:149:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (str); ^ user.cpp: In function ‘int factor(std::vector<int>)’: user.cpp:70:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /tmp/ccU34kIF.o: In function `main': user.cpp:(.text.startup+0x55): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms248kbOK10
20ms252kbOK10
30ms264kbOK10
40ms256kbOK10
50ms260kbOK10
60ms252kbOK10
70ms264kbOK10
80ms264kbOK10
90ms252kbOK10
100ms248kbOK10
Punctaj total100

Ceva nu functioneaza?