Borderou de evaluare (job #732775)

Utilizator avatar Costache_Andrei_paul Costache Andrei Paul Costache_Andrei_paul IP ascuns
Problemă Kdiv (clasa a 5-a) Compilator cpp-32
Rundă Tema 2 clasa a 6-a Status evaluat
Dată 20 sept. 2023 16:39:09 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:22:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=] 22 | scanf("%d%d",n, k); | ~^ ~ | | | | int* int main.cpp:22:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=] 22 | scanf("%d%d",n, k); | ~^ ~ | | | | int* int main.cpp:26:17: error: 'cin' was not declared in this scope 26 | cin>>nr; | ^~~ main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 1 | #include <stdio.h> +++ |+#include <iostream> 2 | main.cpp:22:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 22 | scanf("%d%d",n, k); | ~~~~~^~~~~~~~~~~~~