CSES - Datatähti 2023 alku - Results
Submission details
Task:Ruudukko
Sender:Laserr
Submission time:2022-11-04 12:03:05 +0200
Language:C++ (C++11)
Status:COMPILE ERROR

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:6:35: error: 'pow' was not declared in this scope
    6 |         for (long long i = 0; i < pow(10, 9); i++) {
      |                                   ^~~

Code

#include<iostream>

using namespace std;

int main(){
	for (long long i = 0; i < pow(10, 9); i++) {
		long long a = 0;
		for (long long j = 0; j < pow(10, 9); j++) {
			a++;
			long long b = 0;
			for (long long k = 0; k < pow(10, 9); k++) {
				b++;
			}
		}
	}
	cout << "moi";
}