Borderou de evaluare (job #2544436)

Utilizator thinkphpAdrian Statescu thinkphp Data 12 februarie 2020 01:07:55
Problema Sortare topologica Status done
Runda Arhiva educationala Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c:5:14: error: expected declaration specifiers or '...' before string constant #define FOUT "sortaret.out" ^ main.c:8:9: note: in expansion of macro 'FOUT' freopen(FOUT, "w", stdout); ^~~~ main.c:8:15: error: expected declaration specifiers or '...' before string constant freopen(FOUT, "w", stdout); ^~~ In file included from main.c:1:0: main.c:8:20: error: expected declaration specifiers or '...' before 'stdout' freopen(FOUT, "w", stdout); ^ main.c: In function 'main': main.c:104:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int i = 1; i <= nodes; ++i) ^~~ main.c:110:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' return 0; ^~~~~~ main.c:80:5: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result] freopen(FIN, "r", stdin); ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:82:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &nodes, &edges); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:90:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &x, &y); ^~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?