Borderou de evaluare (job #2193096)

Utilizator MateiAruxandeiMateiStefan MateiAruxandei Data 8 aprilie 2018 18:40:11
Problema Curcubeu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:45:24: error: ‘swap’ was not declared in this scope swap(a[1], b[1]); ^ user.cpp:54:28: error: ‘swap’ was not declared in this scope swap(a[i], b[i]); ^ user.cpp:35:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("curcubeu.in", "r", stdin); ^ user.cpp:36:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("curcubeu.out", "w", stdout); ^ user.cpp:38:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d", &n , &a[1] , &b[1] , &c[1]); ^

Ceva nu functioneaza?