Borderou de evaluare (job #1498606)

Utilizator ochisorul55Vlad Andrei Serban ochisorul55 Data 8 octombrie 2015 20:37:54
Problema Transport 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:3:11: error: expected unqualified-id before numeric constant #define m 16001 ^ user.cpp:9:26: note: in expansion of macro ‘m’ int n, i, cm, c, cM, m, j, s, a, r; ^ user.cpp:10:5: error: ‘cin’ was not declared in this scope cin>>n>>a; ^ user.cpp:10:5: note: suggested alternative: In file included from user.cpp:2:0: /usr/include/c++/4.8/iostream:60:18: note: ‘std::cin’ extern istream cin; /// Linked to standard input ^ user.cpp:10:13: error: ‘a’ was not declared in this scope cin>>n>>a; ^ user.cpp:12:6: error: lvalue required as left operand of assignment m=0; ^ user.cpp:18:14: error: lvalue required as left operand of assignment m=v[i]; ^ user.cpp:25:9: error: ‘j’ was not declared in this scope j=0; ^ user.cpp:28:13: error: ‘s’ was not declared in this scope s=0; ^ user.cpp:39:13: error: ‘r’ was not declared in this scope r=c; ^ user.cpp:44:5: error: ‘cout’ was not declared in this scope cout<<r; ^ user.cpp:44:5: note: suggested alternative: In file included from user.cpp:2:0: /usr/include/c++/4.8/iostream:61:18: note: ‘std::cout’ extern ostream cout; /// Linked to standard output ^ user.cpp:44:11: error: ‘r’ was not declared in this scope cout<<r; ^ user.cpp:7:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("transport.in","r",stdin); ^ user.cpp:8:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("transport.out","w",stdout); ^

Ceva nu functioneaza?