Pagini recente » Borderou de evaluare (job #2430620) | Borderou de evaluare (job #2273450) | Borderou de evaluare (job #2180374) | Borderou de evaluare (job #2615826) | Borderou de evaluare (job #1874725)
Borderou de evaluare (job #1874725)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:42:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (numere[b2].size()<b1) printf("-1\n");
^
user.cpp:11:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("costuri.in","r",stdin);
^
user.cpp:12:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("costuri.out","w",stdout);
^
user.cpp:14:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp:15:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
user.cpp:27:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ",&q);
^
user.cpp:30:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
/tmp/ccWQnry2.o: In function `main':
user.cpp:(.text.startup+0x79): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 276kb | OK | 10 |
2 | 0ms | 280kb | OK | 10 |
3 | 0ms | 284kb | OK | 10 |
4 | 0ms | 796kb | Killed by signal 11(SIGSEGV). | 0 |
5 | 0ms | 796kb | Killed by signal 11(SIGSEGV). | 0 |
6 | 0ms | 796kb | Killed by signal 11(SIGSEGV). | 0 |
7 | 0ms | 752kb | Killed by signal 11(SIGSEGV). | 0 |
8 | 0ms | 804kb | Killed by signal 11(SIGSEGV). | 0 |
9 | 0ms | 812kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 0ms | 804kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 30 |