Problem | platonic |
---|---|
User | akyy1713 |
Submission Time | 2025-06-19 09:47:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
platonic.cpp: In function ‘int main()’:
platonic.cpp:5:21: error: conflicting declaration ‘int v [3]’
5 | int v[1], V[2], v[3];
| ^
platonic.cpp:5:9: note: previous declaration as ‘int v [1]’
5 | int v[1], V[2], v[3];
| ^
platonic.cpp:10:10: error: conversion from ‘int*’ to ‘long unsigned int’ in a converted constant expression
10 | int arr[v];
| ^
platonic.cpp:10:10: error: could not convert ‘v’ from ‘int [1]’ to ‘long unsigned int’
platonic.cpp:10:10: error: size of array ‘arr’ has non-integral type ‘int [1]’
platonic.cpp:12:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | for (int i=0; i<=v; i++){
| ^