Pagini recente » Borderou de evaluare (job #1662693) | Borderou de evaluare (job #1080738) | Borderou de evaluare (job #1586405) | Borderou de evaluare (job #340654) | Borderou de evaluare (job #1906105)
Borderou de evaluare (job #1906105)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
for(i=1;i<=n;i++)scanf("%d", &a[i]);
^
user.cpp:23:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d", (s*2)%M);
^
user.cpp:7:12: warning: unused variable ‘j’ [-Wunused-variable]
int i, j, n;
^
user.cpp:9:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("galagie.in", "r", stdin);
^
user.cpp:10:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("galagie.out", "w", stdout);
^
user.cpp:11:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:12:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++)scanf("%d", &a[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 440kb | OK | 10 |
2 | 0ms | 448kb | OK | 10 |
3 | 0ms | 444kb | OK | 10 |
4 | 24ms | 796kb | OK | 10 |
5 | 28ms | 856kb | OK | 10 |
6 | 32ms | 928kb | OK | 10 |
7 | 52ms | 1160kb | OK | 10 |
8 | 52ms | 1188kb | OK | 10 |
9 | 56ms | 1208kb | OK | 10 |
10 | 56ms | 1216kb | OK | 10 |
Punctaj total | 100 |