Pagini recente » Borderou de evaluare (job #141447) | Borderou de evaluare (job #1416629) | Borderou de evaluare (job #134959) | Borderou de evaluare (job #660092) | Borderou de evaluare (job #1553156)
Borderou de evaluare (job #1553156)
Raport evaluator
Compilare:
user.cpp: In function ‘void insert(int, int)’:
user.cpp:69:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(tm->po[in[j]]==NULL)
^
user.cpp:71:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tm->po[in[j]]=new nod();
^
user.cpp:72:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tm->po[in[j]]->tata=tm;
^
user.cpp:73:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tm->po[in[j]]->ch=in[j];
^
user.cpp:74:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tm->po[in[j]]->lv=tm->lv+1;
^
user.cpp:76:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tm=tm->po[in[j]];
^
user.cpp: In function ‘int main()’:
user.cpp:85:17: warning: unused variable ‘l’ [-Wunused-variable]
int n,m,i,j,l,x,y,z,ans=0;
^
user.cpp:85:23: warning: unused variable ‘z’ [-Wunused-variable]
int n,m,i,j,l,x,y,z,ans=0;
^
user.cpp:83:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("strigat.in","r",stdin);
^
user.cpp:84:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("strigat.out","w",stdout);
^
user.cpp:88:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n",&n,&m);
^
user.cpp:91:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(in+1);
^
user.cpp:93:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&y);
^
/tmp/cc16sMTf.o: In function `main':
user.cpp:(.text.startup+0xee): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 288kb | Lungimea strigatului gresita! | 4 |
2 | 0ms | 296kb | Lungimea strigatului gresita! | 4 |
3 | 0ms | 292kb | Lungimea strigatului gresita! | 4 |
4 | 0ms | 448kb | Lungimea strigatului gresita! | 4 |
5 | 0ms | 456kb | Lungimea strigatului gresita! | 4 |
6 | 12ms | 1204kb | Lungimea strigatului gresita! | 4 |
7 | 88ms | 3368kb | Lungimea strigatului gresita! | 4 |
8 | 176ms | 4912kb | Lungimea strigatului gresita! | 4 |
9 | 76ms | 2264kb | Lungimea strigatului gresita! | 4 |
10 | 0ms | 368kb | Lungimea strigatului gresita! | 4 |
Punctaj total | 40 |