Pagini recente » Borderou de evaluare (job #2861632) | Borderou de evaluare (job #680239) | Borderou de evaluare (job #1013888) | Borderou de evaluare (job #2044234) | Borderou de evaluare (job #2021927)
Borderou de evaluare (job #2021927)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:45:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d", &n);
^
user.cpp:48:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d%d", &a, &b);
^
user.cpp:48:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
user.cpp:75:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
printf("%d\n", sol);
^
user.cpp:43:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pitici4.in", "r", stdin);
^
user.cpp:44:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pitici4.out", "w", stdout);
^
user.cpp:45:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:48:30: 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 |
1 | 8ms | 8100kb | OK | 10 |
2 | 8ms | 8108kb | OK | 10 |
3 | 12ms | 8128kb | OK | 10 |
4 | 12ms | 8180kb | Incorect | 0 |
5 | 12ms | 8152kb | OK | 10 |
6 | 68ms | 8500kb | OK | 10 |
7 | 76ms | 9092kb | Incorect | 0 |
8 | 144ms | 9948kb | Incorect | 0 |
9 | 144ms | 9020kb | OK | 10 |
10 | 136ms | 8896kb | OK | 10 |
Punctaj total | 70 |