Pagini recente » Borderou de evaluare (job #341738) | oji_2009_deja_vu | Cod sursa (job #646236) | oji17 | Borderou de evaluare (job #1570345)
Borderou de evaluare (job #1570345)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:18:15: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d",&n);
^
user.cpp:21:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d %d", &a,&b);
^
user.cpp:21:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
user.cpp:22:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
printf("%d\n", cmmdc(a,b));
^
user.cpp:15: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:16: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:18:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:21:24: 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 | 256kb | OK | 10 | 10 |
2 | 0ms | 264kb | OK | 10 | 20 |
3 | 0ms | 260kb | OK | 10 |
4 | 28ms | 264kb | OK | 10 | 10 |
5 | 40ms | 256kb | OK | 10 | 10 |
6 | 56ms | 260kb | OK | 10 | 10 |
7 | 68ms | 260kb | OK | 10 | 40 |
8 | 80ms | 264kb | OK | 10 |
9 | 84ms | 256kb | OK | 10 |
10 | 132ms | 256kb | OK | 10 |
Punctaj total | 100 |