Pagini recente » Borderou de evaluare (job #2344314) | Borderou de evaluare (job #1157666) | Borderou de evaluare (job #1096499) | Borderou de evaluare (job #1670564) | Borderou de evaluare (job #1848059)
Borderou de evaluare (job #1848059)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:32:30: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[10]’ [-Wformat=]
scanf("%s %s\n",&a,&b);
^
user.cpp:32:30: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[10]’ [-Wformat=]
user.cpp:27:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("minerale.in","r",stdin);
^
user.cpp:28:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("minerale.out","w",stdout);
^
user.cpp:29:27: 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:32:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s %s\n",&a,&b);
^
user.cpp:39:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(str+1);
^
/tmp/ccgK1tQA.o: In function `main':
user.cpp:(.text.startup+0x21d): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 432kb | OK | 10 |
2 | 0ms | 436kb | OK | 10 |
3 | 8ms | 464kb | OK | 10 |
4 | 40ms | 472kb | OK | 10 |
5 | 104ms | 468kb | OK | 10 |
6 | 36ms | 448kb | OK | 10 |
7 | 36ms | 448kb | OK | 10 |
8 | 176ms | 468kb | OK | 10 |
9 | 160ms | 472kb | OK | 10 |
10 | 276ms | 472kb | OK | 10 |
Punctaj total | 100 |