Borderou de evaluare (job #1760156)

Utilizator andrei_diaconu11Andrei C. Diaconu andrei_diaconu11 Data 20 septembrie 2016 13:46:09
Problema Dreptunghiuri4 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:28:25: error: ‘n’ was not declared in this scope fscanf(fi, "%d%d", &n, &k); ^ user.cpp:28:29: error: ‘k’ was not declared in this scope fscanf(fi, "%d%d", &n, &k); ^ user.cpp:29:5: error: ‘a’ was not declared in this scope a=1; ^ user.cpp:30:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++){ ^ user.cpp:36:5: error: ‘lim’ was not declared in this scope lim=a; ^ user.cpp:39:7: error: ‘b’ was not declared in this scope a=b=1; ^ user.cpp:40:5: error: ‘S’ was not declared in this scope S=0; ^ user.cpp:27:48: warning: unused variable ‘fo’ [-Wunused-variable] FILE *fi=fopen("dreptunghiuri4.in", "r"), *fo=fopen("dreptunghiuri4.out", "w"); ^

Ceva nu functioneaza?