Pagini recente » Borderou de evaluare (job #240080) | Borderou de evaluare (job #60748) | Borderou de evaluare (job #728816) | Borderou de evaluare (job #2981381) | Borderou de evaluare (job #2667636)
Borderou de evaluare (job #2667636)
Raport evaluator
Compilare:
main.cpp:7:1: warning: 'typedef' was ignored in this declaration
typedef struct coada
^~~~~~~
main.cpp: In function 'void parcurgere(int, int, int (*)[105])':
main.cpp:52:26: warning: 'sizeof' on array function parameter 'm' will return size of 'int (*)[105]' [-Wsizeof-array-argument]
memset(m, 0, sizeof(m));
^
main.cpp:43:49: note: declared here
void parcurgere(int bi, int bj, int m[NMAX][NMAX])
^
main.cpp:52:24: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
memset(m, 0, sizeof(m));
^
main.cpp: In function 'void read()':
main.cpp:25:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &n, &m);
^
main.cpp:29:35: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(a[i]+1, NMAX, stdin);
^
main.cpp: In function 'int main()':
main.cpp:136:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("rj.in", "r", stdin);
^
main.cpp:137:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("rj.out", "w", stdout);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 50 |
2 | 3ms | 131kb | OK | 10 |
3 | 3ms | 131kb | OK | 10 |
4 | 3ms | 262kb | OK | 10 |
5 | 4ms | 262kb | OK | 10 |
6 | 3ms | 131kb | OK | 10 | 50 |
7 | 3ms | 262kb | OK | 10 |
8 | 3ms | 262kb | OK | 10 |
9 | 2ms | 131kb | OK | 10 |
10 | 2ms | 131kb | OK | 10 |
Punctaj total | 100 |