Pagini recente » Borderou de evaluare (job #453435) | Borderou de evaluare (job #1754450) | Borderou de evaluare (job #143883) | Borderou de evaluare (job #2990377) | Borderou de evaluare (job #1183133)
Borderou de evaluare (job #1183133)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:26:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int16_t* {aka short int*}’ [-Wformat=]
for (i=1;i<=n;i++) {fscanf(f,"%d",&v[i]);
^
user.cpp:25:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&n,&m);
^
user.cpp:26:41: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1;i<=n;i++) {fscanf(f,"%d",&v[i]);
^
user.cpp:29:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
while (m!=0) {fscanf(f,"%d",&k);
^
user.cpp:30:49: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
if (k==0) {fscanf(f,"%d %d",&a,&b);
^
user.cpp:32:49: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
if (k==1) {fscanf(f,"%d %d",&a,&b);
^
user.cpp:34:43: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
if (k==2) {fscanf(f,"%d",&a);
^
user.cpp:42:26: warning: ‘s’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (s!=a) fprintf(g,"-1\n");
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 256kb | OK | 10 |
2 | 0ms | 260kb | OK | 10 |
3 | 4ms | 288kb | OK | 10 |
4 | 28ms | 408kb | OK | 10 |
5 | 64ms | 460kb | OK | 10 |
6 | 108ms | 640kb | OK | 10 |
7 | 112ms | 760kb | OK | 10 |
8 | 160ms | 832kb | OK | 10 |
9 | 156ms | 840kb | OK | 10 |
10 | 160ms | 836kb | OK | 10 |
Punctaj total | 100 |