Pagini recente » Borderou de evaluare (job #2440665) | Atasamentele paginii Profil tudor32 | Borderou de evaluare (job #1403025) | Borderou de evaluare (job #1287648) | Borderou de evaluare (job #1259285)
Borderou de evaluare (job #1259285)
Raport evaluator
Compilare:
user.cpp: In function ‘void solve()’:
user.cpp:30:24: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (i + l <= n && (s [i] == s [i + l]) || (s [i] == '*'))
^
user.cpp:43:24: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (i + l <= n && (s [i] == s [i + l]) || (s [i] == '*'))
^
user.cpp: In function ‘void read()’:
user.cpp:12:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d\n", &n, &l);
^
user.cpp:13:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets (s + 1);
^
user.cpp: In function ‘int main()’:
user.cpp:76:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("sirag2.in", "r", stdin);
^
user.cpp:77:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("sirag2.out", "w", stdout);
^
user.cpp:79:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &T);
^
/tmp/ccp39ZEO.o: In function `read()':
user.cpp:(.text+0x2f): warning: the `gets' function is dangerous and should not be used.
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 20ms | 1536kb | OK | 10 |
| 2 | 4ms | 1532kb | OK | 10 |
| 3 | 4ms | 1536kb | OK | 10 |
| 4 | 4ms | 1536kb | OK | 10 |
| 5 | 44ms | 1536kb | Incorect | 0 |
| 6 | 44ms | 1536kb | Incorect | 0 |
| 7 | 44ms | 1536kb | Incorect | 0 |
| 8 | 44ms | 1536kb | Incorect | 0 |
| 9 | 44ms | 1540kb | Incorect | 0 |
| 10 | 44ms | 1536kb | Incorect | 0 |
| Punctaj total | 40 |