Borderou de evaluare (job #2595802)

Utilizator alex_benescuAlex Ben alex_benescu Data 8 aprilie 2020 14:05:01
Problema Expresii algebrice Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'long long int fact()': main.cpp:8:11: warning: array subscript has type 'char' [-Wchar-subscripts] if(S[p]>='0' && S[p]<='9'){ ^ main.cpp:8:24: warning: array subscript has type 'char' [-Wchar-subscripts] if(S[p]>='0' && S[p]<='9'){ ^ main.cpp:12:11: warning: array subscript has type 'char' [-Wchar-subscripts] if(S[p]=='('){ ^ main.cpp:16:15: warning: array subscript has type 'char' [-Wchar-subscripts] if(S[p]!=')') ^ main.cpp: In function 'long long int term()': main.cpp:26:14: warning: array subscript has type 'char' [-Wchar-subscripts] while(S[p]=='*'){ ^ main.cpp: In function 'long long int expr()': main.cpp:38:14: warning: array subscript has type 'char' [-Wchar-subscripts] while(S[p]=='+'){ ^ main.cpp:44:11: warning: array subscript has type 'char' [-Wchar-subscripts] if(S[p] && S[p]!=')' || S[p]==')' && !nrd) ^ main.cpp:44:19: warning: array subscript has type 'char' [-Wchar-subscripts] if(S[p] && S[p]!=')' || S[p]==')' && !nrd) ^ main.cpp:44:32: warning: array subscript has type 'char' [-Wchar-subscripts] if(S[p] && S[p]!=')' || S[p]==')' && !nrd) ^ main.cpp:44:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(S[p] && S[p]!=')' || S[p]==')' && !nrd) ~~~~~^~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:50:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("expresii.in","r",stdin); ^ main.cpp:51:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("expresii.out","w",stdout); ^ main.cpp:55:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&i); ^ main.cpp:57:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%s",S); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK100
Punctaj total100

Ceva nu functioneaza?