Borderou de evaluare (job #787034)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Balaur (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 18 sept. 2024 23:15:11 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:50: warning: missing terminating " character
3 | ifstream fin("balaur.in"); ofstream fout("balaur.out);
| ^
main.cpp:3:50: error: missing terminating " character
3 | ifstream fin("balaur.in"); ofstream fout("balaur.out);
| ^~~~~~~~~~~~~
main.cpp:4:15: error: 'n' has not been declared
4 | int k,n;
| ^
main.cpp:4:16: error: expected ')' before ';' token
4 | int k,n;
| ^
| )
main.cpp:3:49: note: to match this '('
3 | ifstream fin("balaur.in"); ofstream fout("balaur.out);
| ^
main.cpp: In function 'int main()':
main.cpp:7:10: error: 'n' was not declared in this scope; did you mean 'yn'?
7 | fin>>n;
| ^
| yn
main.cpp:8:7: error: expected primary-expression before '=' token
8 | k:=5*n
| ^
main.cpp:8:5: warning: label 'k' defined but not used [-Wunused-label]
8 | k:=5*n
| ^