Borderou de evaluare (job #764932)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Pătrate4 (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 25 feb. 2024 15:26:14 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:1: error: expected ',' or ';' before 'ofstream'
5 | ofstream fout("patrate4.out")
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:8:7: error: 'C' was not declared in this scope
8 | {fin>>C;
| ^
main.cpp:11:14: error: 'm' was not declared in this scope; did you mean 'tm'?
11 | fin>>m; nr=0;
| ^
| tm
main.cpp:11:18: error: 'nr' was not declared in this scope
11 | fin>>m; nr=0;
| ^~
main.cpp:12:13: error: 'i' was not declared in this scope
12 | for(i=1;i<=m;i++)
| ^
main.cpp:14:9: error: 'fout' was not declared in this scope
14 | fout<<nr;
| ^~~~
main.cpp:16:2: error: expected '}' at end of input
16 | }
| ^
main.cpp:8:1: note: to match this '{'
8 | {fin>>C;
| ^