Borderou de evaluare (job #2491189)
Utilizator | Data | 11 noiembrie 2019 23:33:47 | |
---|---|---|---|
Problema | Coins | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:14: warning: missing terminating " character
ifstream fin("coins.in);
^
main.cpp:4:14: error: missing terminating " character
ifstream fin("coins.in);
^~~~~~~~~~~
main.cpp:5:14: error: expected ',' or '...' before '(' token
ofstream fout("coins.out");
^
main.cpp:5:27: error: expected ')' before ';' token
ofstream fout("coins.out");
^
main.cpp: In function 'void read()':
main.cpp:16:9: error: invalid operands of types 'std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}' and 'int' to binary 'operator>>'
cin >> cazuri;
^
main.cpp:27:17: error: invalid operands of types 'std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}' and 'int' to binary 'operator>>'
cin >> x;
^
main.cpp:20:13: warning: unused variable 'primu' [-Wunused-variable]
int primu = 0;
^~~~~
main.cpp:8:14: error: 'fout' was not declared in this scope
#define cout fout
^
main.cpp:50:5: note: in expansion of macro 'cout'
cout << afisare;
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !