Borderou de evaluare (job #788200)

Utilizator avatar sorinchetrosanu Chetroșanu Sorin sorinchetrosanu IP ascuns
Problemă Puteri3 (clasele 5-6) Compilator cpp-32
Rundă lasm_26_09_2024_clasa10_11 Status evaluat
Dată 26 sept. 2024 15:39:58 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:1: error: 'ifstream' does not name a type 2 | ifstream f ("puteri3.in"); | ^~~~~~~~ main.cpp:3:1: error: 'ofstream' does not name a type 3 | ofstream g ("puteri3.out"); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:20:5: error: 'f' was not declared in this scope 20 | f>>N; | ^ main.cpp:21:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 21 | for (int i=1;i<=N;i++) | ^~~ main.cpp:23:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 23 | S+=putere(a,b); | ^ main.cpp:24:5: error: 'g' was not declared in this scope 24 | g<<S%10; | ^