Borderou de evaluare (job #2182090)

Utilizator MaxTeoTeo Oprescu MaxTeo Data 22 martie 2018 09:34:09
Problema Puzzle3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void clear(char*, ...)’: user.cpp:18:22: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memset(x,0,sizeof(x)); ^ user.cpp: In function ‘void verif(char*, char*, int)’: user.cpp:32:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i!=strlen(a)) ^ user.cpp: In function ‘void solve()’: user.cpp:78:33: error: ‘C’ was not declared in this scope for(int i=1; i<=A||i<=B||i<=C||t; ++i) ^ user.cpp:5:18: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] #define stea(x) x=='*' ^ user.cpp:83:29: note: in expansion of macro ‘stea’ if(stea(a[i])&&!stea(b[i])) ^ user.cpp:5:18: warning: comparison of constant ‘'*'’ with boolean expression is always false [-Wbool-compare] #define stea(x) x=='*' ^ user.cpp:83:29: note: in expansion of macro ‘stea’ if(stea(a[i])&&!stea(b[i])) ^ user.cpp:5:18: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] #define stea(x) x=='*' ^ user.cpp:86:17: note: in expansion of macro ‘stea’ if(!stea(a[i])&&stea(b[i])) ^ user.cpp:5:18: warning: comparison of constant ‘'*'’ with boolean expression is always false [-Wbool-compare] #define stea(x) x=='*' ^ user.cpp:86:17: note: in expansion of macro ‘stea’ if(!stea(a[i])&&stea(b[i])) ^ user.cpp:89:45: error: ‘c’ was not declared in this scope if(stea(a[i])&&stea(b[i])&&stea(c[i])) ^ user.cpp:5:17: note: in definition of macro ‘stea’ #define stea(x) x=='*' ^ user.cpp:120:9: error: expected ‘;’ before ‘}’ token } ^ user.cpp: In function ‘int main()’: user.cpp:127:6: error: no match for ‘operator>>’ (operand types are ‘std::ifstream {aka std::basic_ifstream<char>}’ and ‘int’) f>>(T+1); ^ In file included from /usr/include/c++/5/sstream:38:0,

Ceva nu functioneaza?