Borderou de evaluare (job #825080)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Paranteze 1 (clasa a 6-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 19 mai 2025 21:23:10 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:10:22: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
10 | char paranteze = "(";
| ^~~
main.c:11:21: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'char *' [-Wformat=]
11 | fscanf(fin, "%d%d", &n, ¶nteze);
| ~^ ~~~~~~~~~~
| | |
| int * char *
| %hhd
main.c:14:22: warning: comparison between pointer and integer
14 | if(paranteze == "((" == "{{" == "{)" == "{ }" == "( )")
| ^~
main.c:14:22: warning: comparison with string literal results in unspecified behavior [-Waddress]
main.c:14:30: warning: comparison between pointer and integer
14 | if(paranteze == "((" == "{{" == "{)" == "{ }" == "( )")
| ^~
main.c:14:22: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
14 | if(paranteze == "((" == "{{" == "{)" == "{ }" == "( )")
| ~~~~~~~~~~^~~~~~~
main.c:14:30: warning: comparison with string literal results in unspecified behavior [-Waddress]
14 | if(paranteze == "((" == "{{" == "{)" == "{ }" == "( )")
| ^~
main.c:14:38: warning: comparison between pointer and integer
14 | if(paranteze == "((" == "{{" == "{)" == "{ }" == "( )")
| ^~
main.c:14:30: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
14 | if(paranteze == "((" == "{{" == "{)" == "{ }" == "( )")
| ~~~~~~~~~~~~~~~~~~^~~~~~~
main.c:14:38: warning: comparison with string literal results in unspecified behavior [-Waddress]
14 | if(paranteze == "((" == "{{" == "{)" == "{ }" == "( )")
| ^~
main.c:14:46: warning: comparison between pointer and integer
14 | if(paranteze == "((" == "{{" == "{)" == "{ }" == "( )")
| ^~
main.c:14:38: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
14 | if(paranteze == "((" == "{{" == "{)" == "{ }" == "( )")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
main.c:14:46: warning: comparison with string literal results in unspecified behavior [-Waddress]
14 | if(paranteze == "((" == "{{" == "{)" == "{ }" == "( )")
| ^~
main.c:14:56: warning: comparison between pointer and integer
14 | if(paranteze == "((" == "{{" == "{)" == "{ }" == "( )")
| ^~
main.c:14:46: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
14 | if(paranteze == "((" == "{{" == "{)" == "{ }" == "( )")
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
main.c:14:56: warning: comparison with string literal results in unspecified behavior [-Waddress]
14 | if(paranteze == "((" == "{{" == "{)" == "{ }" == "( )")
| ^~