Borderou de evaluare (job #664145)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Case1 (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 25 sept. 2022 18:47:29 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:4:1: error: unknown type name 'using'
4 | using namespace std;
| ^~~~~
main.c:4:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
4 | using namespace std;
| ^~~
main.c: In function 'main':
main.c:58:24: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
58 | else if(maxlg == lg)
| ^
main.c:14:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:16:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | fscanf(fin, "%d", &v[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~