Pagini recente » Borderou de evaluare (job #2115614) | Borderou de evaluare (job #502112) | Borderou de evaluare (job #97611) | Borderou de evaluare (job #2160633) | Borderou de evaluare (job #1525788)
Borderou de evaluare (job #1525788)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d",&vas[i]);
^
user.cpp:30:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d\n",maximul);
^
user.cpp:32:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
if(sus>0) { printf("%d S\n",sus);
^
user.cpp:33:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
if(jos>=0) printf("%d S",jos);
^
user.cpp:34:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
else printf("%d D",jos*(-1)); }
^
user.cpp:36:54: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
else if(sus<=0) printf("%d D\n%d D",jos*(-1),sus*(-1));
^
user.cpp:36:54: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
user.cpp:5:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vase.in","r",stdin);
^
user.cpp:6:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vase.out","w",stdout);
^
user.cpp:10:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:12:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&vas[i]);
^
user.cpp:13:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf(" %c",&dir[i]);
^
user.cpp:16:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
user.cpp:28:52: warning: ‘jos’ may be used uninitialized in this function [-Wmaybe-uninitialized]
else if(dir[i]=='S') { sus-=vas[i]/2; jos-=vas[i]/2; }
^
user.cpp:28:37: warning: ‘sus’ may be used uninitialized in this function [-Wmaybe-uninitialized]
else if(dir[i]=='S') { sus-=vas[i]/2; jos-=vas[i]/2; }
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 40ms | 1152kb | Raspuns gresit | 0 |
2 | 0ms | 280kb | OK | 5 |
3 | 40ms | 1152kb | Raspuns gresit | 0 |
4 | 40ms | 1152kb | Raspuns gresit | 0 |
5 | 0ms | 280kb | OK | 5 |
6 | 0ms | 280kb | OK | 5 |
7 | 0ms | 276kb | OK | 5 |
8 | 0ms | 284kb | Primul numar corect | 1 |
9 | 12ms | 632kb | Primul numar corect | 1 |
10 | 16ms | 720kb | OK | 5 |
11 | 0ms | 300kb | OK | 5 |
12 | 32ms | 992kb | Primul numar corect | 1 |
13 | 32ms | 964kb | OK | 5 |
14 | 0ms | 296kb | Primul numar corect | 1 |
15 | 0ms | 280kb | OK | 5 |
16 | 0ms | 284kb | OK | 5 |
17 | 40ms | 1152kb | Primul numar corect | 1 |
18 | 40ms | 1144kb | OK | 5 |
19 | 28ms | 1000kb | OK | 5 |
20 | 0ms | 280kb | OK | 5 |
Punctaj total | 65 |