Borderou de evaluare (job #2611049)

Utilizator MoldovanAndrei1Moldovan Andrei MoldovanAndrei1 Data 6 mai 2020 11:18:28
Problema Subsiruri2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

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:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("subsir2.in","r",stdin); ^ main.cpp:77:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("subsir2.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
13ms131kbKilled by Signal 110
23ms131kbKilled by Signal 110
33ms131kbKilled by Signal 110
43ms131kbKilled by Signal 110
52ms131kbKilled by Signal 110
63ms131kbKilled by Signal 110
72ms131kbKilled by Signal 110
83ms131kbKilled by Signal 110
93ms131kbKilled by Signal 110
102ms131kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?