Pagini recente » Borderou de evaluare (job #2616344) | Borderou de evaluare (job #42292) | Borderou de evaluare (job #2724473) | Borderou de evaluare (job #2784319) | Borderou de evaluare (job #1214190)
Borderou de evaluare (job #1214190)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:13:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("monezi2.in","r",stdin);
^
user.cpp:14:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("monezi2.out","w",stdout);
^
user.cpp:17:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:18:64: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (int i=1; i<=n; ++i) scanf("%d",&val), sum[i]=sum[i-1]+val;
^
user.cpp:21:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&Q);
^
user.cpp:22:76: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (int i=1; i<=Q; ++i) scanf("%d",&v[i]), smax=(v[i]>smax ? v[i] : smax);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 340kb | OK | 10 |
2 | 0ms | 344kb | OK | 10 |
3 | 0ms | 348kb | OK | 10 |
4 | 0ms | 348kb | OK | 10 |
5 | 0ms | 348kb | OK | 10 |
6 | 0ms | 356kb | OK | 10 |
7 | 0ms | 372kb | OK | 10 |
8 | 4ms | 376kb | OK | 10 |
9 | 4ms | 376kb | OK | 10 |
10 | 4ms | 376kb | OK | 10 |
Punctaj total | 100 |