Borderou de evaluare (job #668594)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Swap (baraj gimnaziu) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 11 oct. 2022 16:37:07 | 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:10:5: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | freopen("swap.in", "r", stdin);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:11:5: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | freopen("swap.out", "w", stdout);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:12:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf("%d\n", &n);
| ^~~~~~~~~~~~~~~~~