Borderou de evaluare (job #736092)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Arme (clasa a 7-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 5 oct. 2023 18:48:43 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:2:1: error: unknown type name 'using'
2 | using namespace std;
| ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
2 | using namespace std;
| ^~~
main.c:4:11: error: initializer element is not constant
4 | FILE *fin=fopen("arme.in", "r");
| ^~~~~
main.c:5:12: error: initializer element is not constant
5 | FILE *fout=fopen("arme.out", "w");
| ^~~~~
main.c: In function 'main':
main.c:29:23: warning: too many arguments for format [-Wformat-extra-args]
29 | fprintf(fout, "lld\n", s);
| ^~~~~~~
main.c:10:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf(fin, "%d %d", &n, &m);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:12:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf(fin, "%d", &v[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~