Borderou de evaluare (job #1509124)
Utilizator | Data | 23 octombrie 2015 15:32:29 | |
---|---|---|---|
Problema | Datorii | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:1: error: ‘ifstream’ does not name a type
ifstream in("datorii.in");
^
user.cpp:7:1: error: ‘ofstream’ does not name a type
ofstream out("datorii.out");
^
user.cpp: In function ‘int main()’:
user.cpp:12:5: error: ‘in’ was not declared in this scope
in>>n>>m;
^
user.cpp:2:29: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) (x ^ (x-1) & x)
^
user.cpp:16:29: note: in expansion of macro ‘zeros’
for(int j=i;j<=n;j+=zeros(j)){
^
user.cpp:23:13: error: ‘cod’ was not declared in this scope
in>>cod;
^
user.cpp:25:17: error: ‘g’ was not declared in this scope
in>>g>>h;
^
user.cpp:25:20: error: ‘h’ was not declared in this scope
in>>g>>h;
^
user.cpp:34:17: error: ‘g’ was not declared in this scope
in>>g>>h;
^
user.cpp:34:20: error: ‘h’ was not declared in this scope
in>>g>>h;
^
user.cpp:41:5: error: ‘out’ was not declared in this scope
out.close();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !