Pagini recente » Borderou de evaluare (job #1970461) | Borderou de evaluare (job #1299764) | Borderou de evaluare (job #2974975) | Borderou de evaluare (job #1753705) | Borderou de evaluare (job #1725306)
Borderou de evaluare (job #1725306)
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 |
1 | 0ms | 248kb | OK | 10 |
2 | 0ms | 252kb | OK | 10 |
3 | 0ms | 264kb | OK | 10 |
4 | 0ms | 256kb | OK | 10 |
5 | 0ms | 260kb | OK | 10 |
6 | 0ms | 252kb | OK | 10 |
7 | 0ms | 264kb | OK | 10 |
8 | 0ms | 264kb | OK | 10 |
9 | 0ms | 252kb | OK | 10 |
10 | 0ms | 248kb | OK | 10 |
Punctaj total | 100 |