Borderou de evaluare (job #598098)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Resturi(clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 15 mai 2021 15:47:10 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:7:38: error: expression cannot be used as a function
7 | cout << (n / k)(((k - 1) * k) / 2) + (n % k)(n % k + 1) / 2;
| ^
main.cpp:7:59: error: expression cannot be used as a function
7 | cout << (n / k)(((k - 1) * k) / 2) + (n % k)(n % k + 1) / 2;
| ^
main.cpp:5:27: warning: unused variable 'x' [-Wunused-variable]
5 | unsigned long long n, x, y, s = 0, k;
| ^
main.cpp:5:30: warning: unused variable 'y' [-Wunused-variable]
5 | unsigned long long n, x, y, s = 0, k;
| ^
main.cpp:5:33: warning: unused variable 's' [-Wunused-variable]
5 | unsigned long long n, x, y, s = 0, k;
| ^