Borderou de evaluare (job #2638448)

Utilizator NastureNasture Anca Nasture Data 28 iulie 2020 12:12:24
Problema Dir Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:19:7: error: 'gets' was not declared in this scope gets(s); ^ main.cpp:23:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(s[i]>='A'&&s[i]<='Z'||s[i]>='a'&&s[i]<='z'||s[i]>='0'&&s[i]<='9') ~~~~~~~~~^~~~~~~~~~~ main.cpp:23:61: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(s[i]>='A'&&s[i]<='Z'||s[i]>='a'&&s[i]<='z'||s[i]>='0'&&s[i]<='9') ~~~~~~~~~^~~~~~~~~~~ main.cpp:31:20: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null] s1[cate++]=NULL; ^~~~ main.cpp:49:20: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null] s1[cate++]=NULL; ^~~~ main.cpp:77:19: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null] a1[j].s[c3++]=NULL; ^~~~ main.cpp:17:28: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("dir.in","r",stdin); ^ main.cpp:18:30: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("dir.out","w",stdout); ^ Non zero exit status: 1

Ceva nu functioneaza?