Pagini recente » Borderou de evaluare (job #2944072) | Borderou de evaluare (job #1890959) | Borderou de evaluare (job #2113491) | Borderou de evaluare (job #2153329) | Borderou de evaluare (job #1272156)
Borderou de evaluare (job #1272156)
Raport evaluator
Compilare:
user.cpp: In function ‘bool verif(char*, char*, int)’:
user.cpp:8:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (c[ B[i] ] == 0) {
^
user.cpp:9:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
c[ B[i] ] = A[i];
^
user.cpp:10:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
} else if (c[ B[i] ] != A[i]) {
^
user.cpp: In function ‘int main()’:
user.cpp:25:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[26]’ [-Wformat=]
scanf("%s ", &A[i]);
^
user.cpp:35:26: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[26]’ [-Wformat=]
scanf("%s ", &str);
^
user.cpp:19:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("criptare2.in", "r", stdin);
^
user.cpp:20:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("criptare2.out", "w", stdout);
^
user.cpp:22:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int N; scanf("%d", &N);
^
user.cpp:25:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s ", &A[i]);
^
user.cpp:30:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &M);
^
user.cpp:35:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s ", &str);
^
 | Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
✓ | 1 | 0ms | 248kb | Incorect | 0 |
✓ | 2 | 0ms | 248kb | Incorect | 0 |
✓ | 3 | 0ms | 256kb | Incorect | 0 |
✓ | 4 | 8ms | 552kb | Incorect | 0 |
✓ | 5 | 20ms | 832kb | Incorect | 0 |
✓ | 6 | 20ms | 832kb | Incorect | 0 |
✓ | 7 | 20ms | 832kb | Incorect | 0 |
✓ | 8 | 20ms | 832kb | Incorect | 0 |
✓ | 9 | 20ms | 828kb | Incorect | 0 |
✓ | 10 | 20ms | 832kb | Incorect | 0 |
Punctaj total | 0 |