Borderou de evaluare (job #1198461)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:15:37: 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]),a[i]+=a[i-1];
^
user.cpp:35:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d",rs);
^
user.cpp:11:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pagina.in","r",stdin);
^
user.cpp:12:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pagina.out","w",stdout);
^
user.cpp:14:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:15:51: 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]),a[i]+=a[i-1];
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 264kb | OK | 10 | 0 |
2 | Depăşit | 1012kb | Time limit exceeded. | 0 |
3 | 48ms | 1036kb | OK | 10 |
4 | 0ms | 312kb | Incorect | 0 |
5 | 20ms | 668kb | Incorect | 0 |
6 | 16ms | 696kb | OK | 10 |
7 | 24ms | 808kb | Incorect | 0 |
8 | 28ms | 864kb | Incorect | 0 |
9 | 32ms | 972kb | Incorect | 0 |
10 | 36ms | 1008kb | Incorect | 0 |
Punctaj total | 0 |