Borderou de evaluare (job #1226765)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:7:15: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d",&t);
^
user.cpp:9:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
{scanf("%d%d",&a,&b);
^
user.cpp:9:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
user.cpp:15:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
printf("%d\n",a);
^
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("euclid2.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("euclid2.out","w",stdout);
^
user.cpp:7:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^
user.cpp:9:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
{scanf("%d%d",&a,&b);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 244kb | OK | 10 | 10 |
2 | 0ms | 240kb | OK | 10 | 20 |
3 | 0ms | 244kb | OK | 10 |
4 | 20ms | 248kb | OK | 10 | 10 |
5 | 32ms | 244kb | OK | 10 | 10 |
6 | 44ms | 240kb | OK | 10 | 10 |
7 | 56ms | 248kb | OK | 10 | 40 |
8 | 68ms | 240kb | OK | 10 |
9 | 68ms | 244kb | OK | 10 |
10 | 108ms | 244kb | OK | 10 |
Punctaj total | 100 |