Pagini recente » Cod sursa (job #975391) | Borderou de evaluare (job #2470640) | Cod sursa (job #909388) | Borderou de evaluare (job #62011) | Borderou de evaluare (job #2086203)
Borderou de evaluare (job #2086203)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:21:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d", &n);
^
user.cpp:23:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d %d", &a, &b);
^
user.cpp:23:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
user.cpp:20:19: warning: unused variable ‘r’ [-Wunused-variable]
long n, a, b, r;
^
user.cpp:18:38: 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:19:40: 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:21:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:23:31: 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 | 432kb | OK | 10 | 10 |
2 | 0ms | 432kb | OK | 10 | 20 |
3 | 0ms | 432kb | OK | 10 |
4 | 28ms | 428kb | OK | 10 | 10 |
5 | 40ms | 432kb | OK | 10 | 10 |
6 | 52ms | 424kb | OK | 10 | 10 |
7 | 68ms | 432kb | OK | 10 | 40 |
8 | 80ms | 428kb | OK | 10 |
9 | 88ms | 428kb | OK | 10 |
10 | 136ms | 432kb | OK | 10 |
Punctaj total | 100 |