Pagini recente » Borderou de evaluare (job #265387) | Borderou de evaluare (job #2745096) | Borderou de evaluare (job #2799556) | Borderou de evaluare (job #2333375) | Borderou de evaluare (job #1658668)
Borderou de evaluare (job #1658668)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:45:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[31]’ [-Wformat=]
scanf("%d\n%s",&k,&a);
^
user.cpp:52:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<strlen(a); i++)
^
user.cpp:60:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=i+1; j<i+k && j<strlen(a); j++)
^
user.cpp: In function ‘int caut(int, int)’:
user.cpp:30:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:42:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("blis.in","r",stdin);
^
user.cpp:43:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("blis.out","w",stdout);
^
user.cpp:45:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n%s",&k,&a);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 448kb | Valoare incorecta cerinta 2 ! | 1 |
2 | 0ms | 448kb | Valoare incorecta cerinta 2 ! | 1 |
3 | 0ms | 448kb | Valoare incorecta cerinta 2 ! | 1 |
4 | 0ms | 408kb | Killed by signal 11(SIGSEGV). | 0 |
5 | 0ms | 408kb | Killed by signal 11(SIGSEGV). | 0 |
6 | 0ms | 404kb | Killed by signal 11(SIGSEGV). | 0 |
7 | 0ms | 404kb | Killed by signal 11(SIGSEGV). | 0 |
8 | 0ms | 408kb | Killed by signal 11(SIGSEGV). | 0 |
9 | 0ms | 404kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 0ms | 404kb | Killed by signal 11(SIGSEGV). | 0 |
11 | 0ms | 408kb | Killed by signal 11(SIGSEGV). | 0 |
12 | 0ms | 408kb | Killed by signal 11(SIGSEGV). | 0 |
13 | 0ms | 408kb | Killed by signal 11(SIGSEGV). | 0 |
14 | 0ms | 408kb | Killed by signal 11(SIGSEGV). | 0 |
15 | 0ms | 408kb | Killed by signal 11(SIGSEGV). | 0 |
16 | 0ms | 416kb | Killed by signal 11(SIGSEGV). | 0 |
17 | 0ms | 420kb | Killed by signal 11(SIGSEGV). | 0 |
18 | 0ms | 424kb | Killed by signal 11(SIGSEGV). | 0 |
19 | 0ms | 416kb | Killed by signal 11(SIGSEGV). | 0 |
20 | 0ms | 416kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 3 |