Pagini recente » Cod sursa (job #3287559) | Cod sursa (job #3039793) | Cod sursa (job #1317810) | Cod sursa (job #3177342) | Borderou de evaluare (job #1251504)
Borderou de evaluare (job #1251504)
Raport evaluator
Compilare:
user.cpp: In function ‘void add(Node*, char*)’:
user.cpp:30:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(node->v[c]==0){
^
user.cpp:31:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
node->v[c]=new Node;
^
user.cpp:35:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
add(node->v[c],s+1);
^
user.cpp: In function ‘int main()’:
user.cpp:40:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dictree.in","r",stdin);
^
user.cpp:41:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dictree.out","w",stdout);
^
user.cpp:42:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&N);
^
user.cpp:44:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
/tmp/ccQJTWYC.o: In function `main':
user.cpp:(.text.startup+0x7b): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 40ms | 6160kb | OK | 10 | 0 |
2 | 8ms | 2104kb | OK | 10 |
3 | 4ms | 3236kb | OK | 10 |
4 | 16ms | Depăşit | Memory limit exceeded. | 0 |
5 | 16ms | Depăşit | Memory limit exceeded. | 0 |
6 | 16ms | Depăşit | Memory limit exceeded. | 0 |
7 | 16ms | Depăşit | Memory limit exceeded. | 0 |
8 | 16ms | Depăşit | Memory limit exceeded. | 0 |
9 | 16ms | Depăşit | Memory limit exceeded. | 0 |
10 | 16ms | Depăşit | Memory limit exceeded. | 0 |
Punctaj total | 0 |