Pagini recente » Cod sursa (job #670105) | Borderou de evaluare (job #1779941) | Borderou de evaluare (job #887504) | Borderou de evaluare (job #2117564) | Borderou de evaluare (job #1907503)
Borderou de evaluare (job #1907503)
Raport evaluator
Compilare:
user.cpp: In function ‘void Read()’:
user.cpp:35:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[262]’ [-Wformat=]
fscanf(fin, "%s", &s);
^
user.cpp:42:33: warning: NULL used in arithmetic [-Wpointer-arith]
for (int i = 0; s[i] != NULL; i++)
^
user.cpp:60:29: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[262]’ [-Wformat=]
fscanf(fin, "%s", &s);
^
user.cpp:32:9: warning: unused variable ‘inv’ [-Wunused-variable]
int inv, cop, nn, nr;
^
user.cpp:32:14: warning: unused variable ‘cop’ [-Wunused-variable]
int inv, cop, nn, nr;
^
user.cpp:32:23: warning: unused variable ‘nr’ [-Wunused-variable]
int inv, cop, nn, nr;
^
user.cpp:35:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%s", &s);
^
user.cpp:60:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%s", &s);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 268kb | Incorect | 0 |
2 | 0ms | 264kb | Incorect | 0 |
3 | 0ms | 264kb | Incorect | 0 |
4 | 0ms | 260kb | Incorect | 0 |
5 | 0ms | 260kb | Incorect | 0 |
6 | 0ms | 264kb | Incorect | 0 |
7 | 0ms | 268kb | Incorect | 0 |
8 | 0ms | 264kb | Incorect | 0 |
9 | 0ms | 260kb | Incorect | 0 |
10 | 0ms | 268kb | Incorect | 0 |
11 | 0ms | 260kb | Incorect | 0 |
12 | 0ms | 264kb | Incorect | 0 |
13 | 0ms | 264kb | Incorect | 0 |
14 | 0ms | 268kb | Incorect | 0 |
15 | 0ms | 260kb | OK | 5 |
16 | 0ms | 264kb | Incorect | 0 |
17 | 0ms | 264kb | Incorect | 0 |
18 | 0ms | 264kb | Incorect | 0 |
19 | 0ms | 268kb | Incorect | 0 |
20 | 0ms | 264kb | Incorect | 0 |
Punctaj total | 5 |