Pagini recente » Borderou de evaluare (job #3194826) | Borderou de evaluare (job #2032823) | Borderou de evaluare (job #1491922) | Borderou de evaluare (job #1304680) | Borderou de evaluare (job #1417768)
Borderou de evaluare (job #1417768)
Raport evaluator
Compilare:
user.cpp: In function ‘void readdata()’:
user.cpp:9:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
fscanf(f,"%d%d",&p);
^
user.cpp:9:23: warning: format ‘%d’ expects a matching ‘int*’ argument [-Wformat=]
user.cpp: In function ‘int solve()’:
user.cpp:17:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
printf("%d",n);
^
user.cpp: In function ‘void writedata()’:
user.cpp:47:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
fprintf(f,"%d",n);
^
user.cpp: In function ‘void readdata()’:
user.cpp:9:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d",&p);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 252kb | Raspuns incorect | 0 |
2 | 0ms | 260kb | Corect! | 5 |
3 | 0ms | 252kb | Corect! | 5 |
4 | 0ms | 256kb | Corect! | 5 |
5 | 0ms | 260kb | Raspuns incorect | 0 |
6 | 0ms | 252kb | Raspuns incorect | 0 |
7 | 0ms | 260kb | Raspuns incorect | 0 |
8 | 0ms | 256kb | Raspuns incorect | 0 |
9 | 0ms | 256kb | Raspuns incorect | 0 |
10 | 0ms | 252kb | Raspuns incorect | 0 |
11 | 0ms | 256kb | Raspuns incorect | 0 |
12 | 0ms | 256kb | Raspuns incorect | 0 |
13 | 0ms | 256kb | Raspuns incorect | 0 |
14 | 0ms | 256kb | Raspuns incorect | 0 |
15 | 0ms | 256kb | Corect! | 5 |
16 | 0ms | 260kb | Raspuns incorect | 0 |
17 | 0ms | 252kb | Raspuns incorect | 0 |
18 | 0ms | 252kb | Raspuns incorect | 0 |
19 | 0ms | 260kb | Raspuns incorect | 0 |
20 | 0ms | 256kb | Raspuns incorect | 0 |
Punctaj total | 20 |