Pagini recente » Borderou de evaluare (job #369316) | Borderou de evaluare (job #316763) | Borderou de evaluare (job #595014) | Borderou de evaluare (job #3259208) | Borderou de evaluare (job #1907953)
Borderou de evaluare (job #1907953)
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 | 444kb | OK | 10 |
3 | 0ms | 444kb | OK | 10 |
4 | 24ms | 800kb | OK | 10 |
5 | 28ms | 856kb | OK | 10 |
6 | 32ms | 928kb | OK | 10 |
7 | 52ms | 1164kb | OK | 10 |
8 | 56ms | 1184kb | OK | 10 |
9 | 56ms | 1208kb | OK | 10 |
10 | 60ms | 1220kb | OK | 10 |
Punctaj total | 100 |