Pagini recente » Borderou de evaluare (job #1121779) | Borderou de evaluare (job #617601) | Borderou de evaluare (job #1666341) | Borderou de evaluare (job #886327) | Borderou de evaluare (job #2611051)
Borderou de evaluare (job #2611051)
Raport evaluator
Compilare:
main.cpp: In function 'void sch(int*, int*)':
main.cpp:20:26: warning: 'sizeof' on array function parameter 't1' will return size of 'int*' [-Wsizeof-array-argument]
memset(t1,0,sizeof(t1));
^
main.cpp:18:19: note: declared here
void sch(int t1[55],int t2[55])
^
main.cpp:20:23: 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(t1,0,sizeof(t1));
^
main.cpp:23:26: warning: 'sizeof' on array function parameter 't2' will return size of 'int*' [-Wsizeof-array-argument]
memset(t2,0,sizeof(t2));
^
main.cpp:18:30: note: declared here
void sch(int t1[55],int t2[55])
^
main.cpp:23:23: 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(t2,0,sizeof(t2));
^
main.cpp: In function 'void cat(int*, int)':
main.cpp:28:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for( i = 1; i<= r[0]; ++i)
^~~
main.cpp:30:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
r[0]=0;
^
main.cpp: In function 'int main()':
main.cpp:76:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("subsiruri2.in","r",stdin);
^
main.cpp:77:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("subsiruri2.out","w",stdout);
^
main.cpp:79:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
main.cpp:80:26: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(s,10005, stdin);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Incorect | 0 |
2 | 2ms | 131kb | Incorect | 0 |
3 | 3ms | 131kb | Incorect | 0 |
4 | 2ms | 131kb | Incorect | 0 |
5 | 2ms | 131kb | Incorect | 0 |
6 | 2ms | 131kb | Incorect | 0 |
7 | 2ms | 131kb | Incorect | 0 |
8 | 3ms | 131kb | Incorect | 0 |
9 | 2ms | 131kb | Incorect | 0 |
10 | 3ms | 131kb | Incorect | 0 |
Punctaj total | 0 |