Pagini recente » Borderou de evaluare (job #2497468) | Borderou de evaluare (job #251175) | Borderou de evaluare (job #2583778) | Borderou de evaluare (job #211721) | Borderou de evaluare (job #1404110)
Borderou de evaluare (job #1404110)
Raport evaluator
Compilare:
user.cpp: In function ‘int get_number(int&)’:
user.cpp:12:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(s[p]>='0' && s[p]<='9' && p<strlen(s))
^
user.cpp: In function ‘int main()’:
user.cpp:107:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ec.in","r",stdin);
^
user.cpp:108:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ec.out","w",stdout);
^
user.cpp:109:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n",&n,&k);
^
user.cpp:112:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x[++x[0]]);
^
user.cpp:113:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n");
^
user.cpp:121:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
/tmp/ccZOkCx0.o: In function `main':
user.cpp:(.text.startup+0x1e8): warning: the `gets' function is dangerous and should not be used.
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 284kb | OK | 10 |
| 2 | 0ms | 280kb | OK | 10 |
| 3 | 0ms | 288kb | OK | 10 |
| 4 | 0ms | 292kb | OK | 10 |
| 5 | 16ms | 448kb | OK | 10 |
| 6 | 0ms | 288kb | OK | 10 |
| 7 | 64ms | 916kb | OK | 10 |
| 8 | 96ms | 1264kb | OK | 10 |
| 9 | 4ms | 328kb | OK | 10 |
| 10 | 4ms | 332kb | OK | 10 |
| Punctaj total | 100 |